Bug 2319701
| Summary: | python-pyproject-api fails to build with setuptools 74+ | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
| Component: | python-pyproject-api | Assignee: | Lumír Balhar <lbalhar> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | lbalhar, mhroncok, python-packagers-sig |
| Target Milestone: | --- | Flags: | mhroncok:
needinfo?
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-pyproject-api-1.8.0-1.fc42 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-11-07 13:51:31 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: | 2293740 | ||
| Bug Blocks: | 2300528, 2319387, 2322407 | ||
|
Description
Miro Hrončok
2024-10-18 10:13:04 UTC
=================================== FAILURES ===================================
_______________ test_setuptools_prepare_metadata_for_build_wheel _______________
frontend_setuptools = <pyproject_api._via_fresh_subprocess.SubprocessFrontend object at 0x7f375a785d00>
tmp_path = PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_setuptools_prepare_metada0')
def test_setuptools_prepare_metadata_for_build_wheel(frontend_setuptools: SubprocessFrontend, tmp_path: Path) -> None:
meta = tmp_path / "meta"
result = frontend_setuptools.prepare_metadata_for_build_wheel(metadata_directory=meta)
assert result is not None
dist = Distribution.at(str(result.metadata))
assert list(dist.entry_points) == [EntryPoint(name="demo_exe", value="demo:a", group="console_scripts")]
assert dist.version == "1.0"
assert dist.metadata["Name"] == "demo"
values = [v for k, v in dist.metadata.items() if k == "Requires-Dist"] # type: ignore[attr-defined]
# ignore because "PackageMetadata" has no attribute "items"
> assert sorted(values) == ["magic >3", "requests >2"]
E AssertionError: assert ['magic>3', 'requests>2'] == ['magic >3', 'requests >2']
E
E At index 0 diff: 'magic>3' != 'magic >3'
E Use -v to get more diff
tests/test_frontend_setuptools.py:79: AssertionError
=========================== short test summary info ============================
FAILED tests/test_frontend_setuptools.py::test_setuptools_prepare_metadata_for_build_wheel
========================= 1 failed, 58 passed in 3.48s =========================
I know how to fix the problem and it's also reported upstream. When the new setuptools is delivered, I'll either patch this package to build again or do the update if there will be a new release available. I plan to update setuptools to 74.x in rawhide this week. At that point, this package will fail to build from source if not fixed. You can ship the update together with the new setuptools. https://src.fedoraproject.org/rpms/python-pyproject-api/pull-request/6 FEDORA-2024-95990bee9d (python-pyproject-api-1.8.0-1.fc42, python-setuptools-74.1.3-1.fc42, and 1 more) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2024-95990bee9d FEDORA-2024-95990bee9d (python-pyproject-api-1.8.0-1.fc42, python-setuptools-74.1.3-1.fc42, and 1 more) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report. |