File: rules

package info (click to toggle)
python-sybil 9.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,148 kB
  • sloc: python: 4,510; makefile: 90
file content (25 lines) | stat: -rwxr-xr-x 704 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

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)))
	python3 setup.py egg_info
	PYTHONPATH=. 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