Write no installer preference for uv.lock bundles

Offen
#996 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@tdstein arbeitet bereits daran.

Seit 23.11.2026.

  • #997 von @tdstein — offen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

enhancement ready-for-agent

-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.
Vorherrschende Sprache
Python
Sterne
38
Forks
28
Ø Merge
1 T. 4 Std.
Gemergte PRs (30 T.)
59

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus posit-dev/rsconnect-python

Alle Issues in posit-dev/rsconnect-python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.