File: rules

package info (click to toggle)
sbws 1.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 16,040 kB
  • sloc: python: 10,270; sh: 140; makefile: 38
file content (21 lines) | stat: -rwxr-xr-x 717 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
#!/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 -bman docs/source/ docs/build/man # man generator

override_dh_installsystemd:
	dh_installsystemd --no-stop-on-upgrade --name=sbws
	dh_installsystemd --no-stop-on-upgrade --name=sbws_generate
	dh_installsystemd --no-stop-on-upgrade --name=sbws_cleanup

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 -s); do $p -m pytest tests/unit/; done
endif