[Python-modules-commits] [myghtyutils] 03/04: modernize packaging: short dh format, dh compat 9, dh-python. Closes: #785998
Mattia Rizzolo
mattia at mapreri.org
Sun Dec 13 19:23:40 UTC 2015
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository myghtyutils.
commit 9cc796a6bd8db70aba928eca0dfcdcd0a4c52dcb
Author: Mattia Rizzolo <mattia at debian.org>
Date: Sun Dec 13 19:20:50 2015 +0000
modernize packaging: short dh format, dh compat 9, dh-python. Closes: #785998
also bump Standards-Version to 3.9.6.
---
debian/compat | 2 +-
debian/control | 10 ++++------
debian/rules | 61 +++-------------------------------------------------------
3 files changed, 8 insertions(+), 65 deletions(-)
diff --git a/debian/compat b/debian/compat
index 7ed6ff8..ec63514 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-5
+9
diff --git a/debian/control b/debian/control
index 8836cf6..9090d0f 100644
--- a/debian/control
+++ b/debian/control
@@ -3,18 +3,16 @@ Section: python
Priority: optional
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Uploaders: Oleksandr Moskalenko <malex at debian.org>
-Build-Depends: debhelper (>= 5)
-Build-Depends-Indep: python-all, python-support (>= 0.6.4), python-setuptools (>= 0.6b3-1~)
-Standards-Version: 3.8.4
-XS-Python-Version: all
+Build-Depends: debhelper (>= 9)
+Build-Depends-Indep: python-all, dh-python, python-setuptools (>= 0.6b3-1~)
+Standards-Version: 3.9.6
Vcs-Git: git://anonscm.debian.org/python-modules/packages/myghtyutils.git
Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/myghtyutils.git
Homepage: http://www.myghty.org/
Package: python-myghtyutils
Architecture: all
-Depends: ${python:Depends}, python, ${misc:Depends}
-XB-Python-Version: ${python:Versions}
+Depends: ${python:Depends}, ${misc:Depends}
Enhances: python-myghty
Description: Set of utility classes used by Myghty templating
Utility classes used by Myghty templating:
diff --git a/debian/rules b/debian/rules
index 4ec3521..d272b6d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,60 +1,5 @@
#!/usr/bin/make -f
-# -*- makefile -*-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-package=python-myghtyutils
-PYVERS=$(shell pyversions -vr)
+export DH_VERBOSE=1
--include /usr/share/python/python.mk
-ifeq (,$(py_libdir))
- py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages
- endif
-
-clean:
- rm -f build-*
- dh_testdir
- dh_testroot
- rm -rf build
- find . -name *\.py[co] -exec rm -f {} \;
- dh_clean
-
-build: build-indep
-
-build-indep:
- touch $@
-
-build-stamp:
- dh_testdir
- python setup.py build
- touch $@
-
-install: $(PYVERS:%=install-python%)
-install-python%:
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
- python$* setup.py install \
- --no-compile $(py_setup_install_args) \
- --single-version-externally-managed \
- --root $(CURDIR)/debian/$(package)
-
-binary-indep: build install
- dh_testdir
- dh_testroot
- dh_installdirs
- dh_installchangelogs
- dh_installdocs
- dh_installexamples
- dh_pysupport
- dh_compress -X.py
- dh_fixperms
- dh_installdeb
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary-arch:
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+%:
+ dh $@ --with python2
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/myghtyutils.git
More information about the Python-modules-commits
mailing list