File: rules

package info (click to toggle)
django-maintenancemode 0.11.2-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 204 kB
  • sloc: python: 309; makefile: 16; sh: 5
file content (21 lines) | stat: -rwxr-xr-x 480 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
#!/usr/bin/make -f

export PYBUILD_NAME=django-maintenancemode
build3vers := $(shell py3versions -sv)

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

override_dh_auto_clean:
	dh_auto_clean
	rm -rf build

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	echo "-- running tests for python2.7 --"
	python setup.py test
	set -e && for i in $(build3vers); do \
          echo "-- running tests for "$$i" --" ; \
	  python$$i setup.py test ;\
	done
endif