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
|
#!/usr/bin/make -f
# Ignore the two duplicate test suites that conflict on collection with the
# Cryptodome test.
export PYBUILD_TEST_ARGS=--ignore=tests/backends/pysha3 \
--ignore=tests/backends/test_results.py
# The egg.info must be copied into the build test environment for
# test_import_and_version.py to succeed. It isn't needed for autopkgtest, where
# the package has already installed them system-wide.
export PYBUILD_BEFORE_TEST= if [ -d "{dir}/eth_hash.egg-info" ]; then \
cp -R {dir}/eth_hash.egg-info {build_dir}; fi
%:
dh $@ --buildsystem=pybuild
execute_before_dh_auto_build:
# Build the HTML documentation.
mkdir -p docs/_build/html
sphinx-build -b html -D html_theme=basic docs docs/_build/html
execute_after_dh_sphinxdoc:
# Delete the documentation "_sources" directory, which we don't want to
# ship in the binary package once it has been converted to HTML.
rm -rf debian/python3-eth-hash/usr/share/doc/python3-eth-hash/html/_sources/
|