Package: python-empy Version: 3.3-8 Severity: normal Tags: patch Dear Maintainer,
We found the use case where we need to install both empy versions, python2 and python3 at the same time. For doing this, and after talking in #debian-python with some developers, the patch attached follows this approach: - Both packages will provide python modules - Binary (wich is just a copy of the module) will only be provided by python3 version We did not find any reason to provide two different implented binaries. Attached is the debdiff for the new 3.3-9 revision. Thanks, Jose. diff -Nru empy-3.3/debian/changelog empy-3.3/debian/changelog --- empy-3.3/debian/changelog 2014-01-16 22:33:16.000000000 +0000 +++ empy-3.3/debian/changelog 2014-07-17 20:10:33.000000000 +0000 @@ -1,3 +1,12 @@ +empy (3.3-9) unstable; urgency=medium + + [ Jose Luis Rivero ] + * Make both empy versions, python2 and python3, coinstallable. The binary + will be only provided by the python3 version while both will provide + the python module. + + -- Jose Luis Rivero <jriv...@osrfoundation.org> Thu, 17 Jul 2014 22:00:52 +0200 + empy (3.3-8) unstable; urgency=medium [ Jose Luis Rivero ] diff -Nru empy-3.3/debian/control empy-3.3/debian/control --- empy-3.3/debian/control 2014-01-16 22:32:52.000000000 +0000 +++ empy-3.3/debian/control 2014-07-17 20:07:31.000000000 +0000 @@ -12,7 +12,7 @@ Architecture: all Depends: python, ${python:Depends}, ${misc:Depends} Provides: ${python:Provides} -Conflicts: python3-empy +Conflicts: python3-empy (<= 3.3-8) Description: templating system for Python (Python 2) EmPy is a system for embedding Python expressions and statements in template text; it takes an EmPy source file, processes it, and @@ -29,13 +29,15 @@ The system is highly configurable via command line options and embedded commands. . - This is the Python 2 version of the package. + This is the Python 2 version of the package. This version does not install + the empy executable anymore, just the python module. + . Package: python3-empy Architecture: all Depends: python3, ${python3:Depends}, ${misc:Depends} Provides: ${python3:Provides} -Conflicts: python-empy +Conflicts: python-empy (<= 3.3-8) Description: templating system for Python (Python 3) EmPy is a system for embedding Python expressions and statements in template text; it takes an EmPy source file, processes it, and @@ -52,7 +54,8 @@ The system is highly configurable via command line options and embedded commands. . - This is the Python 3 version of the package. + This is the Python 3 version of the package. This version contains the + module installed as empy executable. Package: python-empy-doc Section: doc diff -Nru empy-3.3/debian/python-empy.dirs empy-3.3/debian/python-empy.dirs --- empy-3.3/debian/python-empy.dirs 2013-07-14 21:13:55.000000000 +0000 +++ empy-3.3/debian/python-empy.dirs 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -usr/bin/ diff -Nru empy-3.3/debian/python-empy.manpages empy-3.3/debian/python-empy.manpages --- empy-3.3/debian/python-empy.manpages 2013-07-14 20:10:53.000000000 +0000 +++ empy-3.3/debian/python-empy.manpages 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -debian/empy.1 diff -Nru empy-3.3/debian/rules empy-3.3/debian/rules --- empy-3.3/debian/rules 2014-01-16 22:32:29.000000000 +0000 +++ empy-3.3/debian/rules 2014-07-17 20:07:33.000000000 +0000 @@ -10,5 +10,5 @@ override_dh_auto_install: dh_auto_install - install -m 755 em.py $(CURDIR)/debian/python-empy/usr/bin/empy + # only version 3 provides the module installed as a binary install -m 755 em.py $(CURDIR)/debian/python3-empy/usr/bin/empy -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.8.0-35-generic (SMP w/8 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_US.utf8) Shell: /bin/sh linked to /bin/dash Versions of packages python-empy depends on: ii python 2.7.8-1 pn python:any <none> python-empy recommends no packages. python-empy suggests no packages. -- debconf-show failed -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org