[Python-modules-commits] [python-django-extensions] 06/07: Rebuild all django.mo files from source using python-babel.

Michael Fladischer fladi at moszumanska.debian.org
Thu May 19 09:47:44 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-extensions.

commit 2d3ca0d115639af3639adc32ea4f826d7334f21b
Author: Michael Fladischer <fladi at debian.org>
Date:   Thu May 19 11:39:15 2016 +0200

    Rebuild all django.mo files from source using python-babel.
---
 debian/changelog | 1 +
 debian/clean     | 1 +
 debian/control   | 1 +
 debian/rules     | 4 ++++
 4 files changed, 7 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 4ae6e00..9767ca6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ python-django-extensions (1.6.7-2) UNRELEASED; urgency=low
     prevent privacy breach.
   * Ship and use local screenshot images for documentation to replace
     the ones hosted on github.
+  * Rebuild all django.mo files from source using python-babel.
 
  -- Michael Fladischer <fladi at debian.org>  Thu, 19 May 2016 11:03:05 +0200
 
diff --git a/debian/clean b/debian/clean
index 95ca981..cb490d8 100644
--- a/debian/clean
+++ b/debian/clean
@@ -4,3 +4,4 @@ django_extensions.egg-info/SOURCES.txt
 django_extensions.egg-info/dependency_links.txt
 django_extensions.egg-info/requires.txt
 django_extensions.egg-info/top_level.txt
+django_extensions/locale/*/LC_MESSAGES/django.mo
diff --git a/debian/control b/debian/control
index 560b94b..5139112 100644
--- a/debian/control
+++ b/debian/control
@@ -6,6 +6,7 @@ Priority: optional
 Build-Depends: debhelper (>= 9),
                dh-python,
                python-all,
+               python-babel,
                python-dateutil,
                python-django,
                python-keyczar,
diff --git a/debian/rules b/debian/rules
index c97a882..47fae85 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,6 +21,10 @@ override_dh_auto_test:
 	dh_auto_test -- --system=custom --test-args="{interpreter} -m pytest --ds=tests.testapp.settings --cov=django_extensions"
 
 override_dh_auto_build:
+	set -e; \
+	for loc in django_extensions/locale/*; do \
+		python setup.py compile_catalog --directory django_extensions/locale/ --locale $$(basename $$loc) --domain django; \
+	done
 	mkdir docs/images
 	ln debian/images/* docs/images
 	PYTHONPATH=. sphinx-build -b html -d docs/.build/.doctrees -N docs docs/.build/html

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



More information about the Python-modules-commits mailing list