#!/usr/bin/make -f # -*- makefile -*- #export DH_VERBOSE = 1 export PYBUILD_NAME=inline-snapshot export PYBUILD_TEST_ARGS=\ --ignore tests/test_file.py \ --ignore tests/test_get_snapshot_value.py \ --ignore tests/test_inline_snapshot.py \ --ignore tests/test_pytest_plugin.py \ -k 'not (test_diskstorage \ or test_empty_sub_snapshot \ or test_format_command_fail \ or test_outsource \ or test_sub_snapshot \ or test_typing \ or test_uses_external \ or test_xdist \ or test_xdist_and_disable \ or test_xdist_disabled \ )' %: dh $@ --buildsystem=pybuild execute_before_dh_clean: rm -rf html .mypy_cache .pytest_cache execute_after_dh_auto_build: ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) cp -a CHANGELOG.md CONTRIBUTING.md README.md mkdocs.yml docs src .pybuild && \ cd .pybuild && mkdir changelog.d && \ HOME=$(CURDIR) PYTHONPATH=`dirname $$(find -type d -name "*dist-info" | head -n1)` && \ export PYTHONPATH && \ python3 -m mkdocs build -v --site-dir=../html rm -f html/requirements.* html/sitemap.xml.gz endif