[Python-modules-commits] [xhtml2pdf] 06/13: build for python3

Drew Parsons dparsons at moszumanska.debian.org
Mon Oct 30 04:27:16 UTC 2017


This is an automated email from the git hooks/post-receive script.

dparsons pushed a commit to branch master
in repository xhtml2pdf.

commit 0548105d917cb8a46f42fdc603ee496548553da6
Author: Drew Parsons <dparsons at emerall.com>
Date:   Mon Oct 30 11:35:56 2017 +0800

    build for python3
---
 debian/changelog | 1 +
 debian/control   | 6 ++++--
 debian/rules     | 3 ++-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 00a6047..b0d68d2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ xhtml2pdf (0.2b-1) UNRELEASED; urgency=medium
 
   [ Drew Parsons ]
   * Create new debian packaging for xhtml2pdf, adapted from pisa.
+    - includes python3 package, python3-xhtml2pdf,
   * Standards-Version: 4.1.1
   * debhelper compatibility level 10
 
diff --git a/debian/control b/debian/control
index 04bae66..62c324b 100644
--- a/debian/control
+++ b/debian/control
@@ -12,6 +12,8 @@ Build-Depends-Indep: dh-python,
     python-html5lib (>= 0.999999999), python3-html5lib (>= 0.999999999),
     python-turbogears2
 Standards-Version: 4.1.1
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
 Homepage: https://github.com/xhtml2pdf/xhtml2pdf
 Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/xhtml2pdf.git
 Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/xhtml2pdf.git
@@ -19,7 +21,7 @@ Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/xhtml2pdf.g
 Package: python-xhtml2pdf
 Architecture: all
 Provides: ${python:Provides}
-Depends: ${misc:Depends}, ${python:Depends}, python-html5lib, python-imaging, python-pypdf2, python-reportlab (>= 2.2), python-pkg-resources
+Depends: python-html5lib, python-imaging, python-pypdf2, python-reportlab (>= 2.2), python-pkg-resources, ${python:Depends}, ${misc:Depends}
 Description: A library for converting HTML into PDFs using ReportLab (Python 2 module)
  xhtml2pdf is a html2pdf converter using the ReportLab Toolkit, the
  HTML5lib and pyPdf. It supports HTML 5 and CSS 2.1 (and some of CSS
@@ -37,7 +39,7 @@ Description: A library for converting HTML into PDFs using ReportLab (Python 2 m
 Package: python3-xhtml2pdf
 Architecture: all
 Provides: ${python3:Provides}
-Depends: ${misc:Depends}, ${python3:Depends}, python3-html5lib, python3-imaging, python3-pypdf2, python3-reportlab (>= 2.2), python3-pkg-resources
+Depends: python3-html5lib, python3-imaging, python3-pypdf2, python3-reportlab (>= 2.2), python3-pkg-resources, ${python3:Depends}, ${misc:Depends}
 Description: A library for converting HTML into PDFs using ReportLab (Python 3 module)
  xhtml2pdf is a html2pdf converter using the ReportLab Toolkit, the
  HTML5lib and pyPdf. It supports HTML 5 and CSS 2.1 (and some of CSS
diff --git a/debian/rules b/debian/rules
index 9b6f937..ce5c5e7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,9 +6,10 @@
 XP=xsltproc --nonet --novalid
 DB2MAN=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
 
+export PYBUILD_NAME=xhtml2pdf
 
 %:
-	dh $@ --with python2 --buildsystem=pybuild
+	dh $@ --with python2,python3 --buildsystem=pybuild
 
 override_dh_auto_build:
 	# build the manpage

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/xhtml2pdf.git



More information about the Python-modules-commits mailing list