Bug 2142057

Summary: python-cloudpickle fails to build with pytest 7.2.0 - problem with dependency on `py` package
Product: [Fedora] Fedora Reporter: Lumír Balhar <lbalhar>
Component: python-cloudpickleAssignee: Lumír Balhar <lbalhar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: lbalhar
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: 2022-11-16 08:31:19 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: 2137514    

Description Lumír Balhar 2022-11-11 13:33:14 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-cloudpickle 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-11 16:38:20 UTC
Reported upstream: https://github.com/cloudpipe/cloudpickle/issues/487

Comment 2 Lumír Balhar 2022-11-14 11:31:32 UTC
Proposed fix: https://github.com/cloudpipe/cloudpickle/pull/488

Comment 3 Lumír Balhar 2022-11-16 08:01:54 UTC
The proposed fix does not solve the problem so I decided to skip the one test.