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

drop the final remaining use of the deprecated pkg_resources module #590

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eli-schwartz
Copy link

@eli-schwartz eli-schwartz commented Sep 16, 2024

Declaring a namespace package has gone through a few revisions. pkg_resources has a version that is heavily deprecated. pkgutil provides a python2/python3 compatible version that is also compatible with native python3 namespaces.

https://packaging.python.org/en/latest/guides/packaging-namespace-packages/

pkg_resources is very very deprecated and importing or using it results in deprecation warnings. It's time to move off of it entirely.

Fixes: #577

Depends on: #589

@eli-schwartz eli-schwartz mentioned this pull request Sep 16, 2024
4 tasks
Declaring a namespace package has gone through a few revisions.
pkg_resources has a version that is heavily deprecated. pkgutil provides
a python2/python3 compatible version that is also compatible with native
python3 namespaces.

https://packaging.python.org/en/latest/guides/packaging-namespace-packages/

pkg_resources is very very deprecated and importing or using it results
in deprecation warnings. It's time to move off of it entirely.

Fixes: PyFilesystem#577
tutankalex added a commit to tutankalex/python-schematized-config that referenced this pull request Nov 14, 2024
pyfilesystem2 is no longer actively maintained, but it uses a deprecated
function, leading to these warnings:

```
python3.11/site-packages/fs/__init__.py:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
```

see e.g. PyFilesystem/pyfilesystem2#590
fortunately, fsspec and https://github.com/iterative/morefs are
sufficient to cover a direct transition
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

Successfully merging this pull request may close these issues.

Remove usage of deprecated module pkg_resources
1 participant