diff -u pyparallel-0.2.2/debian/changelog pyparallel-0.2.2/debian/changelog --- pyparallel-0.2.2/debian/changelog +++ pyparallel-0.2.2/debian/changelog @@ -1,3 +1,9 @@ +pyparallel (0.2.2-2) unstable; urgency=medium + + * Build a python3-parallel package. + + -- Matthias Klose Sat, 07 Jan 2017 14:31:21 +0100 + pyparallel (0.2.2-1) unstable; urgency=medium * New upstream version. diff -u pyparallel-0.2.2/debian/control pyparallel-0.2.2/debian/control --- pyparallel-0.2.2/debian/control +++ pyparallel-0.2.2/debian/control @@ -3,8 +3,9 @@ XS-Python-Version: all Priority: optional Maintainer: Matthias Klose -Build-Depends: debhelper (>= 9), dh-python, python-all:any -Build-Depends-Indep: python-setuptools, +Build-Depends: debhelper (>= 9), dh-python, + python-all:any, python3-all:any +Build-Depends-Indep: python-setuptools, python3-setuptools, Standards-Version: 3.9.8 Package: python-parallel @@ -15,4 +16,14 @@ This module capsulates the access for the parallel port. It provides backends for standard Python running on Windows, Linux, BSD (possibly + any POSIX compliant system). The module named "parallel" automatically + selects the appropriate backend. + +Package: python3-parallel +Architecture: all +Depends: ${python3:Depends}, ${misc:Depends} +XB-Python-Version: ${python3:Versions} +Description: pyparallel - module encapsulating access for the parallel port + This module capsulates the access for the parallel port. It provides + backends for standard Python running on Windows, Linux, BSD (possibly any POSIX compliant system). The module named "parallel" automatically selects the appropriate backend. diff -u pyparallel-0.2.2/debian/rules pyparallel-0.2.2/debian/rules --- pyparallel-0.2.2/debian/rules +++ pyparallel-0.2.2/debian/rules @@ -7,8 +7,10 @@ #export DH_VERBOSE=1 PYTHON := /usr/bin/python +PYTHON3 := /usr/bin/python3 PYVER := $(shell $(PYTHON) -c 'import sys; print sys.version[:3]') PYVERS := $(shell pyversions -vs) +PY3VERS := $(shell py3versions -vs) build-arch: build build-indep: build @@ -20,6 +22,10 @@ for v in $(PYVERS); do \ python setup.py build; \ done + set -e; \ + for v in $(PY3VERS); do \ + python3 setup.py build; \ + done touch build-stamp clean: @@ -40,6 +46,11 @@ python setup.py install \ --root=$(CURDIR)/debian/python-parallel; \ done + set -e; \ + for v in $(PY3VERS); do \ + python3 setup.py install \ + --root=$(CURDIR)/debian/python3-parallel; \ + done # Build architecture-independent files here. binary-indep: build install @@ -51,7 +62,7 @@ dh_installman : # Replace all '#!' calls to python with $(PYTHON) : # and make them executable - for i in `find debian -mindepth 3 -type f`; do \ + for i in `find debian/python-parallel -mindepth 3 -type f`; do \ sed '1s,#!.*python[^ ]*\(.*\),#! $(PYTHON)\1,' \ $$i > $$i.temp; \ if cmp --quiet $$i $$i.temp; then \ @@ -62,7 +73,21 @@ echo "fixed interpreter: $$i"; \ fi; \ done - dh_python2 + : # Replace all '#!' calls to python with $(PYTHON3) + : # and make them executable + for i in `find debian/python3-parallel -mindepth 3 -type f`; do \ + sed '1s,#!.*python[^ ]*\(.*\),#! $(PYTHON3)\1,' \ + $$i > $$i.temp; \ + if cmp --quiet $$i $$i.temp; then \ + rm -f $$i.temp; \ + else \ + mv -f $$i.temp $$i; \ + chmod 755 $$i; \ + echo "fixed interpreter: $$i"; \ + fi; \ + done + dh_python2 -ppython-parallel + dh_python3 -ppython3-parallel dh_compress -X.py dh_fixperms dh_installdeb diff -u pyparallel-0.2.2/debian/watch pyparallel-0.2.2/debian/watch --- pyparallel-0.2.2/debian/watch +++ pyparallel-0.2.2/debian/watch @@ -2 +2 @@ -http://sf.net/pyserial/pyparallel-([\d\.]*).zip +http://pypi.debian.net/pyparallel/pyparallel-(.*)\.(?:tar\.gz|zip)