-
-
Notifications
You must be signed in to change notification settings - Fork 144
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 imp with importlib #365
Conversation
Codecov Report
@@ Coverage Diff @@
## master #365 +/- ##
==========================================
- Coverage 89.98% 89.93% -0.05%
==========================================
Files 25 25
Lines 1198 1202 +4
Branches 216 217 +1
==========================================
+ Hits 1078 1081 +3
Misses 89 89
- Partials 31 32 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
This project uses the imp module which has been deprecated since Python 3.4 and set for removal in 3.12: • Raised PendingDeprecationWarning since 3.4 (2014) • Raised DeprecationWarning since 3.5 (2015) • Updated DeprecationWarning to say removal in 3.12 since 3.10 (2021) • Removal planned for 3.12 (2023) This change removes the dependency on imp in favour of importlib. Co-authored-by: @jbkkd Inspired by: @mgorny jazzband#358
Seems that the pypy builds are failing due to typing issues that are not related to changes in this PR at all. I'm not sure how to best tackle this. If anyone has ideas on how to solve this please shout!
|
@gump I'm not sure if this should block the PR because there is exactly the same error on master (tested on pypy39-dj42 with tox on my machine). |
I believe the root cause is that I verified that the issue does not exist on |
@pauloxnet LGTM. I didn't do it in my PR as I didn't know what the maintainers want. Looking forward to merge of your PR and release of 2.5. |
Can you please use the "Review changes" button to approve my PR |
Sorry, I didn't know I have the permission. Approved now. |
Thanks 👍 |
This project uses the
imp
module which has been deprecated since Python 3.4 and set for removal in 3.12:PendingDeprecationWarning
since 3.4 (2014)DeprecationWarning
since 3.5 (2015)DeprecationWarning
to say removal in 3.12 since 3.10 (2021)This change removes the dependency on
imp
in favour ofimportlib
.Co-authored-by: @jbkkd
Inspired by: @mgorny
#358