Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Upgrade virtualenv in uv.lock without downgrading tox on Python <3.9

未关闭
#395 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
1/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
python

调研方向

Start with pyproject.toml and uv.lock, then review the Python version markers and dependency resolution described in the issue. Run uv lock --upgrade-package virtualenv on release-v0.9.x and check the lock with uv lock --check; verify tox remains 3.x on Python 3.6–3.8 and virtualenv is at least 21.7.13 on Python 3.9+. Confirm tox runs tox.ini on Python 3.8.

由索引模型根据 Issue 内容生成。

描述

dependencies DEV: dev-ops TAG: dependencies

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Overview

Dependabot PR #389 bumped virtualenv from 20.16.2 (py3.6–3.7) and 21.2.0 (py3.8+) to 21.7.13, which fixes path command injection in the bash and fish activation scripts (pypa/virtualenv#3252). It was closed unmerged because it collapsed virtualenv to one version for every Python. On Python <3.9 that left tox<4 resolving to tox 1.1 (2011) instead of 3.14.6, and tox 1.1 cannot run this repo's tox.ini.

Complexity: Low
Target branch: release-v0.9.x

Context
  • pyproject.toml pins tox<4 on Python <3.9 and tox>=4 plus tox-uv on 3.9+.
  • tox 3.x depends on virtualenv, so the lock needs a separate virtualenv version on each Python range tox 3.x runs on. tox 1.1 has no virtualenv dependency, which is how the resolver picked it.
  • The py3.6–3.8 CI jobs pip install tox without the lockfile, so CI passed on #389 despite the broken lock.
  • uv lock --upgrade-package virtualenv on release-v0.9.x keeps tox 3.14.6 and resolves virtualenv to 20.16.2 (py3.6–3.7), 21.4.3 (py3.8) and 21.14.5 (py3.9+).
The Change
  • virtualenv should be upgraded in uv.lock to a release that includes pypa/virtualenv#3252 on every Python range that has one.
  • python-discovery moves with it: virtualenv 21.x depends on it.
  • tox and the virtualenv versions locked for py3.6–3.8 have to stay compatible with each other, since the newer virtualenv releases have dropped those Pythons.
Acceptance Criteria
  • uv.lock resolves tox to 3.x on Python 3.6, 3.7 and 3.8.
  • uv.lock resolves virtualenv to ≥ 21.7.13 on Python 3.9+.
  • uv lock --check passes.
  • tox runs this repo's tox.ini on Python 3.8 with the locked dependencies.
References
  • Closed Dependabot PR: #389

AI usage

Claude Code drafted this from its review of #389 and checked the resolution by relocking the base branch.

Filed from #389's review.

主要语言
Python
星标
15
派生
23
平均合并
2 天 22 小时
30 天内合并 PR
4

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

learningequality/morango 的其他 Issue

查看 learningequality/morango 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。