make importlib_resources not mandatory with recent Python#1101
make importlib_resources not mandatory with recent Python#1101a-detiste wants to merge 1 commit into
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1101 +/- ##
==========================================
- Coverage 98.52% 98.48% -0.04%
==========================================
Files 40 40
Lines 5012 5015 +3
==========================================
+ Hits 4938 4939 +1
- Misses 74 76 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
It looks to me that in fact starting in 3.9 we could always replace importlib_resources?? Note that in your PR - the new code wasn't actually tested since maybe some other package also required importlib_resources? |
|
Hi... I'm removing mandatory usage of these old backport everywhere https://wiki.debian.org/Python/Backports importlib_resources was only seldomly used, it's already almost gone |
That would be a bug in the other package. |
|
I think a better way would be to make using the stdlib the default - and if that fails - fall back. That would actually test that the stdlib works for our use-case. |
|
Hi, it's the pinning of If I read the translation table that maps to Py3.12 If >= 5.10.0 is not truly needed that makes the whole thing simpler. |
|
Thanks for the additional comments - I am going to try to remove it altogether- especially once support for 3.9 is removed |
|
importlib_resources was removed in #1106 |
importlib.resources is now in the standard library