Write no installer preference for uv.lock bundles

未關閉
#996 0 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

維護者通常 1 天內回覆

@tdstein 已經在處理了。

開始於 2026年11月23日。

  • #997 來自 @tdstein —— 未關閉

評估

這個 Issue 還沒有評估資料。

描述

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.
主要語言
Python
星號
38
分支
28
平均合併
1 天 4 小時
30 天內合併 PR
59

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

posit-dev/rsconnect-python 的其他 Issue

查看 posit-dev/rsconnect-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。