Omit backports.entry_points_selectable for Python >=3.10#2238
Conversation
|
Thank you! |
| @@ -0,0 +1 @@ | |||
| Omit backports.entry_points_selectable for Python >=3.10 | |||
There was a problem hiding this comment.
Can you add this as a feature please and not misc; misc basically reserved for project maintenance files only, not that affects code.
There was a problem hiding this comment.
Also, can we drop backports.entry_points_selectable entirely here?
There was a problem hiding this comment.
I suppose we can if we require importlib-metadata>=3.6;python_version<"3.10" and do:
if sys.version_info >= (3, 10):
from importlib.metadata import entry_points
else:
from importlib_metadata import entry_points-- not sure if that is much better.
There was a problem hiding this comment.
Alternatively can we use the old API on old pythons and the new API on new Pythons? Rather than try to use the same?
There was a problem hiding this comment.
Added as feature. The other PR would fit my needs as well.
There was a problem hiding this comment.
I prefer 2241, so will be closing this.
If I understood backports.entry_points_selectable documentation correctly, this is equivalent.
Change is proposed to update above 20.4.7 on Void Linux, which is on python 3.10 already, without fuss of adding the backport module to repository.
tox -e fix_lint)docs/changelogfolder