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

DeprecationWarning about __version__ attributes #255

Open
decaz opened this issue Mar 5, 2024 · 0 comments · May be fixed by #256
Open

DeprecationWarning about __version__ attributes #255

decaz opened this issue Mar 5, 2024 · 0 comments · May be fixed by #256

Comments

@decaz
Copy link
Contributor

decaz commented Mar 5, 2024

Since marshmallow-code/marshmallow#2227 and marshmallow-code/apispec#878 were released there are deprecation warnings are raising across the project:

.venv/lib/python3.12/site-packages/flask_apispec/wrapper.py:13: DeprecationWarning: The '__version__' 
attribute is deprecated and will be removed in in a future version. Use feature 
detection or 'importlib.metadata.version("marshmallow")' instead.
    [int(part) for part in ma.__version__.split('.') if part.isdigit()]
.venv/lib/python3.12/site-packages/flask_apispec/apidoc.py:15: DeprecationWarning: The '__version__' 
attribute is deprecated and will be removed in in a future version. Use feature 
detection or 'importlib.metadata.version("apispec")' instead.
    [int(part) for part in apispec.__version__.split('.') if part.isdigit()]

@jmcarp @sloria FYI

@decaz decaz linked a pull request Mar 9, 2024 that will close this issue
MooseyAnon added a commit to MooseyAnon/corna that referenced this issue Sep 8, 2024
Currently, we ignore all deprecation warnings as we know we are significantly
behind in terms of python versions.

As we are now upgrading to python3.12 we no longer need global warnings.

However, it seems that the package `flask_apispec` has not updated marshmallow
versions, which is causing deprecation warnings. There is a issues[1] along with
a PR bit its been open for several months and does not look like it will be
merged soon.

In the meantime, we want to ignore `flask_apispec` specific deprecation warnings
as its a 3rd party package and we have no control over whether it will be updated
or not.

[1] jmcarp/flask-apispec#255
MooseyAnon added a commit to MooseyAnon/corna that referenced this issue Sep 14, 2024
Currently, we ignore all deprecation warnings as we know we are significantly
behind in terms of python versions.

As we are now upgrading to python3.12 we no longer need global warnings.

However, it seems that the package `flask_apispec` has not updated marshmallow
versions, which is causing deprecation warnings. There is a issues[1] along with
a PR bit its been open for several months and does not look like it will be
merged soon.

In the meantime, we want to ignore `flask_apispec` specific deprecation warnings
as its a 3rd party package and we have no control over whether it will be updated
or not.

[1] jmcarp/flask-apispec#255
MooseyAnon added a commit to MooseyAnon/corna that referenced this issue Sep 14, 2024
Currently, we ignore all deprecation warnings as we know we are significantly
behind in terms of python versions.

As we are now upgrading to python3.12 we no longer need global warnings.

However, it seems that the package `flask_apispec` has not updated marshmallow
versions, which is causing deprecation warnings. There is a issues[1] along with
a PR bit its been open for several months and does not look like it will be
merged soon.

In the meantime, we want to ignore `flask_apispec` specific deprecation warnings
as its a 3rd party package and we have no control over whether it will be updated
or not.

[1] jmcarp/flask-apispec#255
MooseyAnon added a commit to MooseyAnon/corna that referenced this issue Sep 14, 2024
Currently, we ignore all deprecation warnings as we know we are significantly
behind in terms of python versions.

As we are now upgrading to python3.12 we no longer need global warnings.

However, it seems that the package `flask_apispec` has not updated marshmallow
versions, which is causing deprecation warnings. There is a issues[1] along with
a PR bit its been open for several months and does not look like it will be
merged soon.

In the meantime, we want to ignore `flask_apispec` specific deprecation warnings
as its a 3rd party package and we have no control over whether it will be updated
or not.

[1] jmcarp/flask-apispec#255
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 a pull request may close this issue.

1 participant