File: rules

package info (click to toggle)
python-jellyfish 0.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 708 kB
  • sloc: ansic: 1,364; python: 916; makefile: 157; sh: 7
file content (24 lines) | stat: -rwxr-xr-x 788 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

# export DH_VERBOSE = 1

# Fix hardening-no-bindnow lintian warning.
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
# Use pytest, pointing it to the right test file.
export PYBUILD_TEST_PYTEST = 1
export PYBUILD_NAME = jellyfish
export PYBUILD_BEFORE_TEST = cp -R {dir}/testdata {build_dir}
export PYBUILD_AFTER_TEST = rm -R {build_dir}/testdata
export PYBUILD_TEST_ARGS = jellyfish/test.py

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

override_dh_auto_build:
	dh_auto_build
	# HTML and manpage generators.
	PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -bhtml docs/ build/html
	PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -bman docs/ build/man

override_dh_installchangelogs:
	dh_installchangelogs -k docs/changelog.rst