Repository navigation
ci(deps): move development dependencies past their advisories - #68
Conversation
aiohttp, anyio, certifi, idna, multidict, pygments and pytest move to their patched versions in the lockfile. anyio is the one runtime dependency among them and the package declares a range for it, so an installing application resolves its own version; aiohttp is an optional extra. The Python 3.9 resolution keeps aiohttp 3.13.5, anyio 4.12.1, multidict 6.7.1 and pytest 8.4.2, because the patched releases need Python 3.10. pytest stops at 9.0.3: from 9.1 it applies the warnings filter while plugins import, and pytest-asyncio's import of the deprecated asyncio event-loop policy then fails the suite on Python 3.14. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
| ] | ||
| sdist = { url = "https://files.pythonhosted.org/packages/96/f0/5eb65b2bb0d09ac6776f2eb54adee6abe8228ea05b20a5ad0e4945de8aac/anyio-4.12.1.tar.gz", hash = "sha256:41cfcc3a4c85d3f05c932da7c26d0201ac36f72abd4435ba90d0464a3ffed703", size = 228685, upload-time = "2026-01-06T11:45:21.246Z" } | ||
| wheels = [ | ||
| { url = "https://files.pythonhosted.org/packages/38/0e/27be9fdef66e72d64c0cdc3cc2823101b80585f8119b5c112c2e8f5f7dab/anyio-4.12.1-py3-none-any.whl", hash = "sha256:d405828884fc140aa80a3c667b8beed277f1dfedec42ba031bd6ac3db606ab6c", size = 113592, upload-time = "2026-01-06T11:45:19.497Z" }, | ||
| ] | ||
|
|
||
| [[package]] | ||
| name = "anyio" | ||
| version = "4.16.0" |
There was a problem hiding this comment.
🟡 (optional) Contributors who install with pip install -r requirements-dev.lock still get the versions this PR is moving past, such as anyio 4.12.1, certifi 2026.1.4, idna 3.11 and pygments 2.19.2. The PR regenerates uv.lock but not requirements-dev.lock, which is the pip-path export of it. Fix: run uv export -o requirements-dev.lock --no-hashes (the same command scripts/bootstrap:30 runs) and commit the result with this change. Until then, the next ./scripts/bootstrap dirties the tree with an unrelated diff.
Why this was flagged
CONTRIBUTING.md:32 tells contributors without uv to run pip install -r requirements-dev.lock. That file was generated from the old uv.lock and the diff leaves it alone. It still pins anyio==4.12.1, certifi==2026.1.4, idna==3.11, pygments==2.19.2, typing-extensions==4.15.0, and pytest==9.0.2 ; python_full_version >= '3.10'. Those are the advisory-affected versions the PR says it replaces, so pip-based setups keep installing them after merge. scripts/bootstrap:30 regenerates requirements-dev.lock with uv export on every run. As a result, the first contributor to run ./scripts/bootstrap after this merge gets a working-tree diff in a file unrelated to their change.
Verification: Triggering condition: a contributor sets up with pip, following CONTRIBUTING.md:32 (pip install -r requirements-dev.lock). git diff --stat 9e0885f..HEAD shows only uv.lock changed. requirements-dev.lock still pins anyio==4.12.1 (line 6). On the pip path the base branch already installs the same versions. Still, the advisory fix in this PR does not reach the pip path.
Move development dependencies past their advisories
The lockfile pinned seven packages at versions with published advisories: aiohttp (the optional
sentdm[aiohttp]extra), anyio, certifi, idna, multidict, pygments and pytest. anyio is the one runtime dependency among them andpyproject.tomldeclares a range for it (>=3.5.0, <5), so an application installingsentdmresolves its own version. This only moves this repository's own lockfile.Changes
uv lock --upgrade-packagefor the seven packages, thenuv lock --upgrade-package "pytest<9.1".pyproject.tomlis untouched; uv 0.13 writes lock revision 5 where it was 3.typing-extensions and yarl follow as dependencies of the moved packages.
Two things stay as they are on purpose. The Python 3.9 resolution keeps the older aiohttp, anyio, multidict and pytest because their patched releases need Python 3.10, so advisories against those entries remain until 3.9 leaves
requires-python. And pytest stops at 9.0.3, the advisory's fixed version, rather than the latest 9.2.0: from 9.1 pytest applies thefilterwarnings = errorconfiguration while plugins import, and pytest-asyncio 1.3.0 imports the deprecatedasyncio.AbstractEventLoopPolicy, which fails the whole suite on Python 3.14 before any test runs.Verification
uv sync --all-extras --lockedand./scripts/lint(pyright, mypy, import check) pass../scripts/testpasses on Python 3.9.18 with both Pydantic groups (461 passed), and the Python 3.14 lane passes as well (472 passed, 1572 skipped).A
ci:commit: hidden from the changelog, cuts no release.🤖 Generated with Claude Code