[Python-modules-commits] [case] 02/03: Add Python2 support through separate binary package.

Michael Fladischer fladi at moszumanska.debian.org
Sun Feb 19 19:00:27 UTC 2017


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

fladi pushed a commit to branch master
in repository case.

commit a4701acef19d57cf28293a8674892b1073b43c49
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Sun Feb 19 19:56:01 2017 +0100

    Add Python2 support through separate binary package.
---
 debian/changelog |  1 +
 debian/control   | 23 ++++++++++++++++++++++-
 debian/rules     |  2 +-
 3 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index cf4659d..7038c61 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ case (1.5.2+dfsg-1.1) UNRELEASED; urgency=medium
 
   * Non-maintainer upload.
   * Reformat packaging files with cme for better readability.
+  * Add Python2 support through separate binary package.
 
  -- Michael Fladischer <fladi at debian.org>  Sun, 19 Feb 2017 19:44:55 +0100
 
diff --git a/debian/control b/debian/control
index d3f2f9b..e162784 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,11 @@ Section: python
 Priority: optional
 Build-Depends: debhelper (>= 9),
                dh-python,
+               python-all,
+               python-mock,
+               python-nose,
+               python-setuptools,
+               python-six,
                python3-all,
                python3-nose,
                python3-setuptools,
@@ -14,14 +19,30 @@ Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/case.git
 Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/case.git
 Homepage: http://github.com/celery/case
 
+Package: python-case
+Architecture: all
+Depends: ${misc:Depends},
+         ${python:Depends}
+Description: Python unittest Utilities (Python2 version)
+ Python unittest Utilities. Includes:
+ .
+  * case.case
+  * case.skip
+  * case.mock
+  * case.utils
+ .
+ This package contains the Python 2 version of the library.
+
 Package: python3-case
 Architecture: all
 Depends: ${misc:Depends},
          ${python3:Depends}
-Description: Python unittest Utilities
+Description: Python unittest Utilities (Python3 version)
  Python unittest Utilities. Includes:
  .
   * case.case
   * case.skip
   * case.mock
   * case.utils
+ .
+ This package contains the Python 3 version of the library.
diff --git a/debian/rules b/debian/rules
index e6543e5..ee3feff 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,5 +4,5 @@
 # Sat, 11 Feb 2017 15:42:43 +0000
 export PYBUILD_NAME=case
 %:
-	dh $@ --with python3 --buildsystem=pybuild
+	dh $@ --with python2,python3 --buildsystem=pybuild
 

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



More information about the Python-modules-commits mailing list