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
|
#!/usr/bin/make -f
# -*- makefile -*-
#export DH_VERBOSE = 1
export PYBUILD_NAME=ruyaml
export PYBUILD_BEFORE_TEST=cp -a {dir}/_test {build_dir}
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/_test
PYBUILD_TEST_ARGS=-k '\
not test_qualified_name00 \
'
SPHINXOPTS := -E -N
%:
dh $@ --buildsystem=pybuild
override_dh_clean:
dh_clean
rm -rf .mypy_cache
override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
PYTHONPATH=. python3 -m sphinx -b html $(SPHINXOPTS) _doc $(CURDIR)/debian/python-ruyaml-doc/usr/share/doc/python-ruyaml-doc/html
dh_sphinxdoc
endif
override_dh_auto_test:
PYTHONPATH=$(CURDIR)/_test dh_auto_test -- --system=custom --test-args="{interpreter} -m pytest _test/test*.py $(PYBUILD_TEST_ARGS)"
|