Skip to content

Bump cryptojwt minimum to 1.11.0 - #124

Draft
lionick wants to merge 5 commits into
IdentityPython:mainfrom
lionick:ci-pin-cryptography
Draft

lionick wants to merge 5 commits into
IdentityPython:mainfrom
lionick:ci-pin-cryptography

Conversation

@lionick

@lionick lionick commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

cryptography 47.0.0 removed legacy curves (e.g. SECT571R1) still referenced at import time by cryptojwt's EC JWK module, breaking test collection across the suite on all Python versions.

cryptography 47.0.0 removed legacy curves (e.g. SECT571R1) still
referenced at import time by cryptojwt's EC JWK module, breaking
test collection across the suite on all Python versions.
python setup.py install invokes easy_install, which re-resolves
idpyoidc's own install_requires independently of requirements-dev.txt.
It ignores the cryptography pin, fetches pyOpenSSL's latest release
(which needs a newer cryptography), and then fails outright since
modern cryptography sdists ship no setup.py for easy_install to run.

Installing requirements-dev.txt and the package together in one pip
call lets the resolver pick a pyOpenSSL version compatible with the
pinned cryptography instead.
@c00kiemon5ter

Copy link
Copy Markdown
Member

I think we should do the opposite and actually use the cryptojwt v1.11.0 or newer.

cryptojwt 1.11.0 fixes the EC JWK module's reference to legacy curves
cryptography 47 removed, which is what the pin in de7eab5 worked
around.
@lionick lionick changed the title Pin cryptography<47 in dev requirements Bump cryptojwt minimum to 1.11.0 Sep 24, 2026
@lionick

lionick commented Sep 24, 2026

Copy link
Copy Markdown
Contributor Author

I agree, I have sum up the work at #125.

- '3.8'
- '3.9'
- '3.10'
- '3.11'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should add 3.12, 3.13, 3.14

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I have updated the #125

Comment thread requirements-dev.txt
bandit
urllib3<1.27
cryptography<47 No newline at end of file
urllib3<1.27 No newline at end of file

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

do we need this restriction?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think we don't.
Added in Dec 2022 for a requests/urllib3 incompatibility that predates requests' proper urllib3 2.x support. Current requests (2.32.5) declares Requires-Dist: urllib3<3,>=1.21.1, so nothing in the dependency graph needs the old ceiling anymore.
I have updated the #125

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.

2 participants