File: rules

package info (click to toggle)
python-xopen 0.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 104 kB
  • ctags: 69
  • sloc: python: 331; makefile: 15
file content (20 lines) | stat: -rwxr-xr-x 405 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
#!/usr/bin/make -f

DH_VERBOSE := 1
export PYBUILD_NAME=xopen

PYTHON2 := $(shell pyversions -r)
PYTHON3 := $(shell py3versions -r)

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

override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
	for py in $(PYTHON2) ; do\
	    $$py setup.py nosetests -v ; \
	done
	for py in $(PYTHON3) ; do\
	    $$py setup.py nosetests -v ; \
	done
endif