[Python-modules-commits] [python-netaddr] 01/02: Replace manual use of localedef by localehelper package

Vincent Bernat bernat at moszumanska.debian.org
Sat Sep 10 12:19:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

bernat pushed a commit to branch master
in repository python-netaddr.

commit fbe03c704a5516d314935eae15be37088ab05430
Author: Vincent Bernat <vincent at bernat.im>
Date:   Sat Sep 10 14:08:26 2016 +0200

    Replace manual use of localedef by localehelper package
---
 debian/changelog | 7 ++++++-
 debian/control   | 2 +-
 debian/rules     | 7 +------
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b2233c9..641d3ae 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,13 @@
 python-netaddr (0.7.18-2) UNRELEASED; urgency=medium
 
+  [ Ondřej Nový ]
   * Fixed VCS URL (https)
 
- -- Ondřej Nový <novy at ondrej.org>  Tue, 29 Mar 2016 22:12:17 +0200
+  [ Vincent Bernat ]
+  * Replace manual use of localedef by localehelper package. Should also
+    closes: #814696.
+
+ -- Vincent Bernat <bernat at debian.org>  Sat, 10 Sep 2016 14:07:34 +0200
 
 python-netaddr (0.7.18-1) unstable; urgency=medium
 
diff --git a/debian/control b/debian/control
index 9e4ae12..596d34b 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,7 @@ Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.o
 Standards-Version: 3.9.6
 Build-Depends: debhelper (>= 9),
                ieee-data,
-               locales,
+               localehelper,
                python (>= 2.6.5),
                python-pytest,
                python-setuptools (>= 0.6b3),
diff --git a/debian/rules b/debian/rules
index b618b9e..76861f6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -30,11 +30,6 @@ dh_link/python-netaddr dh_link/python3-netaddr:
 
 # Tests
 override_dh_auto_test:
-	mkdir -p $(CURDIR)/tmp-locales
-	localedef -i /usr/share/i18n/locales/en_US -c -f UTF-8 \
-		-A /usr/share/locale/locale.alias \
-		$(CURDIR)/tmp-locales/en_US.UTF-8
-	LOCPATH=$(CURDIR)/tmp-locales LC_ALL=en_US.UTF-8 \
-		dh_auto_test -- \
+	localehelper LANG=en_US.UTF-8 dh_auto_test -- \
 		--system=custom \
 		--test-args='{interpreter} -c "import py; py.test.cmdline.main()"'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-netaddr.git



More information about the Python-modules-commits mailing list