Support latest Pallets stack (Flask 2.x, itsdangerous 2.x, Jinja 3.x) #8932
Replies: 5 comments
-
|
Adding a link to the blog post with an overview of the major release across the Pallets stack. |
Beta Was this translation helpful? Give feedback.
-
|
I understand jinja, even itsdangerous, but flask? |
Beta Was this translation helpful? Give feedback.
-
Flask is a test dependency because a Flask integration example is documented in Are you arguing for dropping the test dependency? As long as it’s there, using current major releases of itsdangerous and Jinja will mean testing with a compatible major release of Flask. A quick grep of the FastAPI sources suggests the integrations with jinja2 and itsdangerous are trivial, and mostly just for the purpose of enabling optional features in starlette, so it’s likely that simply loosening the version requirements will suffice for all three packages. I can report that starlette’s test suite does work with the new versions of Jinja and itsdangerous. |
Beta Was this translation helpful? Give feedback.
-
|
Face palm... |
Beta Was this translation helpful? Give feedback.
-
|
Currently: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
First check
python-fastapipackage in Fedora Linux. I think this issue is helpful rather than distracting, even if I can’t sign up to help with tech support.Example
Here's a self-contained minimal, reproducible, example with my use case:
Subset of FastAPI’s pyproject.toml:
Inspection shows the mentioned versions are not supported.
Description
New major versions of the Pallets projects were released about two months ago, including FastAPI dependencies Flask, itsdangerous, and Jinja.
Links to changelogs:
FastAPI should support the latest versions of these dependencies.
The solution you would like
Review changelogs for breaking changes relevant to FastAPI; test FastAPI with these versions; and adjust
pyproject.tomlto allow them.Describe alternatives you've considered
In Fedora Linux:
python-fastapifrom the distribution if necessary.Environment
OS: [e.g. Linux / Windows / macOS]: Fedora Linux Rawhide (development version) – but this affects all users who need or want to use the latest Pallets stack
FastAPI Version [e.g. 0.3.0]: 0.66.0
Python version:
Python 3.10.0b3Beta Was this translation helpful? Give feedback.
All reactions