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
|
#!/usr/bin/make -f
export DH_ALWAYS_EXCLUDE=tests:dbs_data.tmp:versioning/test
export PYBUILD_TEST_PYTEST=1
export PYBUILD_TEST_ARGS="{dir}"
%:
dh $@ --with python2,python3 --buildsystem=pybuild
override_dh_clean:
# Forcibly remove all traces of the upstream module docs build, since
# we rebuild what we can, and the rest relies on pudge, which
# is an obselete, abandoned project.
# We override dh_clean to do this, since we're removing several
# directories in this step.
# SQLObject upstream is switching to sphinx in 3.2.0, so revisit
# this once that's happened.
rm -rf docs/html/
dh_clean
override_dh_installdocs:
docs/rebuild
dh_installdocs
override_dh_installchangelogs:
dh_installchangelogs -k docs/News.rst
|