Skip to content

build(deps): Limit uv lock environments to python 3.13 - #126162

Merged
oioki merged 1 commit into
masterfrom
alextarasov/uv-lock-environments-3.13
Oct 1, 2026
Merged

oioki merged 1 commit into
masterfrom
alextarasov/uv-lock-environments-3.13

Conversation

@oioki

@oioki oioki commented Oct 1, 2026

Copy link
Copy Markdown
Member

Alternative to #126158. Instead of capping requires-python, keep it at >=3.13 (#125179) and limit [tool.uv] environments to python_version < '3.14'. Only the lock's fork markers change.

All Dependabot security updates for uv.lock currently fail (urllib3, Django, PyJWT, oauthlib):

uv lock --upgrade-package urllib3==2.8.0
error: No solution found when resolving dependencies for split (python_full_version >= '3.15' ...)
  cause: asyncpg==0.31.0 has no `sys_platform == 'darwin' or sys_platform == 'linux'`-compatible wheels

Since uv 0.12.14 (astral-sh/uv#21672) wheel coverage is checked per resolver fork, and our internal PyPI has no cp314/cp315 wheels for several deps (asyncpg, uvloop, rpds-py, tiktoken, vroomrs, xmlsec). bump-version.yml is unaffected only because it pins uv 0.12.10.

Compared to #126158, this keeps the project's declared Python support unchanged and only narrows what we lock for. Lifting it once the mirror builds 3.14 (and later 3.15) wheels is a one-line change.

With this change, Dependabot's exact command succeeds for every open pip alert's target version.

uv >= 0.12.14 checks wheel coverage per resolver fork. Our internal pypi
has no cp314/cp315 wheels for some packages (asyncpg, uvloop, ...), so
the 3.14 and >=3.15 forks fail on any `uv lock --upgrade-package`,
which blocks all Dependabot security updates for uv.lock.

Keep requires-python >=3.13 and only drop the unresolvable forks.
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 1, 2026
@oioki
oioki marked this pull request as ready for review October 1, 2026 13:15
@oioki
oioki requested a review from a team as a code owner October 1, 2026 13:15
@oioki
oioki merged commit b489eea into master Oct 1, 2026
88 checks passed
@oioki
oioki deleted the alextarasov/uv-lock-environments-3.13 branch October 1, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants