File: rules

package info (click to toggle)
pystray 0.19.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 396 kB
  • sloc: python: 2,339; sh: 18; makefile: 13
file content (20 lines) | stat: -rwxr-xr-x 516 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 DH_VERBOSE = 1

export PYBUILD_NAME=pystray
export TEST_SKIP_INTERACTIVE=1

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

execute_before_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=./lib python3 -m sphinx -b html -N docs/ \
		   $(CURDIR)/debian/python-pystray-doc/usr/share/doc/python-pystray-doc/html
endif

override_dh_auto_test:
ifeq (,$(filter nocheck, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=./lib xvfb-run --auto-servernum dh_auto_test
endif