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
Bug 1482898 - python-simpleparse: Provide a Python 3 subpackage
Summary: python-simpleparse: Provide a Python 3 subpackage
Alias: None
Product: Fedora
Classification: Fedora
Component: python-simpleparse
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2017-08-18 10:57 UTC by Iryna Shcherbina
Modified: 2018-01-30 14:30 UTC (History)
4 users (show)

Fixed In Version: python-simpleparse-2.2.0-1.fc28
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-01-30 14:30:42 UTC
Type: Bug

Attachments (Terms of Use)
New version including Python 3 subpackage (deleted)
2017-08-25 13:55 UTC, Jan Beran
no flags Details

Description Iryna Shcherbina 2017-08-18 10:57:44 UTC
Upstream, this software supports Python 3. Please provide a Python 3
package for Fedora.

According to the Python packaging guidelines [0], software must be
packaged for Python 3 if upstream supports it.
The guidelines give detailed information on how to do this, and even
provide an example spec file [1].

The current best practice is to provide subpackages for the two Python
versions (called "Common SRPM" in the guidelines). Alternatively, if
nothing depends on your Python2 package, you can just switch to Python 3

It's OK to do this in Rawhide only, however, it would be greatly
appreciated if you could push it to Fedora 25 as well.

If you need more instructions, a guide for porting Python-based RPMs is
available at [2].
If anything is unclear, or if you need any kind of assistance with the
porting, you can ask on IRC (#fedora-python on Freenode), or reply here.
We'll be happy to help!


Comment 1 Jan Beran 2017-08-25 13:55:50 UTC
Created attachment 1318237 [details]
New version including Python 3 subpackage

Comment 2 Jan Beran 2017-08-25 13:58:10 UTC
Hello Andy,

may I ask to review the patch, and if it is fine, to make the new package in Fedora?

Thank you.


Comment 3 Jan Beran 2017-09-18 13:25:13 UTC
Hello Andy, please, may I ask for your feedback?

Comment 4 Miro Hrončok 2017-10-12 14:01:05 UTC
> -%filter_provides_in %{python_sitearch}/.*\.so$\
> +%filter_provides_in %{python2_sitearch}/.*\.so$\
> +%filter_provides_in %{python3_sitearch}/.*\.so$\

I think this can be entirely removed because it si not needed any more and those files are never provided so there is no need to filter them out.

Even if it was needed, this way it doesn't work. This macro can be used only once (with a regex OR).

> +mv %{buildroot}%{python3_sitearch}/simpleparse/stt/TextTools/mxTextTools/mxTextTools.*.so %{buildroot}%{python3_sitearch}/simpleparse/stt/TextTools/mxTextTools/

Why is this done? It makes zero sense to me. If it is needed, please add a comment explaining why. If not, please don't do it.

> +%{python2_sitearch}


> +%{python3_sitearch}

I know you are not changing anything here, because this was already done wrong in the original, but this is wrong. A python module package cannot own this directory, it is owned by pythonX-libs. Please at least use %{pythonX_sitearch}/* if nothing more specific.

Comment 5 Jan Beran 2017-10-13 15:17:17 UTC
Hi Miro, thanks for your review. I have provided the updated patch here:

Comment 6 Jan Beran 2017-10-16 08:19:25 UTC
Miro, thank you for the additional explanation at I have updated the patch:

Comment 7 Jan Beran 2018-01-12 07:16:29 UTC
Hi Andy,

may I ask you to review the Pagure PR [1] and rebuild the package?

Thank you.


Comment 8 Andy Grover 2018-01-16 23:19:01 UTC
package handed off to python-sig, feel free to take this BZ too.

Comment 9 Miro Hrončok 2018-01-17 09:22:05 UTC
I will finish this soon. If not, bump me.

Comment 10 Miro Hrončok 2018-01-30 14:30:42 UTC
Thanks Jan for the PR. Merged and built.

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