Package: python-empy Version: 3.3-7 Followup-For: Bug #732101 After private email with Ana I believe that we can go with patching the current state of python-empy.
Here is my patch against current version of python-empy: diff --git a/debian/changelog b/debian/changelog index fa119e8..941a51d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,14 @@ +empy (3.3-7.1) UNRELEASED; urgency=low + + * Non-maintainer upload. + * Include patch to support python3 (thanks to Dirk Thomas) + * Update control file to include python3-empy package + * Modified rules file to stop calling setup.sh manually and support pybuild + * New .manpages and .dirs files for python3-empy + * Replace cp command by install in rules file + + -- Jose Luis Rivero <jriv...@osrfoundation.org> Thu, 12 Dec 2013 22:30:26 +0000 + empy (3.3-7) unstable; urgency=low * Full packaging revamp, it was about time! diff --git a/debian/control b/debian/control index fd0cca4..a4a0b8d 100644 --- a/debian/control +++ b/debian/control @@ -2,8 +2,14 @@ Source: empy Section: python Priority: optional Maintainer: Ana Beatriz Guerrero Lopez <a...@debian.org> -Build-Depends: debhelper (>= 8.0.0), python-all +Build-Depends: debhelper (>= 8), + dh-python, + python-all, + python-setuptools, + python3-all, + python3-setuptools X-Python-Version: >= 2.6 +X-Python3-Version: >= 3.2 Standards-Version: 3.9.4 Homepage: http://www.alcyone.com/software/empy/ @@ -11,7 +17,7 @@ Package: python-empy Architecture: all Depends: python, ${python:Depends}, ${misc:Depends} Provides: ${python:Provides} -Description: templating system for Python +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 produces output. @@ -26,6 +32,30 @@ Description: templating system for Python diversions, and dynamic, chainable filters. The system is highly configurable via command line options and embedded commands. + . + This is the Python 2 version of the package. + +Package: python3-empy +Architecture: all +Depends: python3, ${python3:Depends}, ${misc:Depends} +Provides: ${python3:Provides} +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 + produces output. + This is accomplished via expansions, which are special signals + to the EmPy system and are set off by a special prefix (by default + the at sign, '@'). EmPy can expand arbitrary Python expressions + and statements in this way, as well as a variety of special forms. + Textual data not explicitly delimited in this way is sent unaffected + to the output, allowing Python to be used in effect as a markup + language. + Also supported are "hook" callbacks, recording and playback via + diversions, and dynamic, chainable filters. + The system is highly configurable via command line options and + embedded commands. + . + This is the Python 3 version of the package. Package: python-empy-doc Section: doc diff --git a/debian/patches/series b/debian/patches/series index d32abbe..6b96202 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ fix_paths +support_python3.patch diff --git a/debian/rules b/debian/rules index 8f5d20b..1ff89f8 100755 --- a/debian/rules +++ b/debian/rules @@ -2,11 +2,13 @@ # -*- makefile -*- export DH_OPTIONS +export PYBUILD_NAME=empy %: - dh $@ --with python2 + dh $@ --with python2,python3 --buildsystem=pybuild override_dh_auto_install: - python setup.py install --root=$(CURDIR)/debian/python-empy --install-layout=deb - cp em.py $(CURDIR)/debian/python-empy/usr/bin/empy - chmod +w $(CURDIR)/debian/python-empy/usr/bin/empy + dh_auto_install + + install -m 755 em.py $(CURDIR)/debian/python-empy/usr/bin/empy + 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.2.0-57-generic (SMP w/4 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.5-5 python-empy recommends no packages. python-empy suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org