You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support uv package manager for Python functions #10384
functions deployment works, including support for uv.
[REQUIRED] Actual behavior
> firebase deploy --only functions
=== Deploying to 'redacted'...
i deploying functions
i functions: preparing codebase default for deployment
i functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i functions: ensuring required API cloudbuild.googleapis.com is enabled...
i artifactregistry: ensuring required API artifactregistry.googleapis.com is enabled...
Error: Functions codebase default has invalid runtime python314 specified in firebase.json. Valid values are:
- nodejs20
- nodejs22
- nodejs24
- python310
- python311
- python312
- python313
- dart3
Reacted by Jani Mikkonen, Jussi Laakkonen, Joakim Nordling, Emanuel Ström, Kenneth Söderlund, Christophe Riolo Uusivaara, Ahmed Henna and Andy Jenkins
Thanks for the report and for sharing your feedback @janisto! Looking up the uv package manager, it does sound like a good idea to have this, although it would take some time and require integration testing to ensure this works smoothly in firebase-tools. For now, I'll mark this as a feature request, for those who are interested in this, please leave a thumbs up on the original post or a comment.
Adding support for Python 3.14 to match the current available runtimes is something we should do, will raise this to our engineering team.
Reacted by Jani Mikkonen, Jussi Laakkonen, Roman Mikstais, Joakim Nordling, Erik Matti, Jakob Råhlén and Christophe Riolo Uusivaara
changed the title [-]Support Python 3.14 and uv package manager with functions[/-][+]Support uv package manager for Python functions[/+]on Apr 21, 2026
Would seem reasonable to support an optional "packageManager": "pip|uv" in function group declarations in firebase.json, default pip, so that it is fully opt-in for now. Selecting UV would have the same effect as:
Just to clarify for anyone following this thread: firebase-tools does not currently use uv by default, nor does it natively detect Python runtimes via pyproject.toml/uv.lock.
Removing requirements.txt from the functions directory causes deployment to fail immediately at the runtime detection step:
Error: Could not detect runtime for functions at /path/to/functions
The Firebase CLI and GCP Buildpacks still strictly require requirements.txt (or a predeploy script that runs uv export to generate one) to identify the Python runtime and resolve dependencies.
Activity
aalej commentedon Apr 21, 2026
Thanks for the report and for sharing your feedback @janisto! Looking up the
uvpackage manager, it does sound like a good idea to have this, although it would take some time and require integration testing to ensure this works smoothly in firebase-tools. For now, I'll mark this as a feature request, for those who are interested in this, please leave a thumbs up on the original post or a comment.Adding support for Python 3.14 to match the current available runtimes is something we should do, will raise this to our engineering team.
[-]Support Python 3.14 and uv package manager with functions[/-][+]Support uv package manager for Python functions[/+]andy-tmpt-me commentedon May 4, 2026
Would seem reasonable to support an optional "packageManager": "pip|uv" in function group declarations in firebase.json, default pip, so that it is fully opt-in for now. Selecting UV would have the same effect as:
--update-build-env-vars=GOOGLE_PYTHON_PACKAGE_MANAGER=uv(See: https://docs.cloud.google.com/run/docs/runtimes/python-dependencies#python-3.13-and-earlier)
janisto commentedon Sep 15, 2026
Any update regarding uv support?
andy-tmpt-me commentedon Sep 15, 2026
"runtime": "python314" is now a supported target for firebase functions in firebase.json. It uses uv by default during the build.
Additionally this week there was a fix deployed for an issue that preventing downloading packages from private repos.
I've switched a few of my function groups over without issue.
janisto commentedon Sep 16, 2026
Just to clarify for anyone following this thread: firebase-tools does not currently use uv by default, nor does it natively detect Python runtimes via pyproject.toml/uv.lock.
Removing requirements.txt from the functions directory causes deployment to fail immediately at the runtime detection step:
Error: Could not detect runtime for functions at /path/to/functionsThe Firebase CLI and GCP Buildpacks still strictly require requirements.txt (or a predeploy script that runs uv export to generate one) to identify the Python runtime and resolve dependencies.