https://bugzilla.redhat.com/show_bug.cgi?id=2048104
Bug ID: 2048104 Summary: python3-zinnia provides python3dist(zinnia-python) = 0 Product: Fedora Version: rawhide Status: NEW Component: zinnia Assignee: liangsuilong@gmail.com Reporter: mhroncok@redhat.com QA Contact: extras-qa@fedoraproject.org CC: i18n-bugs@lists.fedoraproject.org, liangsuilong@gmail.com, petersen@redhat.com, pwu@redhat.com Blocks: 2048077 (python3dist0) Target Milestone: --- Classification: Fedora
The package python3-zinnia has the following automatic provide:
python3dist(zinnia-python) = 0
It appears that the actual package version was lost during the packaging process.
In most cases, this is caused by using a Source that misses version information, e.g. A GitHub tarball when the project uses setuptools_scm or pbr. See https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_source_fi...
This bugzilla was created in a batch, so it does not have information about the exact cause for this package. If you need help figuring out why this happens in this particular package, feel free to ask.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=2048077 [Bug 2048077] Tracker bug for packages providing python3dist(...) = 0
https://bugzilla.redhat.com/show_bug.cgi?id=2048104
--- Comment #2 from Peng Wu pwu@redhat.com --- I think zinnia use swig to generate python binding.
How could I provide the version information for zinnia python binding?
https://bugzilla.redhat.com/show_bug.cgi?id=2048104
--- Comment #3 from Miro Hrončok mhroncok@redhat.com --- From the specfile:
pushd python python3 setup.py install --root $RPM_BUILD_ROOT pushd
From setup.py:
#!/usr/bin/env python
from distutils.core import setup,Extension,os import string
setup(name = "zinnia-python", py_modules=["zinnia"], ext_modules = [Extension("_zinnia", ["zinnia_wrap.cxx",], libraries=["zinnia"]) ])
E.g. there is no version=... in the setup() call.
Nothing in Fedora requires python3dist(zinnia-python) / python3.10dist(zinnia-python).
https://pypi.org/project/zinnia-python/ does not exist either.
IMHO the best solution to this problem is to rm $RPM_BUILD_ROOT%{python3_sitearch}/zinnia_python-0.0.0-py%{python3_version}.egg-info after the setup.py install call, with a reference to this bugzilla.
Clearly, the metadata is not relevant for upstream.
---------
Alternatively, go talk to upstream and ask them if they could set the version= in setup.py to something meninful.
https://bugzilla.redhat.com/show_bug.cgi?id=2048104
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED
--- Comment #4 from Fedora Update System updates@fedoraproject.org --- FEDORA-2022-fe1b352e86 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-fe1b352e86
https://bugzilla.redhat.com/show_bug.cgi?id=2048104
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |CLOSED Resolution|--- |ERRATA Fixed In Version| |zinnia-0.06-57.fc37 Last Closed| |2022-02-11 03:33:20
--- Comment #5 from Fedora Update System updates@fedoraproject.org --- FEDORA-2022-fe1b352e86 has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=2048104
--- Comment #6 from Fedora Update System updates@fedoraproject.org --- FEDORA-2022-eece6813c5 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-eece6813c5
https://bugzilla.redhat.com/show_bug.cgi?id=2048104
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version|zinnia-0.06-57.fc37 |zinnia-0.06-57.fc37 | |zinnia-0.06-57.fc36
--- Comment #7 from Fedora Update System updates@fedoraproject.org --- FEDORA-2022-eece6813c5 has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=2048104
--- Comment #8 from Peng Wu pwu@redhat.com --- Thanks for the help!
Built for Fedora rawhide and Fedora 36.
Koji URL: https://koji.fedoraproject.org/koji/taskinfo?taskID=82659715 https://koji.fedoraproject.org/koji/taskinfo?taskID=82661294
https://bugzilla.redhat.com/show_bug.cgi?id=2048104
Peng Wu pwu@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|liangsuilong@gmail.com |pwu@redhat.com
i18n-bugs@lists.fedoraproject.org