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: distutils versions classes are deprecated. #245

Open
cchacholiades opened this issue Jul 16, 2022 · 0 comments
Open

Comments

@cchacholiades
Copy link

cchacholiades commented Jul 16, 2022

This warning is thrown when using oauth2==1.9.0.post1 & Django 3.2

/venv3/lib/python3.9/site-packages/oauth2/_version.py:17: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  __version__ = distutils_Version(verstr)

Should be easy to fix:

from packaging import version
 __version__ = version(verstr)
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

No branches or pull requests

1 participant