Bug 2142063 - python-cffi fails to build with pytest 7.2.0 - problem with dependency on `py` package
Summary: python-cffi fails to build with pytest 7.2.0 - problem with dependency on `py...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-cffi
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2137514
TreeView+ depends on / blocked
 
Reported: 2022-11-11 13:34 UTC by Lumír Balhar
Modified: 2022-11-16 08:14 UTC (History)
3 users (show)

Fixed In Version: python-cffi-1.15.1-3.fc38
Clone Of:
Environment:
Last Closed: 2022-11-16 08:14:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-8984 0 None None None 2022-11-11 13:36:20 UTC

Description Lumír Balhar 2022-11-11 13:34:32 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-cffi 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 Miro Hrončok 2022-11-11 13:54:53 UTC
Upstream PR https://foss.heptapod.net/pypy/cffi/-/merge_requests/115

 - replaces py.test usage with pytest
 - upstream uses py.path and py.error which remains available form pytest
 - upstream also uses py.code, so it adds a dependency on py which needs to be added downstream as well, unless we switch to %pyproject_buildrequires

Comment 3 Fedora Update System 2022-11-16 08:11:36 UTC
FEDORA-2022-8b5736eb6e has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-8b5736eb6e

Comment 4 Fedora Update System 2022-11-16 08:14:19 UTC
FEDORA-2022-8b5736eb6e has been pushed to the Fedora 38 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.