diff -u pylint-1.3.1/debian/changelog pylint-1.3.1/debian/changelog --- pylint-1.3.1/debian/changelog +++ pylint-1.3.1/debian/changelog @@ -1,3 +1,11 @@ +pylint (1.3.1-3ubuntu1) vivid; urgency=low + + * Merge from Debian unstable. (LP: #1433789) Remaining changes: + - debian/control, debian/pylint3.*, debian/rules: + + Add pylint3 package to support Python 3 (Closes: #606165) + + -- Artur Rona Wed, 18 Mar 2015 21:43:33 +0100 + pylint (1.3.1-3) unstable; urgency=medium * debian/patches/f4dcd0bd455451e3f358f7171990317b10436055.patch @@ -6,6 +14,12 @@ -- Sandro Tosi Sat, 28 Feb 2015 20:44:14 +0000 +pylint (1.3.1-2ubuntu1) vivid; urgency=medium + + * Add pylint3 package to support Python 3 (Closes: #606165, LP: #1378540) + + -- Benjamin Drung Tue, 23 Dec 2014 14:20:10 +0100 + pylint (1.3.1-2) unstable; urgency=medium * debian/patches/5733254372edb1df9f72f72c6733608405a99a40.patch diff -u pylint-1.3.1/debian/control pylint-1.3.1/debian/control --- pylint-1.3.1/debian/control +++ pylint-1.3.1/debian/control @@ -1,10 +1,11 @@ Source: pylint Section: python Priority: optional -Maintainer: Sandro Tosi +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Sandro Tosi Uploaders: Python Applications Packaging Team -Build-Depends: debhelper (>= 9), python (>= 2.6.6-3~), dh-python, quilt -Build-Depends-Indep: python-logilab-common (>= 0.53.0), python-astroid (>= 1.2.1), python-unittest2 +Build-Depends: debhelper (>= 9), python (>= 2.6.6-3~), dh-python, quilt, python3 (>= 3.3.2-17) +Build-Depends-Indep: python-logilab-common (>= 0.53.0), python3-logilab-common (>= 0.53.0), python-astroid (>= 1.2.1), python3-astroid (>= 1.2.1), python-unittest2 Standards-Version: 3.9.6 XS-Python-Version: >= 2.6 Homepage: http://www.pylint.org/ @@ -37,0 +39,25 @@ + +Package: pylint3 +Architecture: all +Depends: ${python3:Depends}, ${misc:Depends}, python3-logilab-common (>= 0.53.0), python3-astroid (>= 1.2.1) +Recommends: python3-tk +Description: Python 3 code static checker and UML diagram generator + Pylint is a Python source code analyzer which looks for programming + errors, helps enforcing a coding standard and sniffs for some code + smells (as defined in Martin Fowler's Refactoring book) + . + Pylint can be seen as another PyChecker since nearly all tests you + can do with PyChecker can also be done with Pylint. However, Pylint + offers some more features, like checking length of lines of code, + checking if variable names are well-formed according to your coding + standard, or checking if declared interfaces are truly implemented, + and much more. + . + Additionally, it is possible to write plugins to add your own checks. + . + The package also ships the following additional commands: + . + * pyreverse3: an UML diagram generator + * symilar3: an independent similarities checker + * epylint3: Emacs and Flymake compatible Pylint + * pylint-gui3: a graphical interface (reason for python3-tk recommends) diff -u pylint-1.3.1/debian/rules pylint-1.3.1/debian/rules --- pylint-1.3.1/debian/rules +++ pylint-1.3.1/debian/rules @@ -3,39 +3,71 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -PYVERS := $(shell pyversions -s -v) +PYVERS2 := $(shell pyversions -s -v) +PYVERS3 := $(shell py3versions -s -v) +PYTHON2 := $(shell pyversions -s) +PYTHON3 := $(shell py3versions -s) %: - dh $@ --with python2,quilt + dh $@ --with python2,python3,quilt override_dh_auto_build: dh_auto_build - NO_SETUPTOOLS=1 python setup.py -q build + set -e; \ + for python in $(PYTHON2) $(PYTHON3) ; do \ + NO_SETUPTOOLS=1 $$python setup.py build ; \ + done override_dh_auto_test: ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) # use the default python version to select the script dir to run the tests - -/bin/sh ./test/fulltest.sh $(PYVERS) + -/bin/sh ./test/fulltest.sh $(PYVERS2) + -/bin/sh ./test/fulltest.sh $(PYVERS3) endif +override_dh_auto_clean: + NO_SETUPTOOLS=1 python setup.py clean + NO_SETUPTOOLS=1 python3 setup.py clean + + find . -name "*.pyc" -delete + + rm -rf build + dh_clean override_dh_auto_install: NO_SETUPTOOLS=1 python setup.py -q install --no-compile \ --root=$(CURDIR)/debian/pylint \ --install-layout=deb + NO_SETUPTOOLS=1 python3 setup.py -q install --no-compile \ + --root=$(CURDIR)/debian/pylint3 \ + --install-layout=deb rm -rf debian/pylint/usr/lib/python*/*-packages/pylint/test + rm -rf debian/pylint3/usr/lib/python*/*-packages/pylint/test # fixes shebangs - for exec in pylint pylint-gui symilar ; do \ + for exec in pylint pylint-gui symilar epylint pyreverse ; do \ if head -1 debian/pylint/usr/bin/$$exec | grep "^#! */usr/bin" | grep "python" >/dev/null ; then \ sed -i "s@^#! */usr/bin/env \+python\$$@#!/usr/bin/python@" debian/pylint/usr/bin/$$exec; \ fi ; \ chmod a+x debian/pylint/usr/bin/$$exec; \ done + for exec in pylint pylint-gui symilar epylint pyreverse ; do \ + if head -1 debian/pylint3/usr/bin/$$exec | grep "^#! */usr/bin" | grep "python" >/dev/null ; then \ + sed -i "s@^#! */usr/bin/env \+python$(PYVERS3)\$$@#!/usr/bin/python3@" debian/pylint3/usr/bin/$$exec; \ + fi ; \ + chmod a+x debian/pylint3/usr/bin/$$exec; \ + mv debian/pylint3/usr/bin/$$exec debian/pylint3/usr/bin/$${exec}3 ; \ + done install -m 644 elisp/pylint.el debian/pylint/usr/share/emacs/site-lisp/pylint/ +override_dh_installman: + dh_installman + for exec in pylint pylint-gui symilar epylint pyreverse ; do \ + mv debian/pylint3/usr/share/man/man1/$$exec.1 debian/pylint3/usr/share/man/man1/$${exec}3.1 ; \ + done + override_dh_installchangelogs: dh_installchangelogs -i ChangeLog only in patch2: unchanged: --- pylint-1.3.1.orig/debian/pylint3.docs +++ pylint-1.3.1/debian/pylint3.docs @@ -0,0 +1,2 @@ +#doc/* +README only in patch2: unchanged: --- pylint-1.3.1.orig/debian/pylint3.examples +++ pylint-1.3.1/debian/pylint3.examples @@ -0,0 +1 @@ +examples/* only in patch2: unchanged: --- pylint-1.3.1.orig/debian/pylint3.manpages +++ pylint-1.3.1/debian/pylint3.manpages @@ -0,0 +1 @@ +man/*.1