File: rules

package info (click to toggle)
sqlobject 3.13.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,688 kB
  • sloc: python: 17,520; makefile: 162; sh: 95
file content (21 lines) | stat: -rwxr-xr-x 682 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

export DH_ALWAYS_EXCLUDE=tests:dbs_data.tmp:versioning/test
export PYBUILD_TEST_PYTEST=1
export PYBUILD_TEST_ARGS="{dir}"

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

override_dh_sphinxdoc:
	python3 -m sphinx -b html -d debian/tmp/doctrees docs \
		debian/python-sqlobject-doc/usr/share/doc/python-sqlobject-doc/html
	# This directory only has documentation for the test case, which we don't package
	rm -rf debian/python-sqlobject-doc/usr/share/doc/python-sqlobject-doc/html/_modules/sqlobject/versioning
	dh_sphinxdoc

override_dh_installchangelogs:
	dh_installchangelogs -k docs/News.rst

override_dh_missing:
	dh_missing --fail-missing -X tmp/doctrees