Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 export PYBUILD_NAME=esda
3
4 # "Permission denied @ dir_s_mkdir - /nonexistent"
5 export HOME=/tmp
6 export PYBUILD_TEST_ARGS=-v -p no:warnings \
7 --ignore=esda/tests/test_moran.py \
8 --ignore=esda/tests/test_moran_local_mv.py \
9 --ignore=esda/tests/test_correlogram.py \
10 --ignore=esda/tests/test_map_comparison.py \
11 --ignore=esda/tests/test_geary.py \
12 --ignore=esda/tests/test_losh.py \
13 --ignore=esda/tests/test_moran_local_mv.py
14 # "test_moran.py" disabled because it requires an external connection
15 # "tests/test_map_comparison.py" unknown error in regions.zip file path
16 # test_moran_local_mv.py depends "geodatasets" not packaged in Debian
17
18
19 %:
20 dh $@ --with sphinxdoc --buildsystem=pybuild
21
22 # sphinx documentation
23 override_dh_sphinxdoc:
24 PYTHONPATH=esda python3 -m sphinx $(SPHINXOPTS) -d debian/doctrees -N docs/ \
25 $(CURDIR)/debian/python-esda-doc/usr/share/doc/python-esda-doc/html
26
27 override_dh_link:
28 dh_link
29 # Fix duplicate-files
30 find -type f -print0 debian/python-esda-doc/usr/share/doc/python-esda-doc/html/ | \
31 sort -z | xargs -0r jdupes -Ol
32 # Fix privacy-breach-generic
33 find debian/python-esda-doc/ -name '*.html' -exec sed -i 's/.*https:.*//g' {} \;
34 # Remove all file '.js' sphinx documentation
35 find debian/python-esda-doc/usr/share/doc -name '*.js' -delete
36 find debian/ -name '*glyphicons-*' -delete
37 find debian/python-esda-doc/ -type d -empty -delete
38 rm -rf docs/generated/