File: rules

package info (click to toggle)
sphinxcontrib-spelling 7.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 424 kB
  • sloc: python: 1,191; makefile: 151; sh: 27
file content (21 lines) | stat: -rwxr-xr-x 705 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
#!/usr/bin/make -f

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

export PYTHONWARNINGS=d
export PYBUILD_NAME=sphinxcontrib.spelling
# test_contributors is meant to run on the repository (it get contributors
# using `git log` and test_builder.py need the package to be installed.
export export PYBUILD_TEST_ARGS = -v -k 'not test_contributors' \
	--ignore tests/test_builder.py
export PYENCHANT_VERBOSE_FIND=1

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

override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. python3 -m sphinx -b html docs/source \
		debian/python-sphinxcontrib.spelling-doc/usr/share/doc/python-sphinxcontrib.spelling-doc/html/
	dh_sphinxdoc
endif