Bug 2320992
| Summary: | Please branch and build python-mccabe in epel10 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | Romain Geissler <romain.geissler> |
| Component: | python-mccabe | Assignee: | Tom.Rix |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | epel10 | CC: | gwync, python-packagers-sig, Tom.Rix |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-mccabe-0.7.0-11.el10_0 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-12-30 00:32:01 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: | 2321056 | ||
| Bug Blocks: | 2320838 | ||
|
Description
Romain Geissler
2024-10-22 14:02:37 UTC
DEBUG util.py:461: No matching package to install: 'python3-hypothesmith' hypothesmith seems to be an test dependency only: https://github.com/PyCQA/mccabe/blob/60cf21c21f8e5880f9907561c53732e80d1be400/tox.ini#L9 And looking at the source code, it's even an optional test dependency (the test is skipped if the import fails): https://github.com/PyCQA/mccabe/blob/60cf21c21f8e5880f9907561c53732e80d1be400/test_mccabe.py#L257 However we could also ask for hypothesmith to be branched for EPEL 10, it seems it has never been part of EPEL in branch 8 or 9. Unless hypothesmith brings in a massive set of packages, I'd rather we ask for it to be branched for EPEL 10. Building on cs10+epel fails.
Can you provide a patch to resolve this error ?
/usr/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
exec(co, module.__dict__)
test_mccabe.py:244: in <module>
@settings(
E NameError: name 'settings' is not defined
=========================== short test summary info ============================
ERROR test_mccabe.py - NameError: name 'settings' is not defined
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.09s ===============================
error: Bad exit status from /var/tmp/rpm-tmp.MgETa6 (%check)
Hi, This happens because the python-hypothesmith dependency doesn't exist, and I guess you tried to comment it out to build the package: https://bugzilla.stage.redhat.com/show_bug.cgi?id=2261579 Running tests does require this library, so we shall wait that the maintainer of this lib creates an EPEL 10 build for it. Cheers, Romain Removed hypothesmith from the tests, please check here https://koji.fedoraproject.org/koji/buildinfo?buildID=2606021 Hi, Thanks. Can you please submit this build as part of a Fedora update ? Otherwise this package will never be made available to EPEL users. The built package installs fine inside a C10S container. FEDORA-EPEL-2024-2f354a856d (python-mccabe-0.7.0-11.el10_0) has been submitted as an update to Fedora EPEL 10.0. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-2f354a856d FEDORA-EPEL-2024-2f354a856d has been pushed to the Fedora EPEL 10.0 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-2f354a856d See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-EPEL-2024-2f354a856d (python-mccabe-0.7.0-11.el10_0) has been pushed to the Fedora EPEL 10.0 stable repository. If problem still persists, please make note of it in this bug report. |