FS#64719 - [python-{jsonschema,path.py,pep517,pluggy,pytest}] python-importlib-metadata unneeded dependency

Attached to Project: Community Packages
Opened by Antony Lee (anntzer) - Tuesday, 03 December 2019, 16:49 GMT
Last edited by Chih-Hsuan Yen (yan12125) - Monday, 10 October 2022, 01:29 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: python-importlib-metadata is an incorrect dependency for many packages.

As of 2019/12/03, python-importlib-metadata is recorded as a dependency of
home-assistant
python-jsonschema
python-pallets-sphinx-themes
python-path.py
python-pep517
python-pluggy
python-pytest
plus some Py2 packages.

For jsonschema, path.py, pep517, pluggy, and pytest, the depedency is incorrect (the latest release of each of them relies on the stdlib importlib.metadata now). pallets-sphinx-themes likewise switched to the stdlib importlib.metadata, but there's no release yet since the switch.


Additional info: N/A

Steps to reproduce: N/A
This task depends upon

Closed by  Chih-Hsuan Yen (yan12125)
Monday, 10 October 2022, 01:29 GMT
Reason for closing:  Deferred
Additional comments about closing:  Defer to respective tickets
Comment by Eli Schwartz (eschwartz) - Tuesday, 03 December 2019, 17:31 GMT
  • Field changed: Summary ([python-importlib-metadata] python-importlib-metadata is an incorrect dependency for many packages → [python-{jsonschema,path.py,pep517,pluggy,pytest}] python-importlib-metadata unneeded dependency)
  • Field changed: Status (Unconfirmed → Assigned)
  • Task assigned to Felix Yan (felixonmars)
Thanks, any word on the home-assistant package? It would be neat to drop this from the repos.
Comment by Antony Lee (anntzer) - Tuesday, 03 December 2019, 17:39 GMT
Looks like it's still a dependency for home-assistant.
Comment by Chih-Hsuan Yen (yan12125) - Saturday, 01 February 2020, 17:39 GMT
A new version of pallets-sphinx-themes (1.2.3) is released last month [1]; for home-assistant, the importlib-metadata issue is discussed in https://github.com/home-assistant/home-assistant/issues/31021.

[1] https://github.com/pallets/pallets-sphinx-themes/blob/1.2.3/CHANGES.rst#version-123
Comment by Chih-Hsuan Yen (yan12125) - Thursday, 02 July 2020, 03:02 GMT
A status update since my last comment:

* home-assistant: a new version 0.112 is out, which uses importlib-metadata only on python<3.8 [1]
* python-helpdev: use importlib-metadata only on python<3.8 since version 0.7.0 [2]
* python-irc: use importlib-metadata only on python<3.8 since version 18.0.0 [3] (fixed [5])
* python-jsonpickle: the next version will use importlib-metadata only on python<3.8 [4]; see  FS#67136 

After all of packages above fixed, python-importlib-metadata can be dropped from [community].

[1] https://github.com/home-assistant/core/commit/a74e35795c0bb0207c9a30173c79b4d7f6cb7e55
[2] https://gitlab.com/dpizetta/helpdev/-/commit/c871cb1e12390dc629e356f1c59a7ba1128b076e
[3] https://github.com/jaraco/irc/commit/4d5beef94082d5f937aa96c9ca7961a21f2992cd
[4] https://github.com/jsonpickle/jsonpickle/commit/8debff4511089dad850930c702106a436275f118
[5] https://git.archlinux.org/svntogit/community.git/commit/trunk?h=packages/python-irc&id=bc95f12e79e50a86a15918809aff499581807a6c

EDITED 2020/07/05: python-irc is fixed
Comment by Chih-Hsuan Yen (yan12125) - Monday, 10 October 2022, 01:28 GMT
Time flies. Some packages no longer depend on python-import-metadata, and some others introduced this while not actually needed. I believe a better way is to track packages in respective tickets, so I'm going to close this one.

Loading...