File: rules

package info (click to toggle)
python-pykka 2.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 560 kB
  • sloc: python: 2,356; makefile: 118; sh: 3
file content (24 lines) | stat: -rwxr-xr-x 584 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
#!/usr/bin/make -f

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

export PYBUILD_NAME=pykka

# Skip tests that requires pytest-mock >= 1.8.0.
export PYBUILD_TEST_ARGS=-k "not noncallable_mock"

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

override_dh_installchangelogs:
	dh_installchangelogs docs/changes.rst

override_dh_installdocs:
	PYTHONPATH=$(shell pybuild --print build_dir --interpreter python3) \
	  python3 -m sphinx -N -b html docs/ $(CURDIR)/.pybuild/docs/html/
	dh_installdocs

override_dh_auto_clean:
	dh_auto_clean
	rm -rf .pytest_cache/