[Python-modules-commits] r29014 - in packages/python-repoze.what/trunk/debian (3 files)

zigo at users.alioth.debian.org zigo at users.alioth.debian.org
Thu May 22 01:17:28 UTC 2014


    Date: Thursday, May 22, 2014 @ 01:17:27
  Author: zigo
Revision: 29014

Switch away from CDBS and now using dh short style.

Modified:
  packages/python-repoze.what/trunk/debian/changelog
  packages/python-repoze.what/trunk/debian/control
  packages/python-repoze.what/trunk/debian/rules

Modified: packages/python-repoze.what/trunk/debian/changelog
===================================================================
--- packages/python-repoze.what/trunk/debian/changelog	2014-05-22 01:17:23 UTC (rev 29013)
+++ packages/python-repoze.what/trunk/debian/changelog	2014-05-22 01:17:27 UTC (rev 29014)
@@ -2,6 +2,7 @@
 
   * Using cannonical VCS URLs.
   * Ran wrap-and-sort.
+  * Switch away from CDBS, and now uses dh short style.
 
  -- Thomas Goirand <zigo at debian.org>  Wed, 21 May 2014 23:09:11 +0000
 

Modified: packages/python-repoze.what/trunk/debian/control
===================================================================
--- packages/python-repoze.what/trunk/debian/control	2014-05-22 01:17:23 UTC (rev 29013)
+++ packages/python-repoze.what/trunk/debian/control	2014-05-22 01:17:27 UTC (rev 29014)
@@ -2,10 +2,9 @@
 Section: python
 Priority: optional
 Maintainer: Debian QA Group <packages at qa.debian.org>
-Build-Depends: cdbs (>= 0.4.90~),
-               debhelper (>= 9),
+Build-Depends: debhelper (>= 9),
                dh-python,
-               python,
+               python-all,
                python-coverage,
                python-nose,
                python-paste,

Modified: packages/python-repoze.what/trunk/debian/rules
===================================================================
--- packages/python-repoze.what/trunk/debian/rules	2014-05-22 01:17:23 UTC (rev 29013)
+++ packages/python-repoze.what/trunk/debian/rules	2014-05-22 01:17:27 UTC (rev 29014)
@@ -1,12 +1,23 @@
 #!/usr/bin/make -f
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/python-distutils.mk
 
-PKG = python-repoze.what
-DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed
-DEB_COMPRESS_EXCLUDE += .js
+PYTHONS:=$(shell pyversions -vr)
 
-build/$(PKG)::
-	$(MAKE) -C docs/ html
-cleanbuilddir/$(PKG)::
-	$(MAKE) -C docs/ clean
+%:
+	dh $@ --buildsystem=python_distutils --with python2,sphinxdoc
+
+override_dh_auto_install:
+	set -e && for pyvers in $(PYTHONS); do \
+		python$$pyvers setup.py install --install-layout=deb \
+			--single-version-externally-managed --root $(CURDIR)/debian/python-repoze.what; \
+	done
+
+override_dh_sphinxdoc:
+ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
+	sphinx-build -b html docs/source $(CURDIR)/debian/python-repoze.what/usr/share/doc/python-repoze.what/html
+	dh_sphinxdoc -O--buildsystem=python_distutils
+endif
+
+override_dh_auto_test:
+ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
+	nosetests
+endif




More information about the Python-modules-commits mailing list