From 54343cf0db7fc79db2bc5cc9ba0c0ab8cc3e2d02 Mon Sep 17 00:00:00 2001 From: Filip Pytloun <filip@pytloun.cz> Date: Tue, 9 Aug 2016 12:22:59 +0200 Subject: [PATCH] Fix python3 tests --- debian/control | 1 + debian/rules | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/debian/control b/debian/control index 8cd7644..f7f009c 100644 --- a/debian/control +++ b/debian/control @@ -5,6 +5,7 @@ Section: python Priority: optional Build-Depends: debhelper (>= 9), dh-python (>= 2.20160609~), + locales, python-all, python-click, python-pytest, diff --git a/debian/rules b/debian/rules index 0e957dc..8dd8847 100755 --- a/debian/rules +++ b/debian/rules @@ -11,3 +11,10 @@ ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) PYTHONPATH=. sphinx-build -b html docs $(CURDIR)/debian/python-click-log-doc/usr/share/doc/python-click-log-doc/html dh_sphinxdoc -O--buildsystem=python_distutils endif + +override_dh_auto_test: + mkdir -p debian/tmp/locale/ + localedef -f UTF-8 -i en_US ./debian/tmp/locale/en_US.UTF-8/ + export LOCPATH=$(CURDIR)/debian/tmp/locale/ && \ + export LC_ALL=en_US.UTF-8 && \ + dh_auto_test -- GitLab