[Debian-l10n-commits] [translate-toolkit] 05/15: Use pybuild as buildsystem
Stuart Prescott
stuart at moszumanska.debian.org
Sun Feb 23 14:02:16 UTC 2014
This is an automated email from the git hooks/post-receive script.
stuart pushed a commit to branch master
in repository translate-toolkit.
commit c3c49939ef24628a5e9adf7c984c1e4b2c2703ae
Author: Stuart Prescott <stuart at debian.org>
Date: Mon Feb 24 00:18:37 2014 +1100
Use pybuild as buildsystem
---
debian/rules | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index e7f6854..a485d23 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,14 +9,16 @@ include /usr/share/dpkg/pkg-info.mk
p = translate-toolkit
d = $(CURDIR)/debian/$(p)
+export PYTHONNOUSERSITE=false
+
%:
- dh $@ --with python2,sphinxdoc
+ dh $@ --with python2,sphinxdoc --buildsystem pybuild
man:
mkdir -p man
for script in build/scripts-*/*; do \
case $$(basename $$script) in \
- build_tmdb|build_firefox*|junitmsgfmt|pocompendium|pomigrate2|popuretext|poreencode|posplit|pocount|poglossary|pocommentclean|tmserver) \
+ buildxpi*|build_tmdb|build_firefox*|get_moz_enUS*|junitmsgfmt|po2web2py|pocompendium|pomigrate2|popuretext|poreencode|posplit|pocount|poglossary|pocommentclean|tmserver) \
;; \
*) \
LC_ALL=C PYTHONPATH=. ./$$script --manpage \
@@ -45,6 +47,7 @@ override_dh_install: man docs
$(d)/usr/lib/pyshared/translate/$$i; \
done
prename 's/.sh//' $(d)/usr/bin/build_firefox.sh
+ prename 's/.py//' $(d)/usr/bin/*.py
mkdir $(d)/usr/share/doc/$(p)/examples
mv $(d)/usr/bin/po2sub $(d)/usr/bin/sub2po \
$(d)/usr/share/doc/$(p)/examples
@@ -54,4 +57,11 @@ override_dh_install: man docs
override_dh_installchangelogs:
dh_installchangelogs docs/changelog.rst
+override_dh_auto_test:
+ # run the test suite using py.test
+ PYBUILD_SYSTEM=custom \
+ PYBUILD_TEST_ARGS='PATH={build_dir}:$$PATH py.test -rxs' \
+ dh_auto_test --buildsystem=pybuild
+
+
.PHONY: man docs
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-l10n/translate-toolkit.git
More information about the Debian-l10n-commits
mailing list