Bug 2319700 - python-pymediainfo fails to build with setuptools 74+
Summary: python-pymediainfo fails to build with setuptools 74+
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pymediainfo
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vasiliy Glazov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F42FTBFS PYTHON3.14 SETUPTOOLS74
TreeView+ depends on / blocked
 
Reported: 2024-10-18 10:13 UTC by Miro Hrončok
Modified: 2024-12-11 07:48 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-12-11 07:48:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2024-10-18 10:13:01 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-pymediainfo/

While it succeeded with setuptools 69.2.0 and wheel 0.43 in

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

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 Miro Hrončok 2024-10-29 10:58:39 UTC
I plan to update setuptools to 74.x in rawhide this week.

At that point, this package will fail to build from source if not fixed.

Comment 2 Vasiliy Glazov 2024-11-11 06:45:08 UTC
OK

I don't know how fix it now.

Comment 3 Miro Hrončok 2024-11-11 10:15:21 UTC
Instead of executing setup.py tests in %check, run:

  %check
  %pytest -k "not test_parse_url"

Comment 4 Miro Hrončok 2024-11-11 10:23:23 UTC
You can also drop the requirement on python3-pytest-runner

Comment 5 Miro Hrončok 2024-12-10 14:56:59 UTC
You assigned this bugzilla ~1 month ago. Could you please replace the usage of python setup.py test with pytest?

Comment 6 Vasiliy Glazov 2024-12-11 07:48:52 UTC
Done.


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