Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated Flask version attribute #243

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

greyli
Copy link
Member

@greyli greyli commented Apr 12, 2024

The flask.__version__ attr is deprecated and will be removed in the Flask 3.1 version. This PR replaced this attr to importlib.metadata.version.

We could remove the use of pkg_resources when we drop the Python 3.7 support.

Fix: #229

The `flask.__version__` attr is deprecated and will be removed in Flask 3.1 version. This PR replaced this attr to `importlib.metadata.version`.

We could remove the use of `pkg_resources` when we drop the Python 3.7 support.
@greyli greyli force-pushed the fix-flask-version branch from d967efe to 7e9bbae Compare April 12, 2024 14:47
@greyli greyli changed the title Fix deprecated Flask version attribute Remove deprecated Flask version attribute Apr 12, 2024
Copy link
Member

@jeffwidman jeffwidman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jeffwidman jeffwidman merged commit 716f05d into pallets-eco:master Apr 12, 2024
10 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Address Flask 3.0 deprecation warnings on using __version__ (to be removed in Flask 3.1)
2 participants