#!/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 ifeq ($(PYBUILD_AUTOPKGTEST),1) export http_proxy := export https_proxy := export PYBUILD_TEST_PYTEST := 1 # Fails due to license classifier warnings. PYBUILD_TEST_ARGS := --deselect tests/test_projectbuilder.py::test_metadata_path_legacy[False] # The autopkgtest environment isn't quite right for these tests, and they're # less important for the Debian package anyway. PYBUILD_TEST_ARGS += --deselect tests/test_self_packaging.py export PYBUILD_TEST_ARGS endif %: dh $@ --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. # # We run the upstream test suite via autopkgtest. override_dh_auto_test: