[Python-modules-commits] [python-django-treebeard] 09/11: Rebuild all django.mo and djangojs.mo files from source using python3-babel.

Michael Fladischer fladi at moszumanska.debian.org
Tue Nov 29 09:31:38 UTC 2016


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

fladi pushed a commit to branch master
in repository python-django-treebeard.

commit 040de203f253bcfa60e67d645bed974acbbc727b
Author: Michael Fladischer <fladi at debian.org>
Date:   Mon Nov 28 20:00:10 2016 +0100

    Rebuild all django.mo and djangojs.mo files from source using
    python3-babel.
---
 debian/changelog |  2 ++
 debian/clean     |  2 ++
 debian/control   |  1 +
 debian/rules     | 10 +++++++++-
 4 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 7ca269b..dbc855e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ python-django-treebeard (4.1.0+dfsg-1) UNRELEASED; urgency=low
 
   * New upstream release.
   * Use python3-sphinx to build documentation.
+  * Rebuild all django.mo and djangojs.mo files from source using
+    python3-babel.
 
  -- Michael Fladischer <fladi at debian.org>  Mon, 28 Nov 2016 13:27:45 +0100
 
diff --git a/debian/clean b/debian/clean
index 4c564a9..4d33a97 100644
--- a/debian/clean
+++ b/debian/clean
@@ -1,2 +1,4 @@
 .cache/v/cache/lastfailed
 django_treebeard.egg-info/SOURCES.txt
+treebeard/locale/*/LC_MESSAGES/django.mo
+treebeard/locale/*/LC_MESSAGES/djangojs.mo
diff --git a/debian/control b/debian/control
index 379cfd6..592a5a8 100644
--- a/debian/control
+++ b/debian/control
@@ -11,6 +11,7 @@ Build-Depends-Indep: dh-python,
                      python-django,
                      python-pytest,
                      python-setuptools,
+                     python3-babel,
                      python3-django,
                      python3-pytest,
                      python3-setuptools,
diff --git a/debian/rules b/debian/rules
index 4214dbf..a7b56a4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,7 +11,15 @@ override_dh_auto_clean:
 
 override_dh_auto_build:
 	dh_auto_build
-	PYTHONPATH=. sphinx-build -b html -d docs/.build/doctrees docs docs/.build/html
+	PYTHONPATH=. sphinx-build -b html -d docs/.build/doctrees docs/source docs/.build/html
+	set -e; \
+	for loc in treebeard/locale/*; do \
+		test -r $$loc/LC_MESSAGES/django.po &&\
+			python3 setup.py compile_catalog --directory treebeard/locale/ --locale $$(basename $$loc) --domain django; \
+		test -r $$loc/LC_MESSAGES/djangojs.po &&\
+			python3 setup.py compile_catalog --directory treebeard/locale/ --locale $$(basename $$loc) --domain djangojs; \
+	done
+
 
 override_dh_auto_install:
 	dh_auto_install

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



More information about the Python-modules-commits mailing list