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 32 33 34 35 36 37
|
#!/usr/bin/make -f
#export DH_VERBOSE = 1
include /usr/share/dpkg/pkg-info.mk
export BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d @"$(SOURCE_DATE_EPOCH)")
# Prevent setuptools/distribute from accessing the internet.
export http_proxy = http://127.0.9.1:9
export PYBUILD_NAME=mando
%:
dh $@ --with sphinxdoc --buildsystem=pybuild
override_dh_auto_test:
${RM} -r .pybuild/
PYTHONPATH=. pytest-3 mando/
override_dh_auto_build:
python3 setup.py build
make -C docs/ html SPHINXBUILD="/usr/share/sphinx/scripts/python3/sphinx-build" SPHINXOPTS="-j 4 -D today=\"$(BUILD_DATE)\""
$(RM) doc/v2/_build/html/objects.inv
override_dh_auto_clean:
python3 setup.py clean -a
find . -name "*.pyc" -delete
${RM} -r .pytest_cache/ .pybuild/ test.log .travis.yml docs/_build/
override_dh_installexamples:
dh_installexamples -p python3-mando
dh_installexamples -p python-mando-doc --doc-main-package python-mando-doc
override_dh_installdocs:
dh_installdocs -p python3-mando
dh_installdocs -p python-mando-doc --doc-main-package python-mando-doc
|