| 1 |
#! /usr/bin/make -f |
| 2 |
|
| 3 |
#export DH_VERBOSE = 1 |
| 4 |
export PYBUILD_NAME = backblaze-b2 |
| 5 |
export PYBUILD_BEFORE_TEST=ln -s {dir}/README.md {build_dir}/README.md |
| 6 |
export PYBUILD_TEST_ARGS=-n=1 \ |
| 7 |
--ignore=test/integration/test_b2_command_line.py \ |
| 8 |
--ignore=test/unit/_cli/test_autocomplete_install.py \ |
| 9 |
--ignore=test/unit/_utils/test_uri.py \ |
| 10 |
--ignore=test/unit/console_tool/test_install_autocomplete.py \ |
| 11 |
-k ' not test_autocomplete_b2__download_file__b2uri \ |
| 12 |
and not test_readable_yaml_dump \ |
| 13 |
and not test_validated_loads \ |
| 14 |
and not test_detect_shell \ |
| 15 |
and not test_b2fileuri_str \ |
| 16 |
' |
| 17 |
export PYBUILD_AFTER_TEST=rm -v {build_dir}/README.md |
| 18 |
|
| 19 |
# tests triggers "AssertionError: previous item was not torn down properly" at random |
| 20 |
|
| 21 |
%: |
| 22 |
dh $@ --buildsystem=pybuild |
| 23 |
|
| 24 |
override_dh_auto_test: |
| 25 |
PATH=../scripts/:$(PATH) PYTHONPATH=. dh_auto_test || true |
| 26 |
|
| 27 |
execute_after_dh_python3: |
| 28 |
find debian/ -name "README.md" -print -delete |
| 29 |
mv -v debian/backblaze-b2/usr/bin/b2 debian/backblaze-b2/usr/bin/backblaze-b2 |