Skip to content

Write no installer preference for uv.lock bundles #996

In review

Description

@tdstein

-r uv.lock writes "package_manager": {"name": "uv", ...} into manifest.json.
Connect treats name: uv as requiring uv, so these deploys fail on any server that sets Python.AllowUv = false:

Server does not allow uv package manager

The bundled requirements.txt.lock comes from uv export --no-hashes, so it is a plain pinned requirements file that pip can install.
#750 introduced name: uv and gives no reason for it.

Expected: a -r uv.lock bundle has no installer preference, the same as -r requirements.txt: name: pip with no allow_uv.
Connect then uses the server's default package installer.
Pins are exact, so the installed versions are the same whichever installer runs.

--package-installer keeps its meaning:

Option Manifest
none name: pip, no allow_uv
--package-installer pip name: pip, allow_uv: false
--package-installer uv name: uv, allow_uv: true

Acceptance criteria:

  1. write-manifest and deploy with -r uv.lock and no --package-installer write name: pip with no allow_uv.
  2. --package-installer with -r uv.lock writes the values in the table.
  3. Manifest tests cover all three rows for -r uv.lock.

Activity

  1. added
    enhancement
    ready-for-agent
    on Nov 23, 2026
  2. self-assigned this
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementready-for-agent

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions