File: rules

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

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

override_dh_auto_test:
ifeq (, $(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	# run tests with all supported python 2 and 3 versions
	set -e; for python in `pyversions -s` `py3versions -s`; do \
	  echo "-- Running tests with $$python ----------------"; \
	  LC_ALL=C LANGUAGE= LANG=C PYTHONPATH=. $$python test/auto.py -v; \
	done
	pyflakes3  DistUtilsExtra/ test/
endif