You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2026/05/13 04:08:06 UTC
[PR] Pin pyjwt>=2.11.0 in FAB provider so flask_jwt_extended imports cleanly [airflow]
potiuk opened a new pull request, #66840:
URL: https://github.com/apache/airflow/pull/66840
## Summary
`flask_jwt_extended.tokens` does `from jwt.types import Options`, and `jwt.types.Options` was first introduced in **PyJWT 2.11.0** (Jan 2026). `airflow-core/pyproject.toml` already pins `pyjwt>=2.11.0`, but the providers **Compat 3.0.6** matrix job installs the FAB provider against `airflow-core==3.0.6`, where the pyjwt floor is permissive enough for resolvers to land on 2.10.x. That breaks collection of every `providers/fab/tests/unit/fab/**` test with:
```
ImportError: cannot import name 'Options' from 'jwt.types'
...
/usr/python/lib/python3.10/site-packages/flask_jwt_extended/tokens.py:14: in <module>
from jwt.types import Options
```
Pin pyjwt directly in `providers/fab/pyproject.toml` so the FAB provider keeps installing cleanly regardless of which `airflow-core` release it is paired with.
## Reproduction
Failing scheduled main run:
https://github.com/apache/airflow/actions/runs/25760423290/job/75664049129
Job `provider distributions tests / Compat 3.0.6:P3.10:` — 4 errors during collection in `providers/fab/tests/unit/fab/...`, all with the same `ImportError`.
## Test plan
- [ ] Compat 3.0.6 provider tests collect and run cleanly with this pin in place
- [ ] No change to the resolved pyjwt version when paired with current `airflow-core` (which already requires `>=2.11.0`)
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes — Claude Code (Opus 4.7)
Generated-by: Claude Code (Opus 4.7) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Pin pyjwt>=2.11.0 in FAB provider so flask_jwt_extended imports cleanly [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #66840:
URL: https://github.com/apache/airflow/pull/66840
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Pin pyjwt>=2.11.0 in FAB provider so flask_jwt_extended imports cleanly [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed pull request #66840: Pin pyjwt>=2.11.0 in FAB provider so flask_jwt_extended imports cleanly
URL: https://github.com/apache/airflow/pull/66840
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org