Package: pep8 Version: 1.4.5-1~bpo70+1 Severity: important Hi,
Please see attached patch to add support for python3. This is a dependency of python3-flake8, which is currently not available in Debian. Let me know if you can't do the work and would accept an NMU. Cheers, Thomas Goirand (zigo)
diff -u pep8-1.4.5/debian/rules pep8-1.4.5/debian/rules --- pep8-1.4.5/debian/rules +++ pep8-1.4.5/debian/rules @@ -2,12 +2,18 @@ -# -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 +PYTHONS:=$(shell pyversions -vr) +PYTHON3S:=$(shell py3versions -vr) %: - dh $@ --with=python2 + dh $@ --buildsystem=python_distutils --with python2,python3 + +override_dh_auto_install: + set -e && for pyvers in $(PYTHONS); do \ + python$$pyvers setup.py install --install-layout=deb \ + --root $(CURDIR)/debian/pep8; \ + done + + set -e && for pyvers in $(PYTHON3S); do \ + python$$pyvers setup.py install --install-layout=deb \ + --root $(CURDIR)/debian/python3-pep8; \ + done + rm -r $(CURDIR)/debian/python3-pep8/usr/bin diff -u pep8-1.4.5/debian/control pep8-1.4.5/debian/control --- pep8-1.4.5/debian/control +++ pep8-1.4.5/debian/control @@ -9,7 +9,15 @@ Package: pep8 Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python-setuptools -Description: Python PEP 8 code style checker +Description: Python PEP 8 code style checker - python2 + Features a plugin architecture allowing for adding new checks is easily. + Parseable output listing line numbers of the error location. Consists of + just one Python file, and requires only stdlib. + +Package: python3-pep8 +Architecture: all +Depends: ${misc:Depends}, ${python:Depends}, python-setuptools +Description: Python PEP 8 code style checker - python3 Features a plugin architecture allowing for adding new checks is easily. Parseable output listing line numbers of the error location. Consists of just one Python file, and requires only stdlib. diff -u pep8-1.4.5/debian/changelog pep8-1.4.5/debian/changelog --- pep8-1.4.5/debian/changelog +++ pep8-1.4.5/debian/changelog @@ -1,3 +1,10 @@ +pep8 (1.4.5-1.1) UNRELEASED; urgency=low + + * Non-maintainer upload. + * Added support for python3. + + -- Thomas Goirand <z...@debian.org> Sat, 10 Aug 2013 13:14:33 +0000 + pep8 (1.4.5-1) unstable; urgency=low * New upstream release. (Closes: #712086)