diff --git a/debian/control b/debian/control index 8cd76440bd085d05b7fd079238683d12ac94ee0e..f7f009c6622cc5199b32bd5f7ecb2ce9d18864ff 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 0e957dc255d7c59776d8104f7fcbb405471cce69..8dd8847c9975d99dabae1ec8ddce6f6db7bd8ef5 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