Bug 2319687 - python-oslo-metrics fails to build with setuptools 74+: uses removed setup.py test
Summary: python-oslo-metrics fails to build with setuptools 74+: uses removed setup.py...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-oslo-metrics
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Hirotaka Wakabayashi
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: SETUPTOOLS74
TreeView+ depends on / blocked
 
Reported: 2024-10-18 10:12 UTC by Miro Hrončok
Modified: 2024-12-15 02:39 UTC (History)
2 users (show)

Fixed In Version: python-oslo-metrics-0.8.0-4.fc42 python-oslo-metrics-0.8.0-4.fc40
Clone Of:
Environment:
Last Closed: 2024-10-29 11:10:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2024-10-18 10:12:11 UTC
Dear package maintainer,

this bugzilla is automated becasue the number of impacted packages it too high to go trough manually.

It appears that your package failed to build with setuptools 74.1.3 and wheel 0.44 in

  https://copr.fedorainfracloud.org/coprs/churchyard/setuptools-74/package/python-oslo-metrics/

While it succeeded with setuptools 69.2.0 and wheel 0.43 in

  https://copr.fedorainfracloud.org/coprs/churchyard/setuptools-control/package/python-oslo-metrics/

This usually means this package fails to build with setuptools 74+

We plan to update setuptools to version 74 or newer in Fedora 42. This is an approved Fedora 42 Change:

  https://fedoraproject.org/wiki/Changes/Setuptools_74+



Please analyze the failure and fix it in rawhide. Thanks.


You can use the builds from the churchyard/setuptools-74 copr for local testing.

  mock -r fedora-rawhide-x86_64 --addrepo 'https://download.copr.fedorainfracloud.org/results/churchyard/setuptools-74/fedora-rawhide-$basearch/'


One of the most common problems is that the setup.py test command cannot be used. If that is the case here, run the tests in %check differently, e.g. via %pytest, %tox, %{python3} -m unittest, etc.


If you need help, reach out to me in this bugzilla.

Comment 1 Hirotaka Wakabayashi 2024-10-18 14:18:43 UTC
Hello Miro, Thanks for the report. I think the error occurred because of "setup.py test" command that is removed since setuptools-v72.0.0. I will fix it.

"setup.py test" command is called here
https://src.fedoraproject.org/rpms/python-oslo-metrics/blob/rawhide/f/python-oslo-metrics.spec#_107

Setuptools-v72.0.0 28 Jul 2024 Deprecations and Removals
https://setuptools.pypa.io/en/latest/history.html#id59

Remove test command and tests_require #931 
https://github.com/pypa/setuptools/issues/931

Comment 2 Miro Hrončok 2024-10-18 14:59:24 UTC
Yes, that's exactly the reason this package fails to build.

Comment 4 Fedora Update System 2024-10-29 10:59:22 UTC
FEDORA-2024-b0990a6b72 (python-oslo-metrics-0.8.0-4.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-b0990a6b72

Comment 5 Fedora Update System 2024-10-29 11:10:24 UTC
FEDORA-2024-b0990a6b72 (python-oslo-metrics-0.8.0-4.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2024-12-06 02:11:30 UTC
FEDORA-2024-714da5c3be (python-oslo-metrics-0.8.0-4.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-714da5c3be

Comment 7 Fedora Update System 2024-12-07 07:53:54 UTC
FEDORA-2024-714da5c3be has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-714da5c3be`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-714da5c3be

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2024-12-15 02:39:51 UTC
FEDORA-2024-714da5c3be (python-oslo-metrics-0.8.0-4.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.