Write no installer preference for uv.lock bundles

Aperta
#996 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@tdstein ci sta già lavorando.

Dal 23/11/2026.

  • #997 di @tdstein — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.
Lingua principale
Python
Stelle
38
Fork
28
Merge medio
1g 4h
PR unite (30g)
59

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di posit-dev/rsconnect-python

Tutte le issue di posit-dev/rsconnect-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.