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 38 39 40 41 42 43 44
|
#!/usr/bin/make -f
# -*- makefile -*-
#export DH_VERBOSE = 1
export PYBUILD_NAME=inline-snapshot
export PYBUILD_TEST_ARGS="-k \
not test_diskstorage \
and not test_empty_sub_snapshot \
and not test_format_command_fail \
and not test_outsource \
and not test_sub_snapshot \
and not test_typing \
and not test_xdist \
and not test_xdist_and_disable \
and not test_xdist_disabled \
"
%:
dh $@ --buildsystem=pybuild
override_dh_clean:
rm -rf html .mypy_cache .pytest_cache
dh_clean
override_dh_auto_build:
dh_auto_build
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
cp -a CHANGELOG.md CONTRIBUTING.md README.md mkdocs.yml docs src .pybuild && cd .pybuild && \
PYTHONPATH=`dirname $$(find -type d -name "inline_snapshot*dist-info" | head -n1)` && \
export PYTHONPATH && \
python3 -m mkdocs build -v --site-dir=../html
rm -f html/requirements.* html/sitemap.xml.gz
endif
override_dh_mkdocs:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
dh_mkdocs
endif
override_dh_installdocs:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
dh_installdocs
endif
|