[Python-modules-commits] [python-tidylib] 06/11: Switch to pybuild buildsystem and build a python3-tidylib package.
Dmitry Shachnev
mitya57 at moszumanska.debian.org
Mon Dec 14 18:03:44 UTC 2015
This is an automated email from the git hooks/post-receive script.
mitya57 pushed a commit to branch master
in repository python-tidylib.
commit 9dbd790666fd114bd2fcdfcce590e17e44d44494
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date: Mon Dec 14 20:18:52 2015 +0300
Switch to pybuild buildsystem and build a python3-tidylib package.
Closes: #756001.
---
debian/changelog | 2 ++
debian/compat | 2 +-
debian/control | 33 ++++++++++++++++++++++++++++-----
debian/rules | 10 +++-------
4 files changed, 34 insertions(+), 13 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 08a36ee..c3ce58d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,6 +16,8 @@ python-tidylib (0.2.4~dfsg-1) UNRELEASED; urgency=low
* Update debian/watch.
* Exclude docs/html directory from the tarball, as it contains minified JS
files without source.
+ * Switch to pybuild buildsystem and build a python3-tidylib package
+ (closes: #756001).
-- Jakub Wilk <jwilk at debian.org> Sun, 05 May 2013 18:40:57 +0200
diff --git a/debian/compat b/debian/compat
index 7f8f011..ec63514 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-7
+9
diff --git a/debian/control b/debian/control
index 8aa4209..15528a2 100644
--- a/debian/control
+++ b/debian/control
@@ -3,9 +3,13 @@ Section: python
Priority: optional
Maintainer: Janos Guljas <janos at debian.org>
Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.5), python-setuptools,
- python-sphinx, texlive-latex-base, texlive-latex-recommended,
- texlive-latex-extra, texlive-fonts-recommended, libtidy-0.99-0
+Build-Depends: debhelper (>= 9),
+ dh-python,
+ python-all (>= 2.6.6-3~),
+ python3-all,
+ python3-sphinx,
+ libtidy-0.99-0,
+ texlive-latex-extra
Standards-Version: 3.9.2
Homepage: http://countergram.com/open-source/pytidylib/
Vcs-Git: git://anonscm.debian.org/python-modules/packages/python-tidylib.git
@@ -14,8 +18,7 @@ Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/python-tidy
Package: python-tidylib
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}, libtidy-0.99-0, libjs-jquery, libjs-underscore
-Provides: ${python:Provides}
-Description: Python wrapper for HTML Tidy (tidylib)
+Description: Python 2 wrapper for HTML Tidy (tidylib)
PyTidyLib is a Python package that wraps the HTML Tidy library. This allows
you, from Python code, to “fix” invalid (X)HTML markup. Some of the library’s
many capabilities include:
@@ -27,3 +30,23 @@ Description: Python wrapper for HTML Tidy (tidylib)
* Clean up HTML from programs such as Word (to an extent)
* Indent the output, including proper (i.e. no) indenting for pre elements,
which some (X)HTML indenting code overlooks.
+ .
+ This is the Python 2 version of the module.
+
+Package: python3-tidylib
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}, libtidy-0.99-0
+Description: Python 3 wrapper for HTML Tidy (tidylib)
+ PyTidyLib is a Python package that wraps the HTML Tidy library. This allows
+ you, from Python code, to “fix” invalid (X)HTML markup. Some of the library’s
+ many capabilities include:
+ .
+ * Clean up unclosed tags and unescaped characters such as ampersands
+ * Output HTML 4 or XHTML, strict or transitional, and add missing doctypes
+ * Convert named entities to numeric entities, which can then be used in XML
+ documents without an HTML doctype.
+ * Clean up HTML from programs such as Word (to an extent)
+ * Indent the output, including proper (i.e. no) indenting for pre elements,
+ which some (X)HTML indenting code overlooks.
+ .
+ This is the Python 3 version of the module.
diff --git a/debian/rules b/debian/rules
index 9cc32f4..2aa95ce 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,9 @@
#!/usr/bin/make -f
+export PYBUILD_NAME=tidylib
+
%:
- dh $@ --with python2
+ dh $@ --with python2,python3 --buildsystem pybuild
override_dh_auto_build:
dh_auto_build
@@ -18,9 +20,3 @@ override_dh_auto_clean:
rm -rf debian/latex
find docs -name "*.pyc" -exec rm -rf {} +
dh_auto_clean
-
-override_dh_auto_test:
-ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
- set -ex; for i in `ls tests/*.py` ; do PYTHONPATH=$(CURDIR) python $${i} ; done
-endif
-
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-tidylib.git
More information about the Python-modules-commits
mailing list