[Python-modules-commits] r23867 - in packages/prettytable/trunk/debian (changelog control rules)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Sun Apr 7 21:12:50 UTC 2013


    Date: Sunday, April 7, 2013 @ 21:12:48
  Author: morph
Revision: 23867

* debian/{control, rules}
  - install and use UTF-8 charset, needed by test suite

Modified:
  packages/prettytable/trunk/debian/changelog
  packages/prettytable/trunk/debian/control
  packages/prettytable/trunk/debian/rules

Modified: packages/prettytable/trunk/debian/changelog
===================================================================
--- packages/prettytable/trunk/debian/changelog	2013-04-07 21:02:50 UTC (rev 23866)
+++ packages/prettytable/trunk/debian/changelog	2013-04-07 21:12:48 UTC (rev 23867)
@@ -4,8 +4,10 @@
   * debian/copyright
     - update upstream copyright information
     - extend packaging copyright years
+  * debian/{control, rules}
+    - install and use UTF-8 charset, needed by test suite
 
- -- Sandro Tosi <morph at debian.org>  Thu, 21 Feb 2013 22:59:37 +0100
+ -- Sandro Tosi <morph at debian.org>  Sun, 07 Apr 2013 23:12:18 +0200
 
 prettytable (0.6.1-1) unstable; urgency=low
 

Modified: packages/prettytable/trunk/debian/control
===================================================================
--- packages/prettytable/trunk/debian/control	2013-04-07 21:02:50 UTC (rev 23866)
+++ packages/prettytable/trunk/debian/control	2013-04-07 21:12:48 UTC (rev 23867)
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Sandro Tosi <morph at debian.org>
-Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.6.6-3~), python3-all (>= 3.1.3-3), python-setuptools, python3-setuptools
+Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.6.6-3~), python3-all (>= 3.1.3-3), python-setuptools, python3-setuptools, locales
 Build-Depends-Indep: python-support (>= 1.0.0)
 Standards-Version: 3.9.3
 Homepage: http://code.google.com/p/prettytable/

Modified: packages/prettytable/trunk/debian/rules
===================================================================
--- packages/prettytable/trunk/debian/rules	2013-04-07 21:02:50 UTC (rev 23866)
+++ packages/prettytable/trunk/debian/rules	2013-04-07 21:12:48 UTC (rev 23867)
@@ -5,6 +5,11 @@
 PY2VERS := $(shell pyversions -s)
 PY3VERS := $(shell py3versions -s)
 
+# For running tests, we need UTF-8 charset
+LOCALE_PATH	:= debian/tmpdir/usr/lib/locale
+LOCALE_NAME	:= en_US
+LOCALE_CHARSET	:= UTF-8
+
 %:
 	dh $@ --with python3
 
@@ -31,13 +36,19 @@
 	    $$python setup.py clean -a; \
 	done
 	find . -name \*.pyc -exec rm {} \;
+	rm -rf $(LOCALE_PATH)
 	dh_clean
 
 override_dh_auto_test:
 ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+	# configure a local charset dir, for testing purposes
+	mkdir -p $(LOCALE_PATH)
+	localedef -i $(LOCALE_NAME) -c -f $(LOCALE_CHARSET) \
+		-A /usr/share/locale/locale.alias --quiet \
+		$(LOCALE_PATH)/$(LOCALE_NAME).$(LOCALE_CHARSET)
 	set -e ; \
 	for python in $(PY2VERS) $(PY3VERS); do \
-		PYTHONPATH=. $$python setup.py test ; \
+		PYTHONPATH=. LOCPATH=$(LOCALE_PATH) LC_ALL=$(LOCALE_NAME).$(LOCALE_CHARSET) $$python setup.py test ; \
 	done
 endif
 




More information about the Python-modules-commits mailing list