Skip to content

Commit a049882

Browse files
authored
setup.py: bump PyJWT floor to >=2.11.0 to match the actual runtime requirement (#577)
1 parent 03b6435 commit a049882

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@
3131
install_requires=[
3232
"Werkzeug>=0.14", # Needed for SameSite cookie functionality
3333
"Flask>=2.0,<4.0",
34-
"PyJWT>=2.0,<3.0",
34+
# `flask_jwt_extended/tokens.py` imports `Options` from `jwt.types`,
35+
# which was first added in PyJWT 2.11.0. Earlier 2.x releases parse
36+
# the import-time `from jwt.types import Options` as an ImportError.
37+
"PyJWT>=2.11.0,<3.0",
3538
],
3639
extras_require={"asymmetric_crypto": ["cryptography>=3.3.1"]},
3740
python_requires=">=3.10,<4",

0 commit comments

Comments
 (0)