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
|
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable).
# Output every command that modifies files on the build system.
#export DH_VERBOSE = 1
export PYBUILD_NAME=elastic-transport
# remove otel tests, missing opentelemetry-jdk in debian
# and ignore tests with inet access.
export PYBUILD_TEST_ARGS=\
--ignore=tests/test_otel.py \
-k 'not test_debug_logging \
and not test_assert_fingerprint_in_cert_chain \
and not test_assert_fingerprint_in_cert_chain_failure \
and not test_ssl_assert_fingerprint \
and not test_supported_tls_versions \
and not test_unsupported_tls_version \
'
#disable proxy for localhost tests
export no_proxy=localhost,127.0.0.1
export PYBUILD_AFTER_INSTALL= rm -fr {destdir}/usr/lib/python3*/dist-packages/elastic_transport-*/top_level.txt
BUILD_DATE = $(shell LC_ALL=C date -u "+%d %B %Y" -d "@$(SOURCE_DATE_EPOCH)")
SPHINXOPTS := -N -D html_last_updated_fmt="$(BUILD_DATE)"
%:
dh $@ --buildsystem=pybuild
execute_after_dh_auto_build:
PYTHONPATH=. sphinx-build $(SPHINXOPTS) -b html docs/sphinx build/html
|