Bug 2142059

Summary: python-wsgi_intercept fails to build with pytest 7.2.0 - problem with dependency on `py` package
Product: [Fedora] Fedora Reporter: Lumír Balhar <lbalhar>
Component: python-wsgi_interceptAssignee: Chandan Kumar <chkumar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: apevec, chkumar, jcapitao, openstack-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-23 13:39:40 UTC Type: Bug
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: 2117176, 2137514, 2168842    

Description Lumír Balhar 2022-11-11 13:33:41 UTC
I'm testing an update of pytest to 7.2.0 and I've discovered that this package fails to build with it. The reason is a change related to `py` package.

`py` is an independent package developed by the same team as pytest and it has been bundled in pytest for quite some time. The `py` package itself is now in maintenance mode and pytest developers decided to bundle only a subset of its functionalities in pytest since version 7.2.0.

It seems that python-wsgi_intercept needs some parts of `py` that are no longer available in pytest (including deprecated `py.test` itself). There are two possible solutions:

1. Drop dependency on `py`. That requires some coordination with upstream but it's generally a good idea long-term.
2. Add python3-py to build dependencies. `py` package installed from python3-py will have a higher priority than py.py module bundled in pytest. This is a quick workaround but given the status of `py` project, it's only temporary.

If you want to, you can find the failed build in https://copr.fedorainfracloud.org/coprs/lbalhar/pytest/

Comment 1 Lumír Balhar 2022-11-23 12:20:40 UTC
Our plan is to ship the updated pytest during the next week. If you need any assistance from us, feel free to say so.

Comment 2 Ben Cotton 2023-02-07 14:58:45 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 3 Joel Capitao 2023-05-23 13:39:40 UTC
The upstream patch [1] included in 1.11.0 release fix the issue.
I updated the distgit rawhide branch to this release in [2] and build it [3].
I backported the patch to f38 and f37, built them, and submitted the builds to Boddhi [4][5].

[1] https://github.com/cdent/wsgi-intercept/commit/5c7cedf10011e157c5416461d06410e7c8271090
[2] https://src.fedoraproject.org/rpms/python-wsgi_intercept/c/4c326b1992a6d99599fda6bed9314eba6471e635?branch=rawhide
[3] https://koji.fedoraproject.org/koji/taskinfo?taskID=101492091
[4] https://bodhi.fedoraproject.org/updates/FEDORA-2023-3fbd6e5e9f
[5] https://bodhi.fedoraproject.org/updates/FEDORA-2023-60373cec5d