PBR should not rely on pkg_resources anymore
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PBR |
New
|
Undecided
|
Unassigned |
Bug Description
Hello.
pkg_resources library is no more recommended to be used, or at least we could expect an end of life pretty soon.
Its replacement is importlib-resource which is an optional component to install with pip for Python <3.7 and became part of the default distribution for 3.7+.
A Migration guide is provided to get rid of support of pkg_resources [1].
PBR should begging supporting using importlib-resource, at first as a backup in case pkg_resource is not packaged correctly (ex: I have this error in a pynsist package):
...
from jira import JIRA
File "...pkgs\
_v = VersionInfo(
File "...pkgs\
self._semantic = self._get_
File "...\pkgs\
import pkg_resources
ModuleNotFoun
Here my proposal:
- keep pkg_resource the default
- if the previous exception occurs, try with importlib.resource
[1] https:/
Is there any plan to drop dependency on pkg_resources soon?
Thank you.