Commit a4e1a3d
Add typing_extensions dependency for Python < 3.11 (#1151)
* Add typing_extensions as dependency for Python < 3.11
PyJWT imports typing_extensions.Never (Python < 3.11) and
typing_extensions.TypeAlias (Python < 3.10) at runtime in
jwt/algorithms.py, but typing_extensions was never declared as a
dependency. This causes a ModuleNotFoundError on Python 3.9/3.10
when importing the library.
Fixes #1150
https://claude.ai/code/session_013ZvbKEyVkcUx8xHrqt8v2F
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Add minimal install CI job to catch undeclared dependencies
The existing install-dev job always installs with [dev] extras, which
bundles cryptography and pulls in typing_extensions transitively via
test tooling. This masked the missing typing_extensions dependency
(#1150).
Add an install-minimal job that tests bare `pip install .` and
`pip install .[crypto]` on Python 3.9 and 3.13, ensuring undeclared
runtime dependencies are caught immediately.
https://claude.ai/code/session_013ZvbKEyVkcUx8xHrqt8v2F
* Merge install-minimal into install-dev and test all install modes
Consolidate into a single job that tests progressively: bare install,
crypto extra, then dev extras. Tests Python 3.9 and 3.13 to cover
both the typing_extensions fallback and native typing paths.
https://claude.ai/code/session_013ZvbKEyVkcUx8xHrqt8v2F
* Bump version to 2.12.1
https://claude.ai/code/session_013ZvbKEyVkcUx8xHrqt8v2F
* Add explicit permissions block to CI workflow
Restrict GITHUB_TOKEN to read-only contents access, as flagged by
github-advanced-security[bot].
https://claude.ai/code/session_013ZvbKEyVkcUx8xHrqt8v2F
* Fix RST underline length in CHANGELOG
https://claude.ai/code/session_013ZvbKEyVkcUx8xHrqt8v2F
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent bd9700c commit a4e1a3d
File tree
4 files changed
+32
-5
lines changed- .github/workflows
- jwt
4 files changed
+32
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
| 103 | + | |
100 | 104 | | |
101 | | - | |
| 105 | + | |
102 | 106 | | |
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
108 | 112 | | |
109 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
110 | 126 | | |
111 | 127 | | |
112 | 128 | | |
113 | 129 | | |
114 | | - | |
| 130 | + | |
115 | 131 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
10 | 18 | | |
11 | 19 | | |
12 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
0 commit comments