File: rules

package info (click to toggle)
pytest-regressions 2.4.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 952 kB
  • sloc: python: 2,366; makefile: 33
file content (31 lines) | stat: -rwxr-xr-x 1,500 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
26
27
28
29
30
31
#!/usr/bin/make -f
#export DH_VERBOSE=1
#export DEB_BUILD_OPTIONS=nocheck
export PYBUILD_NAME=pytest-regressions

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

override_dh_auto_clean:

override_dh_auto_test:

override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))<F12>
	PYTHONPATH=. python3 -m sphinx -b html -d doc/.build/.doctrees -N doc debian/python3-pytest-regressions/usr/share/doc/python3-pytest-regressions/html/
endif
	find debian/python3-pytest-regressions -name 'html5shiv.min.js' -type f -exec \
		ln -sf /usr/share/nodejs/html5shiv/dist/html5shiv.min.js {} \;
	find debian/python3-pytest-regressions -name 'html5shiv-printshiv.min.js' -type f -exec \
		ln -sf /usr/share/nodejs/html5shiv/dist/html5shiv-printshiv.min.js {} \;
	# Sphinx-provided
	find debian/python3-pytest-regressions -name 'jquery.js' -type f -exec \
		ln -sf /usr/share/javascript/sphinxdoc/1.0/jquery.js {} \;
	find debian/python3-pytest-regressions -name 'underscore.js' -type f -exec \
		ln -sf /usr/share/javascript/sphinxdoc/1.0/underscore.js {} \;
	find debian/python3-pytest-regressions -name 'doctools.js' -type f -exec \
		ln -sf /usr/share/javascript/sphinxdoc/1.0/doctools.js {} \;
	find debian/python3-pytest-regressions -name 'searchtools.js' -type f -exec \
		ln -sf /usr/share/javascript/sphinxdoc/1.0/searchtools.js {} \;
	find debian/python3-pytest-regressions -name 'language_data.js' -type f -exec \
		ln -sf /usr/share/javascript/sphinxdoc/1.0/language_data.js {} \;