[Python-apps-commits] r11766 - in packages/pylint/trunk/debian (6 files)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Sat Feb 28 20:03:07 UTC 2015


    Date: Saturday, February 28, 2015 @ 20:03:06
  Author: morph
Revision: 11766

Provide py3k package, adapted from Ubuntu packaging; Closes: #606165

Added:
  packages/pylint/trunk/debian/pylint3.docs
  packages/pylint/trunk/debian/pylint3.examples
Modified:
  packages/pylint/trunk/debian/changelog
  packages/pylint/trunk/debian/control
  packages/pylint/trunk/debian/rules
Deleted:
  packages/pylint/trunk/debian/pylint.manpages

Modified: packages/pylint/trunk/debian/changelog
===================================================================
--- packages/pylint/trunk/debian/changelog	2015-02-27 00:02:29 UTC (rev 11765)
+++ packages/pylint/trunk/debian/changelog	2015-02-28 20:03:06 UTC (rev 11766)
@@ -1,3 +1,9 @@
+pylint (1.4.1-2) UNRELEASED; urgency=medium
+
+  * Provide py3k package, adapted from Ubuntu packaging; Closes: #606165
+
+ -- Sandro Tosi <morph at debian.org>  Sat, 28 Feb 2015 20:02:35 +0000
+
 pylint (1.4.1-1) experimental; urgency=medium
 
   * New upstream release; Closes: #773156

Modified: packages/pylint/trunk/debian/control
===================================================================
--- packages/pylint/trunk/debian/control	2015-02-27 00:02:29 UTC (rev 11765)
+++ packages/pylint/trunk/debian/control	2015-02-28 20:03:06 UTC (rev 11766)
@@ -3,8 +3,8 @@
 Priority: optional
 Maintainer: Sandro Tosi <morph at debian.org>
 Uploaders: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 9), python (>= 2.6.6-3~), dh-python
-Build-Depends-Indep: python-logilab-common (>= 0.53.0), python-astroid (>= 1.3.3), python-unittest2, python-six
+Build-Depends: debhelper (>= 9), python (>= 2.6.6-3~), python3, dh-python
+Build-Depends-Indep: python-logilab-common (>= 0.53.0), python3-logilab-common (>= 0.53.0), python-astroid (>= 1.3.3), python3-astroid (>= 1.3.3), python-unittest2, python-six
 Standards-Version: 3.9.6
 XS-Python-Version: >= 2.6
 Homepage: http://www.pylint.org/
@@ -35,3 +35,28 @@
    * symilar: an independent similarities checker
    * epylint: Emacs and Flymake compatible Pylint
    * pylint-gui: a graphical interface (reason for python-tk recommends)
+
+Package: pylint3
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}, python3-logilab-common (>= 0.53.0), python3-astroid (>= 1.3.3)
+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 python-tk recommends)

Deleted: packages/pylint/trunk/debian/pylint.manpages
===================================================================
--- packages/pylint/trunk/debian/pylint.manpages	2015-02-27 00:02:29 UTC (rev 11765)
+++ packages/pylint/trunk/debian/pylint.manpages	2015-02-28 20:03:06 UTC (rev 11766)
@@ -1 +0,0 @@
-man/*.1

Added: packages/pylint/trunk/debian/pylint3.docs
===================================================================
--- packages/pylint/trunk/debian/pylint3.docs	                        (rev 0)
+++ packages/pylint/trunk/debian/pylint3.docs	2015-02-28 20:03:06 UTC (rev 11766)
@@ -0,0 +1,2 @@
+#doc/*
+README

Added: packages/pylint/trunk/debian/pylint3.examples
===================================================================
--- packages/pylint/trunk/debian/pylint3.examples	                        (rev 0)
+++ packages/pylint/trunk/debian/pylint3.examples	2015-02-28 20:03:06 UTC (rev 11766)
@@ -0,0 +1 @@
+examples/*

Modified: packages/pylint/trunk/debian/rules
===================================================================
--- packages/pylint/trunk/debian/rules	2015-02-27 00:02:29 UTC (rev 11765)
+++ packages/pylint/trunk/debian/rules	2015-02-28 20:03:06 UTC (rev 11766)
@@ -4,13 +4,18 @@
 #export DH_VERBOSE=1
 
 PYVERS := $(shell pyversions -s -v)
+PYTHON2 := $(shell pyversions -s)
+PYTHON3 := $(shell py3versions -s)
 
 %:
-	dh $@ --with python2
+	dh $@ --with python2,python3
 
 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)))
@@ -20,22 +25,39 @@
 
 
 override_dh_auto_install:
-	NO_SETUPTOOLS=1 python setup.py -q install --no-compile \
+	NO_SETUPTOOLS=1 $(PYTHON2) 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 \
+	  # no need to change shebang in py3k execs, they are correct \
+	  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 -ppylint  man/*.1
+	dh_installman -ppylint3 man/*.1
+	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
 




More information about the Python-apps-commits mailing list