From 27c47e4994f8d0cfcf49b1180158e4fb8cdd94a8 Mon Sep 17 00:00:00 2001 From: Carsten Schoenert Date: Wed, 30 Nov 2022 10:41:57 +0100 Subject: [PATCH] d/rules: Tune sphinxdoc build a bit Set and use SPHINXOPTS while dh_shinxdoc target is called. Setting http_proxy isn't needed any more, it's the default now. --- debian/rules | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index cf0cc4b..f673487 100755 --- a/debian/rules +++ b/debian/rules @@ -1,4 +1,12 @@ #!/usr/bin/make -f +# -*- makefile -*- + +#export DH_VERBOSE=1 + +include /usr/share/dpkg/pkg-info.mk + +BUILD_DATE = $(shell LC_ALL=C date -u "+%d %B %Y" -d "@$(SOURCE_DATE_EPOCH)") +SPHINXOPTS := -E -N -D html_last_updated_fmt="$(BUILD_DATE)" export LC_ALL=C.UTF-8 export LANG=C.UTF-8 @@ -10,11 +18,11 @@ export PYBUILD_TEST_ARGS=-k 'not test_expand_args' {dir}/tests/ export SOURCE = $(CURDIR)/debian/ %: - dh $@ --with python3,sphinxdoc --buildsystem=pybuild + dh $@ --with sphinxdoc --buildsystem=pybuild override_dh_sphinxdoc: ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) - http_proxy='http://127.0.0.1:9/' PYTHONPATH=src/ python3 -m sphinx -N -E -b html docs/ debian/python-click-doc/usr/share/doc/python-click-doc/html/ + PYTHONPATH=src/ python3 -m sphinx -b html $(SPHINXOPTS) docs/ debian/python-click-doc/usr/share/doc/python-click-doc/html/ dh_sphinxdoc endif