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

pkg_resources is deprecated as an API #374

Open
anetchaev opened this issue Jan 10, 2025 · 0 comments
Open

pkg_resources is deprecated as an API #374

anetchaev opened this issue Jan 10, 2025 · 0 comments

Comments

@anetchaev
Copy link

from pkg_resources import parse_version # included in setuptools

Using Python 3.12.3:
"from pkg_resources import parse_version"

returns

:1: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html

Actually that line is not needed if line 59 is changed to:

if setuptools.version < SETUPTOOLS_MIN_VER:

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