[Python-apps-commits] r11775 - in packages/pylint/trunk/debian (7 files)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Sat Feb 28 23:12:49 UTC 2015


    Date: Saturday, February 28, 2015 @ 23:12:37
  Author: morph
Revision: 11775

build doc at build time and provide a -doc package

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

Modified: packages/pylint/trunk/debian/changelog
===================================================================
--- packages/pylint/trunk/debian/changelog	2015-02-28 21:01:55 UTC (rev 11774)
+++ packages/pylint/trunk/debian/changelog	2015-02-28 23:12:37 UTC (rev 11775)
@@ -1,8 +1,9 @@
 pylint (1.4.1-2) UNRELEASED; urgency=medium
 
   * Provide py3k package, adapted from Ubuntu packaging; Closes: #606165
+  * build doc at build time and provide a -doc package
 
- -- Sandro Tosi <morph at debian.org>  Sat, 28 Feb 2015 20:02:35 +0000
+ -- Sandro Tosi <morph at debian.org>  Sat, 28 Feb 2015 23:11:31 +0000
 
 pylint (1.4.1-1) experimental; urgency=medium
 

Modified: packages/pylint/trunk/debian/control
===================================================================
--- packages/pylint/trunk/debian/control	2015-02-28 21:01:55 UTC (rev 11774)
+++ packages/pylint/trunk/debian/control	2015-02-28 23:12:37 UTC (rev 11775)
@@ -4,7 +4,7 @@
 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~), 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
+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, python-sphinx
 Standards-Version: 3.9.6
 XS-Python-Version: >= 2.6
 Homepage: http://www.pylint.org/
@@ -15,6 +15,7 @@
 Architecture: all
 Depends: ${python:Depends}, ${misc:Depends}, python-logilab-common (>= 0.53.0), python-astroid (>= 1.3.3), python-six
 Recommends: python-tk
+Suggests: pylint-doc
 Description: Python 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
@@ -36,10 +37,32 @@
    * epylint: Emacs and Flymake compatible Pylint
    * pylint-gui: a graphical interface (reason for python-tk recommends)
 
+Package: pylint-doc
+Section: doc
+Architecture: all
+Depends: ${sphinx:Depends}, ${misc:Depends}
+Recommends: python-tk
+Description: Python code static checker and UML diagram generator (documentation)
+ 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 contains documentation for pylint.
+
 Package: pylint3
 Architecture: all
 Depends: ${python3:Depends}, ${misc:Depends}, python3-logilab-common (>= 0.53.0), python3-astroid (>= 1.3.3)
 Recommends: python3-tk
+Suggests: pylint-doc
 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

Deleted: packages/pylint/trunk/debian/pylint.docs
===================================================================
--- packages/pylint/trunk/debian/pylint.docs	2015-02-28 21:01:55 UTC (rev 11774)
+++ packages/pylint/trunk/debian/pylint.docs	2015-02-28 23:12:37 UTC (rev 11775)
@@ -1,2 +0,0 @@
-#doc/*
-README

Deleted: packages/pylint/trunk/debian/pylint.examples
===================================================================
--- packages/pylint/trunk/debian/pylint.examples	2015-02-28 21:01:55 UTC (rev 11774)
+++ packages/pylint/trunk/debian/pylint.examples	2015-02-28 23:12:37 UTC (rev 11775)
@@ -1,2 +0,0 @@
-examples/*
-elisp/pylint.el

Deleted: packages/pylint/trunk/debian/pylint3.docs
===================================================================
--- packages/pylint/trunk/debian/pylint3.docs	2015-02-28 21:01:55 UTC (rev 11774)
+++ packages/pylint/trunk/debian/pylint3.docs	2015-02-28 23:12:37 UTC (rev 11775)
@@ -1,2 +0,0 @@
-#doc/*
-README

Deleted: packages/pylint/trunk/debian/pylint3.examples
===================================================================
--- packages/pylint/trunk/debian/pylint3.examples	2015-02-28 21:01:55 UTC (rev 11774)
+++ packages/pylint/trunk/debian/pylint3.examples	2015-02-28 23:12:37 UTC (rev 11775)
@@ -1 +0,0 @@
-examples/*

Modified: packages/pylint/trunk/debian/rules
===================================================================
--- packages/pylint/trunk/debian/rules	2015-02-28 21:01:55 UTC (rev 11774)
+++ packages/pylint/trunk/debian/rules	2015-02-28 23:12:37 UTC (rev 11775)
@@ -8,7 +8,7 @@
 PYTHON3 := $(shell py3versions -s)
 
 %:
-	dh $@ --with python2,python3
+	dh $@ --with python2,python3,sphinxdoc
 
 override_dh_auto_build:
 	dh_auto_build
@@ -16,6 +16,7 @@
 	for python in $(PYTHON2) $(PYTHON3) ; do \
 		NO_SETUPTOOLS=1 $$python setup.py build ; \
 	done
+	$(MAKE) -C doc html
 
 override_dh_auto_test:
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
@@ -63,3 +64,10 @@
 
 override_dh_compress:
 	dh_compress -i -X.py -X.ini -X.xml -Xtest
+
+override_dh_installexamples:
+	dh_installexamples -ppylint-doc examples/*
+
+override_dh_installdocs:
+	dh_installdocs -A README
+	dh_installdocs -ppylint-doc doc/_build/html




More information about the Python-apps-commits mailing list