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

Call resolve directly for pkg_resource entrypoints #219

Open
mhadam opened this issue Dec 29, 2023 · 0 comments
Open

Call resolve directly for pkg_resource entrypoints #219

mhadam opened this issue Dec 29, 2023 · 0 comments

Comments

@mhadam
Copy link

mhadam commented Dec 29, 2023

This line causes this deprecation warning:

/Users/mhadam/.virtualenvs/ablog/lib/python3.12/site-packages/paver/setuputils.py:206: PkgResourcesDeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately.
cmdclass = ep.load(False) # don't require extras, we're not running
/Users/mhadam/.virtualenvs/ablog/lib/python3.12/site-packages/paver/setuputils.py:206: PkgResourcesDeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately.
cmdclass = ep.load(False) # don't require extras, we're not running

load(False) calls resolve under the hood and the newest version forces require. The appropriate way now seems to be just calling resolve directly.

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