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

Replace deprecated pkg_resources #713

Open
jakirkham opened this issue Apr 2, 2024 · 0 comments
Open

Replace deprecated pkg_resources #713

jakirkham opened this issue Apr 2, 2024 · 0 comments

Comments

@jakirkham
Copy link
Contributor

Currently pkg_resources is used in anaconda-client. Here are a few cases based on GH search

https://github.com/Anaconda-Platform/anaconda-client/blob/f2d1601fc23fbe0fbdbd779c47ba423d93b9514a/binstar_client/__init__.py#L15

https://github.com/Anaconda-Platform/anaconda-client/blob/f2d1601fc23fbe0fbdbd779c47ba423d93b9514a/binstar_client/inspect_package/pypi.py#L14

However setuptools deprecated pkg_resources last year ( pypa/setuptools#3843 ). As a result we are seeing DeprecationWarnings when using anaconda-client

Maybe this can be phased out by using something like importlib.metadata added in Python 3.8

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