-
Notifications
You must be signed in to change notification settings - Fork 148
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 importlib.metadata to get package version instead of pkg_resources.get_distribution to decrease memory consumption #227
Use importlib.metadata to get package version instead of pkg_resources.get_distribution to decrease memory consumption #227
Conversation
…ersion instead of pkg_resources.get_dictribution
Codecov Report
@@ Coverage Diff @@
## master #227 +/- ##
=======================================
Coverage 99.68% 99.68%
=======================================
Files 9 9
Lines 632 636 +4
=======================================
+ Hits 630 634 +4
Misses 2 2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Thank you for the PR! I agree, let's remove However, let's use the Please could you update the PR? |
Done. |
Thanks, please can you move it to Something like: [options]
install_requires =
importlib-metadata;python_version < '3.8' |
Thank you very much! |
pkg_resources use a lot of memory and after introducing importlib.metadata in 3.8 looks obsolete. So let's change way to get package version and get rid of pkg_resources import.