Get the latest tech news

Publish a Python Wheel to GCP Artifact Registry with Poetry


In this article, I’m building a Python project that outputs a runnable file instead of a Docker image, as I need to directly communicate with GPU drivers. Using Poetry and GCP’s artifac…

I wanted a solution near to the Docker workflow: build locally, push to a registry, and download the latest version at the startup. By default, I build my project with poetry sync, because I don’t need a runnable file as I mainly use Docker images. Because my project needs a lot of dependencies (Flask, SQLAlchemy, Pandas…), and I don’t want to store all of them into my GCP Artifact Registry (and pay for that).

Get the Android app

Or read this on Hacker News

Read more on:

Photo of poetry

poetry

Photo of artifact registry

artifact registry

Photo of python wheel

python wheel

Related news:

News photo

Anthropic's Claude Is Good at Poetry—and Bullshitting

News photo

Judge disses Star Trek icon Data’s poetry while ruling AI can’t author works | Computer scientist won't give up fight to copyright AI-made art after court loss.

News photo

uv downloads overtake Poetry for Wagtail users