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
|
#!/usr/bin/make -f
# -*- makefile -*-
#export DH_VERBOSE=1
SPHINXOPTS := -E -N
export PYBUILD_NAME=validate_pyproject
export PYBUILD_BEFORE_TEST=cp {dir}/src/validate_pyproject/*.json {build_dir}/validate_pyproject && \
cp {dir}/src/validate_pyproject/plugins/*.json {build_dir}/validate_pyproject/plugins && \
cp {dir}/src/validate_pyproject/pre_compile/*.template {build_dir}/validate_pyproject/pre_compile
export PYBUILD_AFTER_INSTALL=rm -rf {destdir}/usr/lib/python3*/dist-packages/.coverage
export PYBUILD_TEST_ARGS=-k '\
not test_cache_open_url \
and not test_examples_api \
and not test_examples_cli \
and not test_invalid_examples_api \
and not test_invalid_examples_cli \
and not test_invalid_pep639_license_expression \
'
%:
dh $@ --buildsystem=pybuild
override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
PYTHONPATH=src python3 -m sphinx -b html $(SPHINXOPTS) docs $(CURDIR)/debian/python-validate-pyproject-doc/usr/share/doc/python-validate-pyproject-doc/html
dh_sphinxdoc
endif
override_dh_compress:
dh_compress -X changelog.html
override_dh_clean:
dh_clean
rm -rf .mypy_cache
rm -f docs/api/modules.rst \
docs/api/validate_pyproject.plugins.rst \
docs/api/validate_pyproject.pre_compile.rst \
docs/api/validate_pyproject.rst \
docs/api/validate_pyproject.vendoring.rst
|