File: rules

package info (click to toggle)
python-activipy 0.1-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 456 kB
  • sloc: python: 1,260; makefile: 173; sh: 25; lisp: 18
file content (25 lines) | stat: -rwxr-xr-x 880 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/make -f

#export DH_VERBOSE=1
export PYBUILD_NAME=activipy
export PYBUILD_TEST_PYTEST=1

MANPAGES=python2-activipy_tester.1 python3-activipy_tester.1
DB2MAN=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
XP=xsltproc --nonet --novalid

%:
	dh $@ --buildsystem=pybuild --with python2,python3,sphinxdoc

override_dh_install: $(MANPAGES)
	dh_install -ppython-activipy
	mv $(CURDIR)/debian/python-activipy/usr/bin/activipy_tester $(CURDIR)/debian/python-activipy/usr/bin/python2-activipy_tester
	dh_install -ppython3-activipy
	mv $(CURDIR)/debian/python3-activipy/usr/bin/activipy_tester $(CURDIR)/debian/python3-activipy/usr/bin/python3-activipy_tester

$(MANPAGES): debian/activipy_tester.dbk
	$(XP) $(DB2MAN) $< && mv activipy_tester.1 $@

override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
	PYBUILD_TEST_ARGS="{interpreter} -m pytest" dh_auto_test