1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/usr/bin/make -f
export PYBUILD_NAME=twine
%:
dh $@ --with=python3,sphinxdoc --buildsystem=pybuild
override_dh_auto_build:
dh_auto_build --buildsystem=pybuild
# Build sphinx html documentation and man pages
python3 setup.py build_sphinx -b html
python3 setup.py build_sphinx -b man
override_dh_auto_test:
mkdir .pybuild/egg
PYTHONPATH=$(CURDIR)/.pybuild/egg \
dh_auto_test -- \
--before-test '{interpreter} {dir}/setup.py egg_info --egg-base={dir}/.pybuild/egg' \
--test-pytest \
--test-args '--ignore tests/test_integration.py'
override_dh_compress:
dh_compress -X.html
|