File: rules

package info (click to toggle)
sqlobject 3.10.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,660 kB
  • sloc: python: 17,348; makefile: 162; sh: 95
file content (21 lines) | stat: -rwxr-xr-x 690 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 python3,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 --list-missing -X tmp/doctrees