GithubHelp home page GithubHelp logo

Flask 3.0.0 about flask-restx HOT 12 OPEN

Ced1999 avatar Ced1999 commented on June 3, 2024 1
Flask 3.0.0

from flask-restx.

Comments (12)

peter-doggart avatar peter-doggart commented on June 3, 2024 24

I haven't forgotten about this, just got very little time atm. It's still on my to-do list!

from flask-restx.

peter-doggart avatar peter-doggart commented on June 3, 2024 13

Flask-restx community, thanks for your patience on this! :)

I have just merged all the most recent PRs and done some general tidy up. Flask-restx 1.3.0 should hit PyPi in a few minutes. Flask and Werkzeug >=3.0.0 should now work correctly again.

There is still a deprecation warning relating to jsonschema, however it doesn't currently impact functionality. I will hopefully get some time to deep dive on how to fix it over the coming weeks.

Please file a new issue (or PR if you have the time!) if you find anything is broken or funny.

from flask-restx.

peter-doggart avatar peter-doggart commented on June 3, 2024 3

@nachitox Great news. I will try and get everything merged over the coming days, pretty flat out with other things this week.

from flask-restx.

peter-doggart avatar peter-doggart commented on June 3, 2024 1

Just pinning this to keep it at the top. It is our intention to update flask-restx to support Flask 3.0.0+ as soon as possible, but it is currently blocked because, as @Ryu-CZ mentioned, we use pytest-flask to mock flask components, and it is also broken by the new Flask version.

Thankfully, the project is still active so hopefully will be fixed shortly. You can follow the discussion here: pytest-dev/pytest-flask#167

from flask-restx.

peter-doggart avatar peter-doggart commented on June 3, 2024 1

@safe I've created a PR for this. Can you just run your eye over it and make sure it's all fine? #579

from flask-restx.

nachitox avatar nachitox commented on June 3, 2024 1

pytest-flask was upgraded yesterday.

from flask-restx.

martin-thoma avatar martin-thoma commented on June 3, 2024 1

The new version is on PyPI. Should this be closed?

from flask-restx.

Yoshi325 avatar Yoshi325 commented on June 3, 2024

At least one part is being tackled here: #567

So I'd say there is hope.

from flask-restx.

Ryu-CZ avatar Ryu-CZ commented on June 3, 2024

I made a few patches for major issues, but tool the flask-restx is using to mock test flask compatibility are unfortunately also broken by transition to 3.0. So pull request reviews could take some time.
This unfortunately can put also block your projects from integration of flask 3.0. I put a hotfixes to restx-monkey 5.1+ which makes 3.0 flask and flask-restx compatible again so you can test and resolve your own code base compatibilities issues, while flask-restx teams does the same. I hope this could save you some time.

from flask-restx.

safe avatar safe commented on June 3, 2024

@peter-doggart Thoughts on pinning flask to < 3.0.0 until this is resolved? I can raise a PR if so.

from flask-restx.

peter-doggart avatar peter-doggart commented on June 3, 2024

I have now released flask-restx==1.2.0 which contains restrictions on some version until we can get everything updated (still awaiting pytest-flask updates) so that a default installation isn't broken.

Anyone who wants to make use of restx-monkey can install flask-restx==1.1.0 and then patch which will allow flask >=3.0.0 usage.

from flask-restx.

diogper avatar diogper commented on June 3, 2024

Great news!

from flask-restx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.