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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export PYBUILD_BEFORE_TEST=rm -f {dir}/tests/functional/u/unused_typing_imports.py {dir}/tests/functional/m/missing_final_newline.py
# skip test_linter_with_unpickleable_plugins_is_pickleable, fails autopkgtest for some reason
# skip test_allow_reexport_package test_writing_minimal_file, for https://github.com/PyCQA/pylint/issues/8342
export PYBUILD_TEST_ARGS=-vvvv \
-k '\
not test_do_not_import_files_from_local_directory \
and not test_linter_with_unpickleable_plugins_is_pickleable \
and not test_allow_reexport_package \
and not test_writing_minimal_file \
' \
{build_dir}/tests
export PYBUILD_AFTER_TEST=rm -rf {dir}/.pytest_cache
export PYBUILD_BEFORE_INSTALL=rm -rf {build_dir}/classes.dot
%:
dh $@ --buildsystem pybuild --with python3,sphinxdoc
override_dh_auto_build:
dh_auto_build
PATH=$(CURDIR):$$PATH $(MAKE) -C doc build-html PYTHONPATH=$(CURDIR) PYTHON=python3
override_dh_compress:
dh_compress -i -X.py -X.ini -X.xml -Xtest
override_dh_installexamples:
dh_installexamples -ppylint-doc examples/*
override_dh_installdocs:
dh_installdocs -A README.rst
dh_installdocs -ppylint-doc doc/_build/html
override_dh_missing:
dh_missing --fail-missing
|