File: rules

package info (click to toggle)
esda 2.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 155,444 kB
  • sloc: python: 7,981; makefile: 40
file content (29 lines) | stat: -rwxr-xr-x 1,127 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
#!/usr/bin/make -f
export PYBUILD_NAME=esda
# "Permission denied @ dir_s_mkdir - /nonexistent"
export HOME=/tmp
export PYBUILD_TEST_ARGS=-v -p no:warnings \
	--ignore=esda/tests/test_moran.py \
	--ignore=esda/tests/test_map_comparison.py
# "test_moran.py and test_" disabled because it requires an external connection
# "esda/tests/test_map_comparison.py" unknown error in regions.zip file path

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

# sphinx documentation
override_dh_sphinxdoc:
	PYTHONPATH=esda python3 -m sphinx $(SPHINXOPTS) -d debian/doctrees -N docs/ \
		$(CURDIR)/debian/python-esda-doc/usr/share/doc/python-esda-doc/html

override_dh_link:
	dh_link
# Fix duplicate-files
	find -type f -print0 debian/python-esda-doc/usr/share/doc/python-esda-doc/html/ | \
		sort -z | xargs -0r jdupes -Ol
# Fix privacy-breach-generic
	find debian/python-esda-doc/ -name  '*.html' -exec sed -i 's/.*https:.*//g' {} \;
# Remove all file '.js' sphinx documentation
	find debian/python-esda-doc/usr/share/doc -name '*.js' -delete
	find debian/ -name '*glyphicons-*' -delete
	find debian/python-esda-doc/ -type d -empty -delete