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 instead of discouraged pkg_resources #7218
Conversation
This avoids runtime dependency on setuptools.
Duplicate of #7217, I think? |
Codecov Report
@@ Coverage Diff @@
## master #7218 +/- ##
=======================================
Coverage 89.31% 89.31%
=======================================
Files 138 138
Lines 16769 16774 +5
Branches 2450 2450
=======================================
+ Hits 14977 14982 +5
Misses 1560 1560
Partials 232 232
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here is another duplicate #7217
But it has some extra changes |
Yes, it is nearly the same. I did search pull requests when starting work on that, not when submitting the PR :-). |
This pull request introduces 2 alerts and fixes 23 when merging c26192d into 9377e94 - view on LGTM.com new alerts:
fixed alerts:
|
@thedrow I think we should consider this one |
FYI this is released in 5.2.5 :) |
This release is causing an issue with django and the django-db backend. Here is a stacktrace of a sample error. I would be happy to file an issue if you prefer:
If I pin the version to 5.2.4 everything works as expected. |
Hi @jensenbox . Please do, we'll address this shortly if you provide a reproducible test case. |
we got a PR without test though #7406 |
Description
Use importlib instead of discouraged pkg_resources. This avoids runtime dependency on setuptools (which caused problems because of pinning see for example #7214) and adds importlib backport dependency on Python 3.7.
From https://setuptools.pypa.io/en/latest/pkg_resources.html: