Commit 5291bbbe authored by Tristan Seligmann's avatar Tristan Seligmann

Switch back to pybuild.

parent 86a782e3
......@@ -5,6 +5,7 @@ testrepository (0.0.18-5) unstable; urgency=medium
- Thanks to Thorsten Alteholz for the bug report.
* Upstream source has moved to github.
* Switch to ASCII-armored upstream keyring in debian/upstream/.
* Switch back to pybuild.
-- Tristan Seligmann <mithrandi@debian.org> Sat, 03 May 2014 16:14:13 +0200
......
#!/usr/bin/make -f
PYTHONS:=$(shell pyversions -vr)
PYTHON3S:=$(shell py3versions -vr)
export PYBUILD_NAME=testrepository
export PYBUILD_DISABLE=test
%:
dh $@ --with python2,python3 --buildsystem=python_distutils
override_dh_auto_test:
#./testr init
#set -e && for i in $(PYTHONS) $(PYTHON3S) ; do \
# TEMP_REZ=`mktemp -t` && \
# echo "===> Testing with Python $$i" ; \
# PYTHON=python$$i ./testr run --parallel --subunit | tee $$TEMP_REZ | subunit2pyunit ; \
# cat $$TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats || true ; \
# rm -f $$TEMP_REZ ; \
#done
#./testr slowest
dh $@ --with python2,python3 --buildsystem=pybuild
override_dh_installchangelogs:
dh_installchangelogs -k NEWS
override_dh_auto_install:
set -e && for pyvers in $(PYTHONS); do \
python$$pyvers setup.py install --install-layout=deb \
--root $(CURDIR)/debian/python-testrepository; \
done
dh_auto_install
mv $(CURDIR)/debian/python-testrepository/usr/bin/testr \
$(CURDIR)/debian/python-testrepository/usr/bin/testr-python2 \
set -e && for pyvers in $(PYTHON3S); do \
python$$pyvers setup.py install --install-layout=deb \
--root $(CURDIR)/debian/python3-testrepository; \
done
$(CURDIR)/debian/python-testrepository/usr/bin/testr-python2
mv $(CURDIR)/debian/python3-testrepository/usr/bin/testr \
$(CURDIR)/debian/python3-testrepository/usr/bin/testr-python3
override_dh_clean:
dh_clean -O--buildsystem=python_distutils
dh_clean
rm -rf build .testrepository Makefile dist
# Commands not to run
override_dh_installcatalogs:
override_dh_installemacsen override_dh_installifupdown:
override_dh_installinfo override_dh_installmenu override_dh_installmime:
override_dh_installmodules override_dh_installlogcheck:
override_dh_installpam override_dh_installppp override_dh_installudev:
override_dh_installwm:
override_dh_installxfonts override_dh_gconf override_dh_icons:
override_dh_usrlocal:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment