Bug 2279960
| Summary: | python-niapy fails to build with pytest 8: KeyError: 'runtest' | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
| Component: | python-niapy | Assignee: | Iztok Fister Jr. <iztok> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | gui1ty, iztok, mhroncok, neuro-sig, sanjay.ankur, thrnciar |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-niapy-2.3.1-1.fc40 python-niapy-2.3.1-1.fc39 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-05-29 03:35:31 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: | 2256331 | ||
Reported upstream. Possible workaround, should upstream not provide a fix, is ignoring the troublesome test with `--ignore tests/test_algorithm.py`. FEDORA-2024-0c89538d1c (python-niapy-2.3.1-1.fc39) has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-0c89538d1c FEDORA-2024-8448e22382 (python-niapy-2.3.1-1.fc40) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-8448e22382 FEDORA-2024-8448e22382 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-8448e22382` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-8448e22382 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-0c89538d1c 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-0c89538d1c` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-0c89538d1c See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-8448e22382 (python-niapy-2.3.1-1.fc40) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2024-0c89538d1c (python-niapy-2.3.1-1.fc39) has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report. |
python-niapy fails to build with pytest 8. ==================================== ERRORS ==================================== ___________________ ERROR collecting tests/test_algorithm.py ___________________ niapy/task.py:79: in __init__ self.problem = get_problem(problem, **params) niapy/util/factory.py:19: in get_problem problem = _problem_options().pop(name.lower()) E KeyError: 'runtest' =========================== short test summary info ============================ ERROR tests/test_algorithm.py::TestingTask - KeyError: 'runtest' !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!! =============================== 1 error in 1.56s =============================== 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/07389232-python-niapy/ For all our attempts to build python-niapy with pytest 8, see: https://copr.fedorainfracloud.org/coprs/thrnciar/pytest/package/python-niapy/ 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.