Bug 2048104

Summary: python3-zinnia provides python3dist(zinnia-python) = 0
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: zinniaAssignee: Peng Wu <pwu>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: i18n-bugs, liangsuilong, petersen, pwu
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: zinnia-0.06-57.fc37 zinnia-0.06-57.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-11 03:33:20 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:    
Bug Blocks: 2048077    

Description Miro Hrončok 2022-01-29 12:26:53 UTC
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_files_from_pypi

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.

Comment 1 Ben Cotton 2022-02-08 20:25:42 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 2 Peng Wu 2022-02-10 02:38:11 UTC
I think zinnia use swig to generate python binding.

How could I provide the version information for zinnia python binding?

Comment 3 Miro Hrončok 2022-02-10 08:58:34 UTC
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.

Comment 4 Fedora Update System 2022-02-11 03:29:35 UTC
FEDORA-2022-fe1b352e86 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-fe1b352e86

Comment 5 Fedora Update System 2022-02-11 03:33:20 UTC
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.

Comment 6 Fedora Update System 2022-02-11 04:18:13 UTC
FEDORA-2022-eece6813c5 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-eece6813c5

Comment 7 Fedora Update System 2022-02-11 04:21:22 UTC
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.

Comment 8 Peng Wu 2022-02-11 04:26:06 UTC
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