drop the final remaining use of the deprecated pkg_resources module by eli-schwartz · Pull Request #590 · PyFilesystem/pyfilesystem2 · GitHub
Skip to content

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

Open
eli-schwartz wants to merge 1 commit into
PyFilesystem:masterfrom
eli-schwartz:pkg-resources-part-2
Open

eli-schwartz wants to merge 1 commit into
PyFilesystem:masterfrom
eli-schwartz:pkg-resources-part-2

Conversation

@eli-schwartz

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

Copy link
Copy Markdown

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
2 of 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
@eli-schwartz eli-schwartz mentioned this pull request May 29, 2025
1 of 4 tasks
@delfick

delfick commented May 30, 2025

Copy link
Copy Markdown

@eli-schwartz

Copy link
Copy Markdown
Author

I haven't given up on this PR by the way -- I am not aware of any issues with it though, so I'm just waiting for someone with commit access to review...

@svanscho

Copy link
Copy Markdown

@willmcgugan Can this be reviewed and merged?

@milahu

milahu commented Jul 30, 2025 •

Copy link
Copy Markdown

Depends on: #589

merged both branches in pkg-resources-part-1-and-2

edit: now this also includes #588

@milahu

This comment was marked as outdated.

@eli-schwartz

Copy link
Copy Markdown
Author

@milahu please see all my pending PRs, not just two of them. There is a third that fixes that in a very different way than the one you propose.

@milahu

milahu commented Jul 30, 2025

Copy link
Copy Markdown

ok, so this pr depends on #588 and #589

@NewDefectus

Copy link
Copy Markdown

Hi, any plans to merge this?

@edgarrmondragon

Copy link
Copy Markdown

@lurch seems to the one with write access

@shayneoneill

Copy link
Copy Markdown

Does anyone have a working version that I can point uv to?

@shayneoneill

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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

7 participants