-
Notifications
You must be signed in to change notification settings - Fork 16
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
distuitils Version classes are deprecated #76
Comments
Thanks @Samreay ! Indeed this is the correct fix. Also there is a need to update the Do you feel like opening a PR ? |
Samreay
added a commit
to Samreay/mkdocs-gallery
that referenced
this issue
Oct 18, 2023
@smarie sure thing. Three new PRs now in your inbox awaiting your thoughts |
This was referenced Oct 20, 2023
smarie
added a commit
that referenced
this issue
Nov 8, 2023
Fixes #76 - Swapping over to use package
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @smarie!
Looks like a fairly simple change, but right now Im getting a ton of deprecation warnings:
Which boil down to:
DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
Hopefully the fix is a simple swap here:
mkdocs-gallery/src/mkdocs_gallery/py_source_parser.py
Line 16 in 89fea9e
From
to
And then updating
I believe you could also make use of
from packaging.version import parse
if you wanted too.The text was updated successfully, but these errors were encountered: