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

Switch to importlib-metadata to drop deprecated pkg_resources #621

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

FantasqueX
Copy link
Contributor

According to https://setuptools.pypa.io/en/latest/pkg_resources.html, pkg_resources has been deprecated and importlib-metadata is recommended. DistributionNotFound only can be thrown from find_plugins() which is not used by ia. Tested with plugin https://github.com/JesseWeinstein/ia_recent.

Closes: #613

@maxz
Copy link
Contributor

maxz commented Jan 11, 2024

That's a nice and rather simple change. It seems like the API is mostly compatible and it is a good further step in modernizing ia.

@jjjake
Copy link
Owner

jjjake commented Jan 23, 2024

Thanks for the contribution @FantasqueX, and thanks for reviewing @maxz!

Looks good to me, I just want to learn more about importlib before adding it as a requirement.

setup.cfg Outdated Show resolved Hide resolved
According to https://setuptools.pypa.io/en/latest/pkg_resources.html,
pkg_resources has been deprecated and importlib-metadata is recommended.
`DistributionNotFound` only can be thrown from `find_plugins()` which is
not used by ia. Tested with plugin
https://github.com/JesseWeinstein/ia_recent.

Closes: jjjake#613
@jjjake jjjake merged commit b7fcca6 into jjjake:master Mar 19, 2024
3 of 13 checks passed
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.

[Bug] No module named 'pkg_resources'
5 participants