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

Leftover dependency on pkg_resources for Python 3.13 #192

Open
emollier opened this issue Oct 16, 2024 · 0 comments
Open

Leftover dependency on pkg_resources for Python 3.13 #192

emollier opened this issue Oct 16, 2024 · 0 comments

Comments

@emollier
Copy link

Hi,

In the context of Debian bug #1083655, I noticed that there seems to be a leftover use of pkg_resources in doc/source/conf.py to capture distribution information. This module is deprecated since Python 3.11 and going to be removed in Python 3.13. For the purpose of obtaining distribution information, it is replaced by Distribution in importlib.metadata, available since Python 3.8.

I didn't have a strict need for a patch because we currently do not build the leidenalg documentation in Debian, so I haven't come up with one, but you can take example on my Fastaq example use of importlib.metadata to replace the use of pkg_resources in d/s/conf.py, if that helps (not sure whether it is the best example in the world, but it does the job).

Have a nice day, :)
Étienne.

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