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 摘要。