Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 721838 - dev-python/importlib_resources: needs importlib_metadata even on python 3.7
Summary: dev-python/importlib_resources: needs importlib_metadata even on python 3.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Louis Sautier (sbraz)
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-05-09 10:51 UTC by Hanno Böck
Modified: 2020-05-09 15:44 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Böck gentoo-dev 2020-05-09 10:51:55 UTC
importlib_resources has a conditional (3.6 only) dep on importlib_metadata, but without importlib_metadata it does not work even on 3.7:

Python 3.7.7 (default, May  4 2020, 10:36:02) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import importlib_resources
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/importlib_resources/_compat.py", line 39, in <module>
    from importlib import metadata
ImportError: cannot import name 'metadata' from 'importlib' (/usr/lib/python3.7/importlib/__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.7/site-packages/importlib_resources/__init__.py", line 5, in <module>
    from ._compat import metadata
  File "/usr/lib/python3.7/site-packages/importlib_resources/_compat.py", line 41, in <module>
    import importlib_metadata as metadata  # type: ignore
ModuleNotFoundError: No module named 'importlib_metadata'
Comment 1 Ralph Seichter 2020-05-09 14:51:25 UTC
I will not work on this package anymore. sbraz@g.o added himself and python@ as maintainers, so having myself and proxy-maint@ left there to "catch" bug reports does not make sense to me.
Comment 2 Larry the Git Cow gentoo-dev 2020-05-09 15:44:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=834b7293bdf8eb9fb27b1159b58fed5b970df6af

commit 834b7293bdf8eb9fb27b1159b58fed5b970df6af
Author:     Louis Sautier <sbraz@gentoo.org>
AuthorDate: 2020-05-09 15:34:29 +0000
Commit:     Louis Sautier <sbraz@gentoo.org>
CommitDate: 2020-05-09 15:44:00 +0000

    dev-python/importlib_resources: fix dependencies for Python 3.7
    
    The importlib_metadata and zipp packages are required as they are not present
    in Python 3.7's stdlib.
    
    Closes: https://bugs.gentoo.org/721838
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Louis Sautier <sbraz@gentoo.org>

 ...rtlib_resources-1.5.0.ebuild => importlib_resources-1.5.0-r1.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13bdbfc28436e5f061da69c351be9e78d474d632

commit 13bdbfc28436e5f061da69c351be9e78d474d632
Author:     Ralph Seichter <github@seichter.de>
AuthorDate: 2020-05-09 14:55:22 +0000
Commit:     Louis Sautier <sbraz@gentoo.org>
CommitDate: 2020-05-09 15:44:00 +0000

    dev-python/importlib_resources: Remove myself from maintainers
    
    Bug: https://bugs.gentoo.org/721838
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Ralph Seichter <gentoo@seichter.de>
    Closes: https://github.com/gentoo/gentoo/pull/15724
    Signed-off-by: Louis Sautier <sbraz@gentoo.org>

 dev-python/importlib_resources/metadata.xml | 8 --------
 1 file changed, 8 deletions(-)