Skip to content

ci(deps): move development dependencies past their advisories - #68

Merged
arbianst merged 1 commit into
mainfrom
ci/deps-advisories
Nov 3, 2026
Merged

arbianst merged 1 commit into
mainfrom
ci/deps-advisories

Conversation

@arbianst

@arbianst arbianst commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

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 and pyproject.toml declares a range for it (>=3.5.0, <5), so an application installing sentdm resolves its own version. This only moves this repository's own lockfile.

Changes

uv lock --upgrade-package for the seven packages, then uv lock --upgrade-package "pytest<9.1". pyproject.toml is untouched; uv 0.13 writes lock revision 5 where it was 3.

package before after, Python ≥ 3.10 after, Python 3.9 resolution
aiohttp 3.13.3 3.14.5 3.13.5
anyio 4.12.1 4.16.0 4.12.1
certifi 2026.1.4 2026.10.23 2026.10.23
idna 3.11 3.20 3.20
multidict 6.7.0 7.1.0 / 7.2.1 6.7.1
pygments 2.19.2 2.21.0 2.21.0
pytest 9.0.2 / 8.4.2 9.0.3 8.4.2

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 the filterwarnings = error configuration while plugins import, and pytest-asyncio 1.3.0 imports the deprecated asyncio.AbstractEventLoopPolicy, which fails the whole suite on Python 3.14 before any test runs.

Verification

uv sync --all-extras --locked and ./scripts/lint (pyright, mypy, import check) pass. ./scripts/test passes 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

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>

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.

Comment thread uv.lock
]
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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 (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.

@arbianst
arbianst merged commit 2f6f27f into main Nov 3, 2026
8 checks passed
@arbianst
arbianst deleted the ci/deps-advisories branch November 3, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant