File: rules

package info (click to toggle)
terminaltables3 4.0.0-6
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 1,328 kB
  • sloc: python: 2,691; makefile: 88; sh: 11
file content (28 lines) | stat: -rwxr-xr-x 1,034 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
#!/usr/bin/make -f

export PYBUILD_NAME=terminaltables3

export PYBUILD_BEFORE_TEST=cp example*.py {build_dir}
export PYBUILD_TEST_ARGS=-k 'not test_color and not test_width and not test_height and not test_odd_width_height_pad_space'
export PYBUILD_AFTER_TEST=rm {build_dir}/example*.py

%:
	dh $@ --buildsystem pybuild --with sphinxdoc

override_dh_sphinxdoc: export http_proxy=127.0.0.1:9
override_dh_sphinxdoc: export https_proxy=127.0.0.1:9
override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	TZ=UTC PYTHONPATH=. /usr/share/sphinx/scripts/python3/sphinx-build -N -q -E -b html docs/ debian/python-terminaltables3-doc/usr/share/doc/python-terminaltables3-doc/html/
	dh_sphinxdoc
endif

override_dh_compress:
	dh_compress -X example1.py -X example2.py -X example3.py -X html/

execute_after_dh_auto_install:
	# installed via python-terminaltables3-doc.examples
	rm -f debian/python3-terminaltables3/usr/lib/python*/dist-packages/example*.py

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG.md