[Python-modules-commits] [python-tenacity] 10/13: debian/rules setup for pybuild

Ondrej Koblizek kobla-guest at moszumanska.debian.org
Sat Aug 5 19:27:57 UTC 2017


This is an automated email from the git hooks/post-receive script.

kobla-guest pushed a commit to branch master
in repository python-tenacity.

commit 44ac78b57c514198624418db7037f829071251d8
Author: Ondřej Kobližek <ondrej.koblizek at firma.seznam.cz>
Date:   Sat Aug 5 10:43:33 2017 -0400

    debian/rules setup for pybuild
---
 debian/changelog |  1 +
 debian/compat    |  2 +-
 debian/rules     | 33 ++++++---------------------------
 3 files changed, 8 insertions(+), 28 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index fd6bd46..7742e6f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ python-tenacity (3.1.1-2) UNRELEASED; urgency=medium
   * control/Maintainer to DPMT 
   * control/Uploaders add me and Ondřej Nový
   * control/Build-Depends updated
+  * debian/rules setup for pybuild
 
  -- Ondřej Kobližek <koblizeko at gmail.com>  Fri, 04 Aug 2017 18:54:59 -0400
 
diff --git a/debian/compat b/debian/compat
index ec63514..f599e28 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-9
+10
diff --git a/debian/rules b/debian/rules
index 44ab909..d20be4e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,38 +1,17 @@
 #!/usr/bin/make -f
+include /usr/share/dpkg/pkg-info.mk
 
-UPSTREAM_GIT := https://github.com/jd/tenacity
-include /usr/share/openstack-pkg-tools/pkgos.make
+export OSLO_PACKAGE_VERSION=$(DEB_VERSION_UPSTREAM)
+export PYBUILD_NAME = tenacity
 
 %:
-	dh $@ --buildsystem=python_distutils --with python2,python3,sphinxdoc
-
-override_dh_auto_install:
-	pkgos-dh_auto_install
-
-override_dh_auto_test:
-ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
-	set -e ; for pyvers in $(PYTHONS) $(PYTHON3S); do \
-		python$$pyvers setup.py nosetests ; \
-	done
-endif
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
+#override_dh_installchangelogs:
+#	dh_installchangelogs $(CURDIR)/debian/CHANGELOG
 
 override_dh_sphinxdoc:
 ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
 	sphinx-build -b html doc/source debian/python-tenacity-doc/usr/share/doc/python-tenacity-doc/html
 	dh_sphinxdoc -O--buildsystem=python_distutils
 endif
-
-override_dh_clean:
-	dh_clean -O--buildsystem=python_distutils
-	rm -rf build
-
-# Commands not to run
-override_dh_installcatalogs:
-override_dh_installemacsen override_dh_installifupdown:
-override_dh_installinfo override_dh_installmenu override_dh_installmime:
-override_dh_installmodules override_dh_installlogcheck:
-override_dh_installpam override_dh_installppp override_dh_installudev override_dh_installwm:
-override_dh_installxfonts override_dh_gconf override_dh_icons override_dh_perl override_dh_usrlocal:
-override_dh_installcron override_dh_installdebconf:
-override_dh_installlogrotate override_dh_installgsettings:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-tenacity.git



More information about the Python-modules-commits mailing list