File: rules

package info (click to toggle)
sbws 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,084 kB
  • sloc: python: 10,432; sh: 146; makefile: 38
file content (21 lines) | stat: -rwxr-xr-x 707 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
#!/usr/bin/make -f
export PYBUILD_NAME=sbws
export PYBUILD_DESTDIR=debian/sbws
%:
	dh $@ --with python3 --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