debian-pyphen/debian/rules

25 lines
595 B
Makefile
Executable File

#!/usr/bin/make -f
export PYBUILD_NAME=pyphen
buildvers := $(shell pyversions -sv)
build3vers := $(shell py3versions -sv)
%:
dh $@ --with python2,python3 --buildsystem=pybuild
override_dh_auto_clean:
dh_auto_clean
rm -rf $(CURDIR)/.pytest
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
set -e && for i in $(buildvers); do \
echo "-- running tests for python"$$i" --" ; \
python$$i /usr/bin/py.test test.py;\
done
set -e && for i in $(build3vers); do \
echo "-- running tests for python"$$i" --" ; \
python$$i /usr/bin/py.test-3 test.py;\
done
endif