File: rules

package info (click to toggle)
python-asdf 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,344 kB
  • ctags: 2,362
  • sloc: python: 17,017; makefile: 126; ansic: 88
file content (27 lines) | stat: -rwxr-xr-x 639 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
25
26
27
#!/usr/bin/make -f
#export DH_VERBOSE=1

PYTHON2:=$(shell pyversions -vr)
PYTHON3:=$(shell py3versions -vr)
export PYBUILD_NAME=asdf
export http_proxy=127.0.0.1:9

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

override_dh_installdocs:
	python setup.py build_sphinx
	dh_installdocs

override_dh_install:
	dh_install
	rm -rf debian/python-asdf/usr/bin/
	mkdir -p debian/asdftool/usr
	mv debian/python3-asdf/usr/bin debian/asdftool/usr/bin

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
test-python%:
	python$* setup.py test -vv --args -v

override_dh_auto_test: $(PYTHON2:%=test-python%) $(PYTHON3:%=test-python%)
endif