Skip to content

Import Markup from markupsafe#2047

Merged
sentrivana merged 5 commits intogetsentry:masterfrom
rco-ableton:fix-flask-integration-for-v2.3.x
May 12, 2023
Merged

Import Markup from markupsafe#2047
sentrivana merged 5 commits intogetsentry:masterfrom
rco-ableton:fix-flask-integration-for-v2.3.x

Conversation

@rco-ableton
Copy link
Copy Markdown
Contributor

Fixes a DeprecationWarning when using Flask v2.3.0 or later (actually, it breaks completely with flask==2.3.0, but that's down to a mistake in the Flask project. Some tests are failing for me locally, but the same tests are failing on the master branch so hopefully that's just something peculiar to my machine.

See Flask's release notes for more context.

Flask v2.3.0 deprecates importing Markup from flask, indicating that it
should be imported from markupsafe instead.
@phil-airship
Copy link
Copy Markdown

phil-airship commented Apr 26, 2023

Hit this issue as well, reference for change in Flask that led to this being necessary pallets/flask#4996

@antonpirker
Copy link
Copy Markdown
Contributor

Thanks for the fix @rco-ableton

I have started the CI jobs, lets see if all the tests are green. (If not, could you please fix them?)

@rco-ableton
Copy link
Copy Markdown
Contributor Author

I have started the CI jobs, lets see if all the tests are green. (If not, could you please fix them?)

I'd be happy to if I'm able, but right now there still seem to be 10 pending checks that haven't reported their status for a while now. Are they stuck?

@sentrivana sentrivana merged commit e8f4792 into getsentry:master May 12, 2023
@sentrivana
Copy link
Copy Markdown
Contributor

I've moved markupsafe to the flask extras in setup.py. The PR looks good and the tests are happy, so merging this now. Thanks for contributing @rco-ableton!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants