File: rules

package info (click to toggle)
python-qwt 0.12.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,376 kB
  • sloc: python: 11,953; makefile: 19; sh: 10
file content (28 lines) | stat: -rwxr-xr-x 883 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
25
26
27
28
#!/usr/bin/make -f
# -*- makefile -*-

export DH_VERBOSE=1
export PYBUILD_NAME=qwt

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_clean:
	rm -rf build/html

execute_after_dh_auto_build: export PYTHONPATH=$(CURDIR)
execute_after_dh_auto_build: export http_proxy='127.0.0.1:9'
execute_after_dh_auto_build:
	sphinx-build -vvv -N -bhtml doc/ build/html # HTML generator

override_dh_auto_test: export PYTHONQWT_UNATTENDED_TESTS=1
override_dh_auto_test:
	# use the next line to debug unittest without xvfb
	# dh_auto_test -- -s custom --test-args="{interpreter} -m qwt.tests.__init__"
	for API in pyqt5 pyqt6 pyside6; do \
	  set -e; \
	  echo "################# $$API TEST ##################"; \
	  PYTEST_QT_API=$$API \
	    QT_API=$$API \
	    dh_auto_test -- -s custom --test-args="xvfb-run -a --server-args=\"-screen 0 1024x768x24\" {interpreter} -m qwt.tests.__init__"; \
	done