Uploaded! Many thanks! S
On 15/05/2018 18:31, Georges Khaznadar wrote: > The NMU shoud reach debian/unstable in two weeks. Feel free to cancel it > and make other modification as you want. > > Here is the diff file: > > -----------------------8<------------------------------------------- > diff --git a/debian/changelog b/debian/changelog > index 2fb245b..149390f 100644 > --- a/debian/changelog > +++ b/debian/changelog > @@ -1,3 +1,11 @@ > +autopep8 (1.3.5-1.1) unstable; urgency=medium > + > + * Non-maintainer upload. > + * created the new package python3-autopep8. Closes: #875906 > + * modified debian/control and debian/rules accordingly > + > + -- Georges Khaznadar <georg...@debian.org> Tue, 15 May 2018 18:18:28 +0200 > + > autopep8 (1.3.5-1) unstable; urgency=medium > > * New upstream release > diff --git a/debian/control b/debian/control > index 3c4553e..2f60809 100644 > --- a/debian/control > +++ b/debian/control > @@ -4,19 +4,35 @@ Uploaders: Debian Python Modules Team > <python-modules-team@lists.alioth.debian.o > Section: python > Priority: optional > Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), > + python3-setuptools, python3-all, > debhelper (>= 10), pycodestyle, python-pycodestyle (>= 2.3.1), dh-python, > help2man > -Standards-Version: 4.1.3 > +Standards-Version: 4.1.4 > Homepage: https://pypi.python.org/pypi/autopep8/ > Vcs-Git: https://salsa.debian.org/python-team/modules/autopep8.git > Vcs-Browser: https://salsa.debian.org/python-team/modules/autopep8 > +X-Python-Version: >= 2.7 > +X-Python3-Version: >= 3.5 > > Package: python-autopep8 > Architecture: all > -Depends: ${misc:Depends}, ${python:Depends}, python-pep8, > python-pkg-resources > +Depends: ${misc:Depends}, ${python:Depends}, python-pep8, > + python-pkg-resources > Description: tool that automatically formats Python code to conform to PEP 8 > autopep8 automatically formats Python code to conform to the PEP 8 style > guide. It uses the pep8 utility to determine what parts of the code needs to > be formatted. autopep8 is capable of fixing most of the formatting issues > that > - can be reported by pep8. > + can be reported by pep8. This package is for Python2. > + > +Package: python3-autopep8 > +Architecture: all > +# the recommends is to get /usr/bin/autopep8 > +Recommends: python-autopep8 > +Depends: ${misc:Depends}, ${python3:Depends}, python3-pep8, > + python3-pkg-resources > +Description: tool that automatically formats Python code to conform to PEP 8 > + autopep8 automatically formats Python code to conform to the PEP 8 style > + guide. It uses the pep8 utility to determine what parts of the code needs to > + be formatted. autopep8 is capable of fixing most of the formatting issues > that > + can be reported by pep8. This package is for Python3. > > diff --git a/debian/rules b/debian/rules > index 1e3f4e6..3ffb067 100755 > --- a/debian/rules > +++ b/debian/rules > @@ -2,16 +2,26 @@ > VERSION = $(shell dpkg-parsechangelog | sed -rne "s,^Version: > ([0-9.]+)(~|-)(.*),\1,p") > > %: > - dh $@ --with python2 --buildsystem=python_distutils > + dh $@ --with python2 --with python3 --buildsystem=python_distutils > > override_dh_installdocs: > help2man --name=autopep8 --version-string=$(VERSION) "python > autopep8.py" > debian/autopep8.1 > dh_installdocs > > +override_dh_auto_build: > + python setup.py build --force > + python3 setup.py build --force > + > +override_dh_auto_install: > + python setup.py install --force --root=$(CURDIR)/debian/python-autopep8 > --no-compile -O0 --install-layout=deb > + python3 setup.py install --force > --root=$(CURDIR)/debian/python3-autopep8 --no-compile -O0 --install-layout=deb > + rm -rf $(CURDIR)/debian/python3-autopep8/usr/bin > + > #override_dh_auto_test: > # make test > # dh_auto_test > > override_dh_clean: > rm -f debian/*.1 > + rm -rf build > dh_clean > -----------------------8<------------------------------------------- > > Best regards, Georges. >
signature.asc
Description: OpenPGP digital signature