File: rules

package info (click to toggle)
python-nose-exclude 0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 164 kB
  • sloc: python: 331; makefile: 13
file content (18 lines) | stat: -rwxr-xr-x 493 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

UPSTREAM_GIT := https://github.com/kgrandis/nose-exclude
include /usr/share/openstack-pkg-tools/pkgos.make

export PYBUILD_NAME=nose-exclude

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

override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	set -e ; set -x ; for i in $(PYTHONS) $(PYTHON3S) ; do \
		PYMAJOR=`echo $$i | cut -d'.' -f1` ; \
		echo "===> Testing with python$$i (python$$PYMAJOR)" ; \
		python$$i setup.py test ; \
	done
endif