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
|
#! /usr/bin/make -f
export PYBUILD_NAME=pytest-mock
# The --assert=plain is needed to skip four tests; see
# https://github.com/pytest-dev/pytest-mock/issues/102
# for more information.
export PYBUILD_TEST_ARGS=--assert=plain {dir}/tests
ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
%:
dh $@ --with sphinxdoc --buildsystem=pybuild
execute_after_dh_auto_build:
mkdir docs/_static
sphinx-build -W --keep-going -b html docs docs/_build/html
override_dh_installdocs:
dh_installdocs -ppython-pytest-mock-doc --doc-main-package=python3-pytest-mock
dh_installdocs --remaining-packages
else
%:
dh $@ --buildsystem=pybuild
endif
override_dh_auto_clean:
dh_auto_clean
rm -rf docs/_build docs/_static
rm -f src/pytest_mock/_version.py
|