| 12
 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
 
 | #!/usr/bin/make -f
export PYBUILD_NAME=build
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
export PYBUILD_AFTER_BUILD = \
	PYTHONPATH={build_dir} \
	http_proxy='127.0.0.1:9' \
		{interpreter} -m sphinx -N -bhtml \
		./docs/ ./docs/_build/html/ ; \
	PYTHONPATH={build_dir} \
	http_proxy='127.0.0.1:9' \
		{interpreter} -m sphinx -N -bman \
		./docs/ ./docs/_build/man/ ; \
	mv -v ./docs/_build/man/build.1 ./docs/_build/man/pyproject-build.1
endif
%:
	dh $@ --with python3 --buildsystem=pybuild
# Unfortunately, python-build's testsuite relies heavily on "pip
# install" and other network-related operations, which are not
# allowed during build time.
#
# Although not all tests are affected by this, it is becoming more and
# more difficult to maintain a list of tests that should be disabled
# because of this issue.  For this reason, and in order to keep the
# maintenance burden low, we decided to disable running these tests
# during build time.
#
# TODO: Create a dep8 test that runs the entire upstream testsuite.
override_dh_auto_test:
 |