File: rules

package info (click to toggle)
sbws 1.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,004 kB
  • sloc: python: 5,121; sh: 277; makefile: 32
file content (20 lines) | stat: -rwxr-xr-x 669 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
export PYBUILD_NAME=sbws
export PYBUILD_DESTDIR=debian/sbws
%:
	dh $@ --with python3,sphinxdoc --buildsystem=pybuild

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. sphinx-build -N -bhtml docs/source/ docs/build/html # HTML generator
	PYTHONPATH=. sphinx-build -N -bman docs/source/ docs/build/man # man generator

override_dh_installsystemd:
	dh_installsystemd --no-enable --no-start

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	# do not run integration tests since tor can not run in a chroot
	# run pytest with all the installed python versions
	for p in $(py3versions -i); do $p -m pytest tests/unit/; done
endif