File: rules

package info (click to toggle)
python-sybil 10.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,200 kB
  • sloc: python: 5,194; makefile: 40; sh: 12
file content (27 lines) | stat: -rwxr-xr-x 775 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
25
26
27
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk
export DEB_VERSION_UPSTREAM  # used by patched docs/conf.py

export PYBUILD_NAME=sybil
export PYBUILD_TEST_PYTEST=1
# to test also docs, not just tests
export PYBUILD_TEST_ARGS=
ifeq ($(PYBUILD_AUTOPKGTEST),1)
	# these assume the sources are present
	export PYBUILD_TEST_ARGS+= -k "not test_all_python_files and not test_ast_docstrings"
endif


%:
	dh $@ --buildsystem=pybuild

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
	PYTHONPATH=src python3 -m sphinx -b html -N docs/ $(CURDIR)/debian/python-sybil-doc/usr/share/doc/python3-sybil/html
endif
	dh_sphinxdoc

override_dh_installdocs:
	dh_installdocs -ppython-sybil-doc --doc-main-package=python3-sybil
	dh_installdocs --remaining-packages