Skip to content

Support uv package manager for Python functions #10384

Open

Description

@janisto

Cloud Run added 3.14 support in December 2025:
https://docs.cloud.google.com/run/docs/release-notes
https://docs.cloud.google.com/run/docs/runtimes/python

uv is also now preferred way with 3.14.

[REQUIRED] Environment info

firebase-tools: 15.14.0

Platform: macOS

[REQUIRED] Test case

firebase.json with python314 runtime:

{
  "functions": [
    {
      "source": "functions",
      "location": "europe-west4",
      "codebase": "default",
      "runtime": "python314"
    }
  ],
}

[REQUIRED] Steps to reproduce

firebase deploy --only functions

[REQUIRED] Expected behavior

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

Activity

  1. aalej commented on Apr 21, 2026

    @aalej
    Contributor

    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.

  2. changed the title [-]Support Python 3.14 and uv package manager with functions[/-] [+]Support uv package manager for Python functions[/+] on Apr 21, 2026
  3. andy-tmpt-me commented on May 4, 2026

    @andy-tmpt-me

    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)

  4. janisto commented on Sep 15, 2026

    @janisto
    Author

    Any update regarding uv support?

  5. andy-tmpt-me commented on Sep 15, 2026

    @andy-tmpt-me

    "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.

  6. janisto commented on Sep 16, 2026

    @janisto
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions