Bug 2319709

Summary: python-pytest-runner fails to build with setuptools 74+
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-pytest-runnerAssignee: Michel Lind <michel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dherrera, epel-packagers-sig, jonathan, michel, vrutkovs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-pytest-runner-4.0-25.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-12-23 23:59:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2300528, 2322407, 2319387    

Description Miro Hrončok 2024-10-18 10:13:34 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-pytest-runner/

While it succeeded with setuptools 69.2.0 and wheel 0.43 in

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

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 Diego Herrera 2024-11-08 13:22:41 UTC
Tried to update the package to 6.0.1 and noticed some dependencies are missing

   No match for argument: python3dist(pytest-black) >= 0.3.7
   No match for argument: python3dist(pytest-checkdocs) >= 2.4
   No match for argument: python3dist(pytest-enabler) >= 1.0.1
   No match for argument: python3dist(pytest-flake8)
   No match for argument: python3dist(pytest-mypy) >= 0.9.1
   No match for argument: python3dist(pytest-virtualenv)

Comment 3 Miro Hrončok 2024-11-14 11:57:39 UTC
As per https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/ I am now asking the maintainer to respond.

Comment 4 Miro Hrončok 2024-12-05 14:13:12 UTC
This is a bulk response.

In line with step 4 from https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs I am asking for a response.

Thanks.

Comment 5 Michel Lind 2024-12-23 23:37:00 UTC
This is marked as deprecated upstream - and has been for a while - so probably not worth updating anyway

I'll send a deprecation notice to the mailing list and tell people to start migrating away from it

The test suite ... *never worked with `python setup.py test` before* - it just ran 0 tests - and the only test available needs pytest-virtualenv which we don't have at all, and requires downloading content from the Internet.

(In reply to Diego Herrera from comment #2)
> Tried to update the package to 6.0.1 and noticed some dependencies are
> missing
> 
>    No match for argument: python3dist(pytest-black) >= 0.3.7
>    No match for argument: python3dist(pytest-checkdocs) >= 2.4
>    No match for argument: python3dist(pytest-enabler) >= 1.0.1
>    No match for argument: python3dist(pytest-flake8)
>    No match for argument: python3dist(pytest-mypy) >= 0.9.1
>    No match for argument: python3dist(pytest-virtualenv)