Bug 1977060
| Summary: | %pyproject_buildrequires converts "~= 0.4.0" to ">= 0.4 with < 1" instead of ">= 0.4 with < 0.5" | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
| Component: | pyproject-rpm-macros | Assignee: | Miro Hrončok <mhroncok> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | mhroncok, pviktori, python-sig |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | pyproject-rpm-macros-0-42 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-07-09 11:57:42 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: | |||
When the upstream project requires: gast ~= 0.4.0 The runtime dependency generator converts it to: (python3.Xdist(gast) >= 0.4 with python3.Xdist(gast) < 0.5) But the %pyproject_buildrequires (pyproject-rpm-macros <= 0-41) converts it to: (python3dist(gast) >= 0.4 with python3dist(gast) < 1) The first seem to be behave like upstream. This may lead to incomplete run of %pyproject_buildrequires when gast 0.5 (or 0.6, 0.7...) is installed because requirements.check() will end the script (Python dependencies unsatisfied) but there will no more packages to install (RPM dependencies satisfied). This seem to be used by stripping the leading zeros (via canonicalize_version()) before sending the requirement to convert() and hence actually processing ~= 0.4 instead of ~= 0.4.0 which has a different meaning.