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

Use pkg_resources instead of importlib_metadata to get installed version #935

Closed
wants to merge 1 commit into from

Conversation

sloria
Copy link

@sloria sloria commented Feb 3, 2019

Removes importlib-metadata as a dependency.
pkg_resources ships with setuptools, so it should be available
in every reasonably-modern Python environment.

Removes importlib-metadata as a dependency.
pkg_resources ships with setuptools, so it should be available
in every reasonably-modern Python environment.
@asottile
Copy link
Member

asottile commented Feb 3, 2019

this would reverse #846 which intentionally factored out setuptools for performance reasons

@asottile asottile closed this Feb 3, 2019
@sloria
Copy link
Author

sloria commented Feb 3, 2019

Ah ok, sorry, I missed that.

I was considering replacing the find_version hack with str(pkg_resources.get_distribution('...').parsed_version) in my projects, but I'll hold off now that I know about the performance issues.

@asottile
Copy link
Member

asottile commented Feb 3, 2019

importlib-metadata is supposedly the way of the future, I wasn't following too closely but there were talks of it making it into python3.8, though probably now python3.9

@sloria
Copy link
Author

sloria commented Feb 3, 2019

Good to know. Thanks!

@sloria sloria deleted the version branch February 3, 2019 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants