Commit a41f5f7
committed
setup.py: bump PyJWT floor to >=2.11.0 to match the actual runtime requirement
flask_jwt_extended/tokens.py does:
from jwt.types import Options
…and jwt.types.Options was first added in PyJWT 2.11.0 (2026-01-30).
The current install_requires in setup.py declares PyJWT>=2.0,<3.0,
which is wide enough for resolvers to land on PyJWT 2.10.x and earlier
— those installs then fail at import time with:
ImportError: cannot import name 'Options' from 'jwt.types'
PR #574 (commit 9bf8d35, 'Bump PyJWT to 2.12.1') already bumped the
dev requirements.txt to PyJWT 2.12.1, but the package's own
install_requires floor was left at >=2.0. This change bridges that
gap so downstream consumers (e.g. flask-appbuilder, apache-airflow)
can rely on pip install flask-jwt-extended resulting in a working
import without having to add their own defensive PyJWT pin.
Same class of issue as #553 — a runtime import that requires a newer
PyJWT than the declared floor admits.
The upper bound (<3.0) is unchanged.1 parent 03b6435 commit a41f5f7
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
0 commit comments