File: rules

package info (click to toggle)
python-activipy 0.1-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 432 kB
  • sloc: python: 1,260; makefile: 171; lisp: 18; sh: 13
file content (23 lines) | stat: -rwxr-xr-x 716 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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 python3,sphinxdoc

override_dh_install: $(MANPAGES)
	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