Bug 2272969 - cffconvert fails to build with pytest 8: ImportError while importing test module '/builddir/build/BUILD/cff-converter-python-2.0.0/test/1.0.3/01/test_1_0_3__01_apalike_object.py'.
Summary: cffconvert fails to build with pytest 8: ImportError while importing test mod...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cffconvert
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Iztok Fister Jr.
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 2256331
TreeView+ depends on / blocked
 
Reported: 2024-04-03 13:48 UTC by Tomáš Hrnčiar
Modified: 2024-04-19 21:28 UTC (History)
4 users (show)

Fixed In Version: cffconvert-2.0.0-11.fc41 cffconvert-2.0.0-11.fc38 cffconvert-2.0.0-11.fc39 cffconvert-2.0.0-11.fc40
Clone Of:
Environment:
Last Closed: 2024-04-03 16:12:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2024-04-03 13:48:34 UTC
cffconvert fails to build with pytest 8.

collecting ... collected 143 items / 403 errors / 30 deselected / 113 selected

==================================== ERRORS ====================================
_______ ERROR collecting test/1.0.3/01/test_1_0_3__01_apalike_object.py ________
ImportError while importing test module '/builddir/build/BUILD/cff-converter-python-2.0.0/test/1.0.3/01/test_1_0_3__01_apalike_object.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test/1.0.3/01/test_1_0_3__01_apalike_object.py:3: in <module>
    from test.contracts.apalike_object import Contract
E   ModuleNotFoundError: No module named 'test'

https://docs.pytest.org/en/stable/changelog.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/thrnciar/pytest/fedora-rawhide-x86_64/07247514-cffconvert/

For all our attempts to build cffconvert with pytest 8, see:
https://copr.fedorainfracloud.org/coprs/thrnciar/pytest/package/cffconvert/

Let us know here if you have any questions.

Pytest 8 is planned to be included in Fedora 41. And this bugzilla is a
heads up before we merge new pytest into rawhide. For more info see a Fedora Change
proposal https://fedoraproject.org/wiki/Changes/Pytest_8

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Fedora Update System 2024-04-03 16:08:27 UTC
FEDORA-2024-454ff03381 (cffconvert-2.0.0-11.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-454ff03381

Comment 2 Fedora Update System 2024-04-03 16:12:23 UTC
FEDORA-2024-454ff03381 (cffconvert-2.0.0-11.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2024-04-03 17:17:18 UTC
FEDORA-2024-30e248d3ad (cffconvert-2.0.0-11.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-30e248d3ad

Comment 4 Fedora Update System 2024-04-03 17:29:16 UTC
FEDORA-2024-08baff1c33 (cffconvert-2.0.0-11.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-08baff1c33

Comment 5 Fedora Update System 2024-04-03 17:46:49 UTC
FEDORA-2024-40cb9144c0 (cffconvert-2.0.0-11.fc38) has been submitted as an update to Fedora 38.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-40cb9144c0

Comment 6 Fedora Update System 2024-04-04 01:37:54 UTC
FEDORA-2024-40cb9144c0 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-40cb9144c0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-40cb9144c0

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2024-04-04 01:39:35 UTC
FEDORA-2024-30e248d3ad has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-30e248d3ad`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-30e248d3ad

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2024-04-04 02:00:20 UTC
FEDORA-2024-08baff1c33 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-08baff1c33`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-08baff1c33

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2024-04-12 01:14:01 UTC
FEDORA-2024-40cb9144c0 (cffconvert-2.0.0-11.fc38) has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2024-04-12 01:21:16 UTC
FEDORA-2024-08baff1c33 (cffconvert-2.0.0-11.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2024-04-19 21:28:48 UTC
FEDORA-2024-30e248d3ad (cffconvert-2.0.0-11.fc40) has been pushed to the Fedora 40 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.