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

Replace pbr in favor of importlib #1016

Merged
merged 2 commits into from Jun 5, 2023
Merged

Replace pbr in favor of importlib #1016

merged 2 commits into from Jun 5, 2023

Conversation

ericwb
Copy link
Member

@ericwb ericwb commented Apr 7, 2023

The importlib module has a metadata.version to retrieve the package version of the given module. This can be used in lieu of pbr for gathering versioning. As a result we can drop the runtime dependency on pbr.

Fixes #839
Fixes #735

The importlib module has a metadata.version to retrieve the package
version of the given module. This can be used in lieu of pbr for
gathering versioning. And since importlib is part of the base
Python package in 3.8 and greater, we can drop another dependency.

Closes PyCQA#839

Signed-off-by: Eric Brown <browne@vmware.com>
Signed-off-by: Eric Brown <eric_wade_brown@yahoo.com>
@ericwb
Copy link
Member Author

ericwb commented Apr 7, 2023

Note: this is a recreated PR of #840. See that PR for initial comments and review.

@ericwb ericwb merged commit 7e909f9 into PyCQA:main Jun 5, 2023
13 checks passed
@ericwb ericwb deleted the importlib branch June 5, 2023 21:23
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 pbr runtime dependency in favor of importlib.metadata? Pbr is unexpectedly required during runtime
2 participants