File: rules

package info (click to toggle)
pointpats 2.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 9,180 kB
  • sloc: python: 3,676; makefile: 39
file content (31 lines) | stat: -rwxr-xr-x 953 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
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f
#export DH_VERBOSE = 1
export PYBUILD_NAME=pointpats

%:

	dh $@ --buildsystem=pybuild

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	pytest -v -p no:warnings -k 'not test_spacetime.py' pointpats/tests/
endif

ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
execute_after_dh_auto_build:
	PYTHONPATH=. http_proxy='http://127.0.0.1:9/' python3 -m sphinx -N  -d debian/doctrees -bhtml docs/ debian/html
endif

override_dh_link:
	dh_link
# Fixe duplicate-files
	jdupes -rl debian/python-pointpats-doc/

# Fix privacy-breach-generic
execute_after_dh_link:
	find debian/python-pointpats-doc/ -name '*.html' -exec sed -i 's/src=/""/g' {} \;
#Fix embedded-javascript-library
	find debian/python-pointpats-doc/ -type f -name '*.js' -delete
	find debian/python-pointpats-doc/ -type d -name 'js' -exec rm -rf {} +
#Fix font-in-non-font-package
	find debian/python-pointpats-doc/ -type d -name 'fonts' -exec rm -rf {} +