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 1323170 - python-xhtml2pdf: Provide a Python 3 subpackage
Summary: python-xhtml2pdf: Provide a Python 3 subpackage
Alias: None
Product: Fedora
Classification: Fedora
Component: python-xhtml2pdf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Major Hayden 🤠
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: PYTHON3
TreeView+ depends on / blocked
Reported: 2016-04-01 12:38 UTC by Tomas Orsava
Modified: 2016-05-12 01:31 UTC (History)
2 users (show)

Fixed In Version: python-xhtml2pdf-0.1a2-1.fc24
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2016-05-12 01:31:46 UTC
Type: Bug

Attachments (Terms of Use)

Description Tomas Orsava 2016-04-01 12:38:33 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 24 as well.

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 Dominika Krejčí 2016-04-22 13:14:41 UTC
Hello Major,

Do you need any help adding Python 3 support to the RPM?

If you need more instructions, a [guide] for porting Python-based RPMs is available.


Comment 2 Major Hayden 🤠 2016-04-22 13:27:22 UTC
This is on my list of things to do!  I haven't had time to work on it yet! :)

If you have any suggestions in the meantime, please let me know.

Comment 3 Fedora Update System 2016-05-03 03:27:49 UTC
python-xhtml2pdf-0.1a2-1.fc24 has been submitted as an update to Fedora 24.

Comment 4 Major Hayden 🤠 2016-05-03 03:28:29 UTC
Pushed a new package for rawhide and F24.

Comment 5 Fedora Update System 2016-05-03 11:22:57 UTC
python-xhtml2pdf-0.1a2-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See for
instructions on how to install test updates.
You can provide feedback for this update here:

Comment 6 Tomas Orsava 2016-05-05 17:40:32 UTC
Hi Major! Thank you for taking the time!

However, there is an issue with the python2-xhtml2pdf subpackage. If you do `rpm -qp --requires` on the resulting RPM you'll find out that this Python 2 subpackage also depends on /usr/bin/python3 for some reason.

In most cases this is simply a wrong shebang on top of one of the files. If you'd like more information, there's a section of the Porting Guide [0] about dealing with shebangs, though it's dealing with the reverse problem—Python 2 dependency in a Python 3 subpackage.


Have a great day!

Comment 7 Major Hayden 🤠 2016-05-05 18:18:55 UTC
Thanks for letting me know. I'm looking at the package now.

Comment 8 Major Hayden 🤠 2016-05-05 19:05:19 UTC
Tomas -- I think I have it fixed now, but the dependency, python-PyPDF2, doesn't have Python 3 support packaged.  Luckily, that's one I maintain, so I'll get started on it. ;)

Comment 9 Tomas Orsava 2016-05-06 15:06:45 UTC
That would be most splendid, thank you and good hunting!

Comment 10 Fedora Update System 2016-05-12 01:31:42 UTC
python-xhtml2pdf-0.1a2-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

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