File: rules

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

include /usr/share/dpkg/pkg-info.mk

export PYBUILD_NAME=toolz

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

override_dh_auto_clean:
	sed -i "s/VERSION/\"$(DEB_VERSION)\"/" pyproject.toml
	rm -rf build doc/build toolz.egg-info .cache
	dh_auto_clean

override_dh_auto_build: export http_proxy=127.0.0.1:9
override_dh_auto_build: export https_proxy=127.0.0.1:9
override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. python3 -m sphinx $(SPHINXOPTS) -n -bhtml doc/source build/html