Skip to content

build(deps): Cap requires-python to 3.13 - #126158

Closed
oioki wants to merge 1 commit into
masterfrom
alextarasov/cap-requires-python-3.13
Closed

oioki wants to merge 1 commit into
masterfrom
alextarasov/cap-requires-python-3.13

Conversation

@oioki

@oioki oioki commented Oct 1, 2026

Copy link
Copy Markdown
Member

Caps requires-python to ==3.13.* (what we run, per .python-version) and relocks. The lock diff only drops the 3.14 / >=3.15 resolution forks and unused cp314 wheel entries.

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

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. With an open-ended requires-python, the 3.14 and >=3.15 forks have no compatible wheels on our internal PyPI (asyncpg, uvloop), so any uv lock --upgrade-package fails. The existing lock only works because uv reuses it as-is; bump-version.yml is unaffected because it pins uv 0.12.10.

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. With an open
requires-python, the 3.14 and >=3.15 forks have no compatible wheels on
our internal pypi (asyncpg, uvloop), so any `uv lock --upgrade-package`
fails. This blocks all Dependabot security updates for uv.lock.
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 1, 2026
oioki added a commit that referenced this pull request Oct 1, 2026
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](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.
@oioki

oioki commented Oct 1, 2026 •

Copy link
Copy Markdown
Member Author

Superseded by #126162

@oioki oioki closed this Oct 1, 2026
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.

1 participant