Support for pyproject.toml and uv in python buildpack
We (like a lot of new projects) use pyproject.toml to specify dependencies and uv to lock them. Please support pyproject.toml and uv.lock for building python containers.
We're working on this! should be coming soon.
Great news! Support for pyproject.toml and uv is now available in Public Preview for the Python Buildpack.
Note on requirements.txt: If you are using
requirements.txtfile, you can opt-in to useuvas your package manager by setting the environment variableGOOGLE_PYTHON_PACKAGE_MANAGER=uv. For Python 3.14+ projects,uvis set to be the new default installer when arequirements.txtis present.
How to Try It
- For Cloud Run / CRF Deployments (using
gcloud): Deploy using the beta track of the gcloud run deploy command
gcloud beta run deploy --source .
- Using pack CLI: Set the
X_GOOGLE_RELEASE_TRACK=BETAenvironment variable for your build
pack build <your-image-name> --builder gcr.io/buildpacks/builder --env X_GOOGLE_RELEASE_TRACK=BETA
Documentation
You can find the full details on deploying with pyproject.toml in our official documentation: https://docs.cloud.google.com/docs/buildpacks/python
Please give it a try and let us know if you run into any issues or have feedback!