File: rules

package info (click to toggle)
python-altgraph 0.16.1~repack0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 372 kB
  • sloc: python: 3,012; makefile: 90
file content (31 lines) | stat: -rwxr-xr-x 756 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
28
29
30
31
#!/usr/bin/make -f

export PYBUILD_NAME=altgraph
export http_proxy = http://127.0.0.1:9
export https_proxy = https://127.0.0.1:9

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

override_dh_auto_build:
	dh_auto_build
	sphinx-build -bhtml doc build/html

override_dh_clean:
	dh_clean
	rm -rf $(CURDIR)/*.egg-info/
	rm -rf $(CURDIR)/build

override_dh_sphinxdoc:
	dh_sphinxdoc
	find debian/python-altgraph-doc -name license.txt -delete

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	python3 setup.py egg_info
	dh_auto_test -- --system=custom --test-args='{interpreter} -m unittest discover -v'
endif

#build/python-altgraph-doc::
#	sphinx-build -bhtml doc build/html
#	dh_sphinxdoc -ppython-altgraph-doc build/html