Skip to content

Drop the Python 3.13.0b4 cffi pin so cryptography can be bumped to 50 - #483

Merged
ybastide merged 1 commit into
mainfrom
chore/cryptography-50
Nov 26, 2026
Merged

ybastide merged 1 commit into
mainfrom
chore/cryptography-50

Conversation

@ybastide

Copy link
Copy Markdown
Contributor

What

Drop the dev-group pin cffi==v1.17.0rc1; python_full_version=='3.13.0b4' and relock with only cryptography and cffi allowed to move:

  • cryptography 46.0.0 → 50.0.2
  • cffi 1.17.0rc1 / 2.0.0 → 2.1.1

No other locked version changes. The lock also loses the python_full_version == '3.13' split that the pin created.

Why

The pin dates from 2024-07-26, when CI tested the 3.13.0 beta 4 (44911a3). uv locks its marker as a whole python_full_version == '3.13' split, so on 3.13 cffi stayed at the release candidate. cryptography 50 needs cffi>=2.0.0, so every Dependabot security update for cryptography failed with:

error: No solution found when resolving dependencies for split (markers: python_full_version == '3.13')
  cause: Because moto>=4.2.8,<=4.2.14 depends on cryptography==50.0.0 and cryptography==50.0.0 depends on cffi{platform_python_implementation != 'PyPy'}>=2.0.0, [...]
         And because simpleflow:dev depends on cffi{python_full_version == '3.13'}==1.17.0rc1, [...] your project's requirements are unsatisfiable.

That left seven open cryptography alerts (4 high, 2 medium, 1 low); the newest is fixed only in 50.0.0. 50.0.2 covers all seven. The diskcache alert has no fixed version and stays open.

cryptography reaches simpleflow only through dev dependencies (moto), so the published package's requirements are unchanged.

Tests

  • uv lock --check exits 0, and uv lock leaves the file unchanged.
  • uv run --frozen --all-extras --group=dev pytest, as CI runs it, on 3.11.18, 3.13.17 and 3.14.9 with cryptography 50.0.2 and cffi 2.1.1 installed: 450 passed, 10 skipped, 3 xfailed each. 3.12, 3.15 and pypy-3.11 are left to CI.
  • uvx prek run --all-files is clean.

🤖 Generated with Claude Code

The dev group pinned cffi==1.17.0rc1 for python_full_version=='3.13.0b4',
added when CI tested the 3.13 beta. uv locks that marker as a whole
python_full_version == '3.13' split, so on 3.13 cffi stayed at the
release candidate. cryptography 50 needs cffi>=2.0.0, so every
Dependabot security update for cryptography failed to resolve, and the
lock stayed on cryptography 46.0.0 with seven open alerts, the newest
fixed only in 50.0.0.

Removing the pin and running uv lock --upgrade-package cryptography
--upgrade-package cffi moves cryptography 46.0.0 -> 50.0.2 and cffi to
2.1.1 on every Python; no other locked version changes. cryptography is
only a dev dependency (via moto), so the published package's
requirements are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ybastide
ybastide merged commit bc77294 into main Nov 26, 2026
8 checks passed
@ybastide
ybastide deleted the chore/cryptography-50 branch November 26, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant