python3-mako depends on pkg-resources
Bug #1970153 reported by
Tony Theodore
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mako (Debian) |
Fix Released
|
Unknown
|
|||
mako (Ubuntu) |
Fix Released
|
Low
|
Michał Małoszewski |
Bug Description
I would have thought pkg-resources/
See https:/
Related branches
~michal-maloszewski99/ubuntu/+source/mako:fix-pkg-resources-mako
- Andreas Hasenack (community): Approve
- git-ubuntu bot: Approve
- Robie Basak: Approve
- Canonical Server Reporter: Pending requested
- Canonical Server: Pending requested
- Canonical Server Core Reviewers: Pending requested
- Michał Małoszewski: Pending requested
-
Diff: 37 lines (+9/-2)2 files modifieddebian/changelog (+6/-0)
debian/control (+3/-2)
Changed in mako (Ubuntu): | |
importance: | Undecided → Low |
Changed in mako (Ubuntu): | |
assignee: | nobody → Michał Małoszewski (michal-maloszewski99) |
status: | Triaged → In Progress |
Changed in mako (Debian): | |
status: | Unknown → New |
Changed in mako (Debian): | |
status: | New → Fix Released |
To post a comment you must log in.
Thanks for taking the time to file this bug and trying to make Ubuntu better.
python3- pkg-resources should indeed be a runtime dependency of python3-mako, at least for the current version we have in the archive which is 1.1.3. In this version, pkg_resources is conditionally imported, I think this is the reason why no one complained about it so far:
mako/util.py-33- else: iter_entry_ points( self.group, name):
mako/util.py:34: import pkg_resources
mako/util.py-35-
mako/util.py:36: for impl in pkg_resources.
mako/util.py-37- self.impls[name] = impl.load
mako/util.py-38- return impl.load()
https:/ /github. com/sqlalchemy/ mako/blob/ rel_1_1_ 3/mako/ util.py# L30-L44
In the latest upstream version (1.2.0), pkg_resources is no more used:
.. change::
:tags: changed, setup
Replaced the use of ``pkg_resources`` with the ``importlib`` library. metadata` ` is used.
For Python < 3.8 the library ``importlib_
https:/ /github. com/sqlalchemy/ mako/blob/ main/doc/ build/changelog .rst
This dependency seems to be missing in all supported Ubuntu releases.