| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
# Uncomment this to turn on verbose mode. |
| 4 |
#export DH_VERBOSE=1 |
| 5 |
|
| 6 |
export PYBUILD_NAME=pystache |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --buildsystem=pybuild |
| 10 |
|
| 11 |
override_dh_installchangelogs: |
| 12 |
dh_installchangelogs $(CURDIR)/HISTORY.md |
| 13 |
|
| 14 |
override_dh_python3: |
| 15 |
dh_python3 --shebang=/usr/bin/python3 |
| 16 |
mv -f $(CURDIR)/debian/python3-pystache/usr/bin/pystache $(CURDIR)/debian/python3-pystache/usr/bin/pystache3 |
| 17 |
find $(CURDIR)/debian -name pystache-test -type f -delete |
| 18 |
find $(CURDIR)/debian -name tests -type d | xargs rm -rf |
| 19 |
find $(CURDIR)/debian -name "HISTORY.md*" -delete |
| 20 |
|
| 21 |
override_dh_auto_test: |
| 22 |
set -e ;\ |
| 23 |
PYBUILD_SYSTEM=custom \ |
| 24 |
PYBUILD_TEST_ARGS="{interpreter} $(CURDIR)/pystache/commands/test.py" \ |
| 25 |
dh_auto_test |