File: rules

package info (click to toggle)
python-pytest-timeout 1.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 180 kB
  • sloc: python: 603; makefile: 16
file content (24 lines) | stat: -rwxr-xr-x 443 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
#!/usr/bin/make -f

#export PYBUILD_TEST_TOX=1
export LC_ALL=C.UTF-8

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

override_dh_install:
	dh_install -O--buildsystem=pybuild

override_dh_installdocs:
	dh_installdocs -A README

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_install
	PYTHONPATH=$(CURDIR) py.test-3
	PYTHONPATH=$(CURDIR) py.test
endif

override_dh_clean:
	dh_clean
	rm -rf .pytest_cache