Bug 2319722
| Summary: | python-sql fails to build with setuptools 74+ | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
| Component: | python-sql | Assignee: | Dan Horák <dan> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | dan |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-sql-1.5.2-2.fc42 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-10-22 11:53:33 UTC | Type: | --- |
| 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: | 2319387 | ||
|
Description
Miro Hrončok
2024-10-18 10:14:28 UTC
Hi Miro, I am having issues migrating python-sql to use the tox tool for running tests. Please see tox.ini at https://foss.heptapod.net/tryton/python-sql/-/blob/branch/default/tox.ini?ref_type=heads, it seems to require unittest-xml-reporting which we don't have in Fedora. I can patch it out. But it seems it is required for https://foss.heptapod.net/tryton/python-sql/-/blob/branch/default/tox.ini?ref_type=heads#L12 (the -m xmlrunner option). Any hint how to make it running? A scratch build for my WIP spec file is https://koji.fedoraproject.org/koji/taskinfo?taskID=124958264 I'd try circumventing tox in this case as coverage is an undesired dependency anyway https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters Try something like: %check %{py3_test_envvars} %{python3} -m unittest discover -s sql.tests Thanks a lot, Miro. If I understand it right, then tox is used purely for the coverage, thus I am removing tox.ini completely now. And with your %check command the build runs OK. FEDORA-2024-25a3efb7fc (python-sql-1.5.2-2.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2024-25a3efb7fc FEDORA-2024-25a3efb7fc (python-sql-1.5.2-2.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report. This is not necessary: rm tox.ini Instead, drop -t from %pyproject_buildrequires -t. Now this package BuildRequires tox for no good reason. you are right, fixed :-) Thanks! |