Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 2048104 - python3-zinnia provides python3dist(zinnia-python) = 0
Summary: python3-zinnia provides python3dist(zinnia-python) = 0
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: zinnia
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peng Wu
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: python3dist0
TreeView+ depends on / blocked
 
Reported: 2022-01-29 12:26 UTC by Miro Hrončok
Modified: 2022-02-11 04:28 UTC (History)
4 users (show)

Fixed In Version: zinnia-0.06-57.fc37 zinnia-0.06-57.fc36
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-11 03:33:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.