[Python-modules-commits] r22627 - in packages/logilab-astng/trunk/debian (3 files)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Sat Sep 1 14:01:40 UTC 2012


    Date: Saturday, September 1, 2012 @ 14:01:38
  Author: morph
Revision: 22627

* debian/{control, rules}
  - switch to dh sequencer

Modified:
  packages/logilab-astng/trunk/debian/changelog
  packages/logilab-astng/trunk/debian/control
  packages/logilab-astng/trunk/debian/rules

Modified: packages/logilab-astng/trunk/debian/changelog
===================================================================
--- packages/logilab-astng/trunk/debian/changelog	2012-08-31 21:22:26 UTC (rev 22626)
+++ packages/logilab-astng/trunk/debian/changelog	2012-09-01 14:01:38 UTC (rev 22627)
@@ -1,3 +1,10 @@
+logilab-astng (0.24.0-2) UNRELEASED; urgency=low
+
+  * debian/{control, rules}
+    - switch to dh sequencer
+
+ -- Sandro Tosi <morph at debian.org>  Sat, 01 Sep 2012 16:01:20 +0200
+
 logilab-astng (0.24.0-1) experimental; urgency=low
 
   * New upstream release

Modified: packages/logilab-astng/trunk/debian/control
===================================================================
--- packages/logilab-astng/trunk/debian/control	2012-08-31 21:22:26 UTC (rev 22626)
+++ packages/logilab-astng/trunk/debian/control	2012-09-01 14:01:38 UTC (rev 22627)
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Alexandre Fayolle <afayolle at debian.org>, Sandro Tosi <morph at debian.org>
-Build-Depends: debhelper (>= 5.0.38), python-all (>= 2.5.4-1~), python-logilab-common, python-unittest2
+Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.5.4-1~), python-logilab-common, python-unittest2
 Build-Depends-Indep: python-support
 XS-Python-Version: all
 Standards-Version: 3.9.3

Modified: packages/logilab-astng/trunk/debian/rules
===================================================================
--- packages/logilab-astng/trunk/debian/rules	2012-08-31 21:22:26 UTC (rev 22626)
+++ packages/logilab-astng/trunk/debian/rules	2012-09-01 14:01:38 UTC (rev 22627)
@@ -1,68 +1,49 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
-#
-# adapted by Logilab for automatic generation by debianize
-# (part of the devtools project, http://www.logilab.org/projects/devtools)
-#
-# Copyright (c) 2003-2005 LOGILAB S.A. (Paris, FRANCE).
-# http://www.logilab.fr/ -- mailto:contact at logilab.fr
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-PYTHONS := $(shell pyversions -s)
-PYLIBPATH := $(shell python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print b.build_platlib")
+PYTHON2 := $(shell pyversions -s)
+LIB2 := $(shell python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print b.build_platlib")
 LOGILAB_COMMON_DIR := $(shell dirname `python -c "import logilab.common as lc ; print lc.__file__" 2>/dev/null`)
 
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
-build-stamp: 
-	dh_testdir
+%:
+	dh $@
 
+override_dh_auto_build:
 	set -e; \
-	for python in $(PYTHONS) ; do \
-		NO_SETUPTOOLS=1 $$python setup.py -q build ; \
+	for python in $(PYTHON2) ; do \
+		NO_SETUPTOOLS=1 $$python setup.py build ; \
 	done
 
+override_dh_auto_test:
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 	#set -e ;\
-	for python in $(PYTHONS) ; do \
-		PYLIBPATH=$$($$python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print b.build_platlib") ;\
+	for python in $(PYTHON2) ; do \
+		LIB2=$$($$python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print b.build_platlib") ;\
 		LOGILAB_COMMON_DIR=$$(dirname `$$python -c "import logilab.common as lc ; print lc.__file__" 2>/dev/null`) ;\
 		# we need this hack because we have to initialize the namespace ;\
-		touch $(CURDIR)/$(PYLIBPATH)/logilab/__init__.py ;\
+		touch $(CURDIR)/$(LIB2)/logilab/__init__.py ;\
 		# even bigger hack: we symlink the common module in our temp build/ ;\
 		# because it has to be in the same namespace as astng ;\
-		ln -s $(LOGILAB_COMMON_DIR) $(CURDIR)/$(PYLIBPATH)/logilab/ ;\
+		ln -s $(LOGILAB_COMMON_DIR) $(CURDIR)/$(LIB2)/logilab/ ;\
 		# we can now run the test, at last... ;\
-		PYTHONPATH=$(CURDIR)/$(PYLIBPATH) $$python `which pytest` ;\
+		PYTHONPATH=$(CURDIR)/$(LIB2) $$python `which pytest` ;\
 		# and cleanup the mess ;\
-		rm -rf $(CURDIR)/$(PYLIBPATH)/logilab/__init__.py $(CURDIR)/$(PYLIBPATH)/logilab/common ;\
+		rm -rf $(CURDIR)/$(LIB2)/logilab/__init__.py $(CURDIR)/$(LIB2)/logilab/common ;\
 	done
 endif
 
-	touch build-stamp
-
-clean: 
-	dh_testdir
-	dh_testroot
-
+override_dh_auto_clean: 
 	NO_SETUPTOOLS=1 python setup.py clean
 
 	find . -name "*.pyc" -delete 
 	
 	rm -rf build
-	dh_clean build-stamp
+	dh_clean
 
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-	dh_installdirs
-
-	NO_SETUPTOOLS=1 python setup.py -q install --no-compile \
+override_dh_auto_install:
+	NO_SETUPTOOLS=1 python setup.py install --no-compile \
 		--root=$(CURDIR)/debian/python-logilab-astng/ \
 		--install-layout=deb
 
@@ -74,24 +55,11 @@
 	# install tests
 	(cd test && find . -type f -not \( -path '*/CVS/*' -or -name '*.pyc' -or -name '*.pyo' -or -name '*.egg' \) -exec install -D --mode=644 {} ../debian/python-logilab-astng/usr/share/doc/python-logilab-astng/test/{} \;)
 
-# Build architecture-independent files here.
-binary-indep: build install
-	dh_testdir 
-	dh_testroot 
-	dh_install -i
-	dh_pysupport -i 
+override_dh_installchangelogs:
 	dh_installchangelogs -i ChangeLog
-	dh_installexamples -i
+
+override_dh_installdocs:
 	dh_installdocs -i README
-	dh_compress -i -X.py -X.ini -X.xml -Xtest
-	dh_fixperms -i
-	dh_installdeb -i
-	dh_gencontrol -i 
-	dh_md5sums -i
-	dh_builddeb -i
 
-binary-arch:
-
-binary: binary-indep
-.PHONY: build clean binary binary-indep binary-arch
-
+override_dh_compress:
+	dh_compress -i -X.py -X.ini -X.xml -Xtest




More information about the Python-modules-commits mailing list