File: rules

package info (click to toggle)
python-build 0.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 292 kB
  • sloc: python: 1,075; makefile: 38
file content (20 lines) | stat: -rwxr-xr-x 719 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

export PYBUILD_NAME=build

# These tests explicitly invoke "pip install".
export PYBUILD_TEST_ARGS = --ignore=tests/test_env.py \
	-k 'not test_build_isolated and not test_build_raises_build_exception and not test_build_raises_build_backend_exception'

%:
	dh $@ --with python3,sphinxdoc --buildsystem=pybuild

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=$(CURDIR)/src/ http_proxy=127.0.0.1:9 \
	https_proxy=127.0.0.1:9 python3 -m sphinx -N -bhtml \
	docs/source/ build/html # HTML generator
	PYTHONPATH=$(CURDIR)/src/ http_proxy=127.0.0.1:9 \
	https_proxy=127.0.0.1:9 python3 -m sphinx -N -bman \
	docs/source/ build/man # Manpage generator
	mv build/man/build.1 build/man/pyproject-build.1