[Python-modules-commits] r30260 - in packages/python-gflags/trunk/debian (3 files)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Tue Aug 26 22:04:09 UTC 2014


    Date: Tuesday, August 26, 2014 @ 22:04:08
  Author: piotr
Revision: 30260

* New upstream release
  - python2.7-testsuite.patch no longer needed (fixed upstream)
* Update debian/rules to use files from new tests directory
* Hardcode python_distutils buildsystem as upstream added Makefile
  (which doesn't have anything useful for us) and dh uses that instead of
  setup.py
* Remove egg-info and build directories and pyc files in clean target

Modified:
  packages/python-gflags/trunk/debian/changelog
  packages/python-gflags/trunk/debian/rules
Deleted:
  packages/python-gflags/trunk/debian/patches/

Modified: packages/python-gflags/trunk/debian/changelog
===================================================================
--- packages/python-gflags/trunk/debian/changelog	2014-08-26 21:12:37 UTC (rev 30259)
+++ packages/python-gflags/trunk/debian/changelog	2014-08-26 22:04:08 UTC (rev 30260)
@@ -1,9 +1,21 @@
-python-gflags (1.5.1-2) UNRELEASED; urgency=low
+python-gflags (2.0-1) UNRELEASED; urgency=low
 
+  * Team upload.
+
+  [ Jakub Wilk ]
   * Use canonical URIs for Vcs-* fields.
 
- -- Jakub Wilk <jwilk at debian.org>  Sun, 05 May 2013 16:02:41 +0200
+  [ Piotr Ożarowski ]
+  * New upstream release
+    - python2.7-testsuite.patch no longer needed (fixed upstream)
+  * Update debian/rules to use files from new tests directory
+  * Hardcode python_distutils buildsystem as upstream added Makefile
+    (which doesn't have anything useful for us) and dh uses that instead of
+    setup.py
+  * Remove egg-info and build directories and pyc files in clean target
 
+ -- Piotr Ożarowski <piotr at debian.org>  Tue, 26 Aug 2014 14:33:46 -0700
+
 python-gflags (1.5.1-1) unstable; urgency=low
 
   * New upstream release

Modified: packages/python-gflags/trunk/debian/rules
===================================================================
--- packages/python-gflags/trunk/debian/rules	2014-08-26 21:12:37 UTC (rev 30259)
+++ packages/python-gflags/trunk/debian/rules	2014-08-26 22:04:08 UTC (rev 30260)
@@ -1,14 +1,22 @@
 #!/usr/bin/make -f
 
 %:
-	dh $@ --with python2
+	dh $@ --with python2 --buildsystem=python_distutils
 
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-	set -e ; for pyversion in $(shell pyversions -r); do $$pyversion gflags_unittest.py; done
+	set -e;\
+	  for pyversion in $(shell pyversions -r); do \
+	    for test in tests/*.py; do \
+	      env PYTHONPATH=$(CURDIR) \
+	      $$pyversion $$test; done; done
 endif
 
 override_dh_auto_install:
 	dh_auto_install
 	mv $(CURDIR)/debian/python-gflags/usr/bin/gflags2man.py $(CURDIR)/debian/python-gflags/usr/bin/gflags2man
 	PYTHONPATH=$(CURDIR) python gflags2man.py --dest_dir $(CURDIR) $(CURDIR)/debian/python-gflags/usr/bin/gflags2man
+
+override_dh_auto_clean:
+	rm -rf $(CURDIR)/build $(CURDIR)/python_gflags.egg-info
+	find $(CURDIR) -name '*.pyc' -delete




More information about the Python-modules-commits mailing list