File: rules

package info (click to toggle)
python-testfixtures 4.14.3-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 860 kB
  • sloc: python: 6,084; makefile: 73
file content (22 lines) | stat: -rwxr-xr-x 605 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_NAME=testfixtures
export PYBUILD_BEFORE_TEST=cp -r docs {build_dir}
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/docs

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

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. python3 -m sphinx -b html -d docs/.build/.doctrees -N docs docs/.build/html

override_dh_auto_test:
	dh_auto_test -- --system=custom --test-args="{interpreter} /usr/bin/zope-testrunner --path={build_dir} testfixtures"

override_dh_clean:
	rm -rf docs/.build
	dh_clean