[Python-modules-commits] [python-latexcodec] 03/04: build Python2 package

Daniel Stender stender at moszumanska.debian.org
Tue May 10 14:13:27 UTC 2016


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

stender pushed a commit to branch master
in repository python-latexcodec.

commit f6ae7c31fd60f0ebf3d6f43d619d9b0c7fbb056a
Author: Daniel Stender <stender at debian.org>
Date:   Tue May 10 16:10:00 2016 +0200

    build Python2 package
---
 debian/changelog               |  8 +++++++-
 debian/control                 | 28 ++++++++++++++++++++++++----
 debian/rules                   |  2 +-
 debian/tests/control           |  3 +++
 debian/tests/python-latexcodec |  3 +++
 5 files changed, 38 insertions(+), 6 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 245bbc3..8067e53 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,8 +9,14 @@ python-latexcodec (1.0.3-2) UNRELEASED; urgency=medium
     + contribute CHANGELOG into both packages in deb/rules.
     + renamed deb/python3-latexcodec.doc-base accordingly, updated
       paths and Document field.
+  * build Python2 package:
+    + added package description in deb/control.
+    + added Python2 package counterparts to build-deps in deb/control.
+    + added X-Python-Version in deb/control.
+    + added dh_python2 to Debhelper addons to use in deb/rules.
+    + extended DEP-8 tests.
 
- -- Daniel Stender <stender at debian.org>  Tue, 10 May 2016 15:42:42 +0200
+ -- Daniel Stender <stender at debian.org>  Tue, 10 May 2016 16:07:31 +0200
 
 python-latexcodec (1.0.3-1) unstable; urgency=medium
 
diff --git a/debian/control b/debian/control
index 67a188f..d1cd8b2 100644
--- a/debian/control
+++ b/debian/control
@@ -5,38 +5,58 @@ Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.
 Uploaders: Daniel Stender <stender at debian.org>
 Build-Depends: debhelper (>= 9),
                dh-python,
+               python-all,
                python3-all,
+               python-six,
                python3-six,
+               python-setuptools,
                python3-setuptools,
+               python-nose,
                python3-nose,
                python-sphinx
-# needs fix: build breaks with python3-sphinx
+# build breaks with python3-sphinx
 Standards-Version: 3.9.8
 Homepage: https://github.com/mcmtroffaes/latexcodec
 Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-latexcodec.git
 Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/python-latexcodec.git
+X-Python-Version: >= 2.6
 X-Python3-Version: >= 3.3
 
+Package: python-latexcodec
+Architecture: all
+Depends: ${misc:Depends},
+         ${python:Depends}
+Recommends: python-latexcodec-doc
+Description: LaTeX lexer and codec library for Python
+ latexcodec is a Python library for converting from and into
+ LaTeX encoding. It includes a codec module which contains classes
+ and functions for LaTeX code translation, and a module for lexing
+ LaTeX code, which includes general purpose base classes for
+ incremental LaTeX decoders and encoders.
+ .
+ This package contains the modules for Python2.
+
 Package: python3-latexcodec
 Architecture: all
 Depends: ${misc:Depends},
          ${python3:Depends}
 Recommends: python-latexcodec-doc
-Description: LaTeX lexer and codec library for Python
+Description: LaTeX lexer and codec library for Python3
  latexcodec is a Python library for converting from and into
  LaTeX encoding. It includes a codec module which contains classes
  and functions for LaTeX code translation, and a module for lexing
  LaTeX code, which includes general purpose base classes for
  incremental LaTeX decoders and encoders.
  .
- This package contains the modules for Python 3.
+ This package contains the modules for Python3.
 
 Package: python-latexcodec-doc
 Architecture: all
 Section: doc
 Depends: ${misc:Depends},
          ${sphinxdoc:Depends}
-Recommends: python3-latexcodec
+Recommends: python-latexcodec,
+            python3-latexcodec
 Breaks: python3-latexcodec (= 1.0.3-1)
 Description: LaTeX lexer and codec library for Python (docs)
  latexcodec is a Python library for converting from and into
diff --git a/debian/rules b/debian/rules
index 2084d21..6f5204c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,7 +6,7 @@ export PYBUILD_NAME=latexcodec
 DEBDATE := $(shell dpkg-parsechangelog -Sdate | date -u +%F)
 
 %:
-	dh $@ --with python3,sphinxdoc --buildsystem=pybuild
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
 override_dh_auto_test:
 	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -m nose -v" dh_auto_test
diff --git a/debian/tests/control b/debian/tests/control
index 2f0bdb2..6e68aa2 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,5 @@
+Tests: python-latexcodec
+Depends: python-all, python-six, python-nose
+
 Tests: python3-latexcodec
 Depends: python3-all, python3-six, python3-nose
\ No newline at end of file
diff --git a/debian/tests/python-latexcodec b/debian/tests/python-latexcodec
new file mode 100755
index 0000000..71ef134
--- /dev/null
+++ b/debian/tests/python-latexcodec
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e -u
+for py in $(pyversions -i); do echo "[*] testing $py:"; $py -m nose -v 2>&1; done

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



More information about the Python-modules-commits mailing list