[Python-modules-commits] r22246 - in packages/authres/trunk/debian (4 files)

kitterman at users.alioth.debian.org kitterman at users.alioth.debian.org
Sat Jun 23 06:07:00 UTC 2012


    Date: Saturday, June 23, 2012 @ 06:06:54
  Author: kitterman
Revision: 22246

* New upstream release
  - Drop installation of authres/tests with debian/rules since setup.py is
    fixed to do it now
* Explicitly run tests at build time (is used to be implicitly via byte
  compilation) and support nocheck option
* Completely remove build directory in clean

Modified:
  packages/authres/trunk/debian/changelog
  packages/authres/trunk/debian/rules
Deleted:
  packages/authres/trunk/debian/python-authres.install
  packages/authres/trunk/debian/python3-authres.install

Modified: packages/authres/trunk/debian/changelog
===================================================================
--- packages/authres/trunk/debian/changelog	2012-06-22 12:06:53 UTC (rev 22245)
+++ packages/authres/trunk/debian/changelog	2012-06-23 06:06:54 UTC (rev 22246)
@@ -1,3 +1,14 @@
+authres (0.402-1) unstable; urgency=low
+
+  * New upstream release
+    - Drop installation of authres/tests with debian/rules since setup.py is
+      fixed to do it now
+  * Explicitly run tests at build time (is used to be implicitly via byte
+    compilation) and support nocheck option
+  * Completely remove build directory in clean
+
+ -- Scott Kitterman <scott at kitterman.com>  Sat, 23 Jun 2012 01:22:43 -0400
+
 authres (0.401-2) unstable; urgency=low
 
   * Install authres/tests so doctests work with installed pacakges

Deleted: packages/authres/trunk/debian/python-authres.install
===================================================================
--- packages/authres/trunk/debian/python-authres.install	2012-06-22 12:06:53 UTC (rev 22245)
+++ packages/authres/trunk/debian/python-authres.install	2012-06-23 06:06:54 UTC (rev 22246)
@@ -1 +0,0 @@
-authres/tests usr/share/pyshared/authres

Deleted: packages/authres/trunk/debian/python3-authres.install
===================================================================
--- packages/authres/trunk/debian/python3-authres.install	2012-06-22 12:06:53 UTC (rev 22245)
+++ packages/authres/trunk/debian/python3-authres.install	2012-06-23 06:06:54 UTC (rev 22246)
@@ -1 +0,0 @@
-authres/tests /usr/lib/python3/dist-packages/authres

Modified: packages/authres/trunk/debian/rules
===================================================================
--- packages/authres/trunk/debian/rules	2012-06-22 12:06:53 UTC (rev 22245)
+++ packages/authres/trunk/debian/rules	2012-06-23 06:06:54 UTC (rev 22246)
@@ -6,16 +6,29 @@
 
 override_dh_auto_install:
 	dh_install
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 	set -e && for pyvers in $(shell pyversions -vr); do \
 		python$$pyvers setup.py install --install-layout=deb \
 			--root $(CURDIR)/debian/python-authres; \
-		ln $(CURDIR)/debian/python-authres/usr/share/pyshared/authres/tests \
-			$(CURDIR)/debian/python-authres/usr/lib/python$$pyvers/dist-packages/authres/tests; \
+		cd $(CURDIR)/debian/python-authres/usr/lib/python$$pyvers/dist-packages; \
+		python$$pyvers -m authres.__main__; cd $(CURDIR); \
 	done
 	set -e && for pyvers in $(shell py3versions -vr); do \
 		python$$pyvers setup.py install --install-layout=deb \
 			--root $(CURDIR)/debian/python3-authres; \
+		cd $(CURDIR)/debian/python3-authres/usr/lib/python3/dist-packages; \
+		python$$pyvers -m authres.__main__; cd $(CURDIR); \
 	done
+else
+	set -e && for pyvers in $(shell pyversions -vr); do \
+		python$$pyvers setup.py install --install-layout=deb \
+			--root $(CURDIR)/debian/python-authres; \
+	done
+	set -e && for pyvers in $(shell py3versions -vr); do \
+		python$$pyvers setup.py install --install-layout=deb \
+			--root $(CURDIR)/debian/python3-authres; \
+	done
+endif
 
 override_dh_auto_clean:
 	set -e && for pyvers in $(shell pyversions -vr); do \
@@ -24,4 +37,5 @@
 	set -e && for pyvers in $(shell py3versions -vr); do \
 		python$$pyvers setup.py clean -a; \
 	done
+	rm -rf build
 	dh_clean




More information about the Python-modules-commits mailing list