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

New version alternative for package.version #95852

Closed
mrquokka opened this issue Aug 10, 2022 · 1 comment
Closed

New version alternative for package.version #95852

mrquokka opened this issue Aug 10, 2022 · 1 comment
Labels
docs Documentation in the Doc dir

Comments

@mrquokka
Copy link

mrquokka commented Aug 10, 2022

Documentation

When i use packaging.version.parse it will raise warning
/hdd/work/envs/main/lib/python3.10/site-packages/packaging/version.py:111: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release

For resolve it, i trited distutils.version.StrictVersion and get
DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives

on this pep alternative of this - use packaging.version

How to resolve this logical loop?

@mrquokka mrquokka added the docs Documentation in the Doc dir label Aug 10, 2022
@zware
Copy link
Member

zware commented Aug 10, 2022

As far as I can tell, the suggestion is to use packaging.version.Version rather than packaging.version.LegacyVersion, not anything from distutils. packaging is not part of the standard library anyway; any issues with it should be raised on its own issue tracker. See especially the pinned issue on that tracker.

@zware zware closed this as not planned Won't fix, can't repro, duplicate, stale Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants