Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 #export DH_VERBOSE = 1
3
4 export PYBUILD_NAME=cyclopts
5 export TERM=xterm-256color
6 export PYBUILD_TEST_ARGS=-v --ignore=tests/test_edit.py \
7 --ignore=tests/test_pydantic.py
8 %:
9
10 dh $@ --buildsystem=pybuild
11
12 execute_after_dh_auto_build:
13 PYTHONPATH=. http_proxy='http://127.0.0.1:9/' python3 -m sphinx -d debian/doctrees \
14 -N -bhtml docs/source/ debian/html
15
16 execute_after_dh_install:
17 python3 debian/generate-completions.py
18
19 # Fixed privacy-breach-generic
20 execute_after_dh_installdocs:
21 find debian/python-cyclopts-doc/ -name '*.html' -exec sed -i \
22 -e 's/<img [^>]*>//g' {} \;
23 # Deleting memory address to fix reproducibility problem
24 find debian/python-cyclopts-doc/ -name "searchindex.js" \
25 -exec sed -i 's/"0x[a-f0-9]\{12,\}": [0-9]\{1,\},//g' {} +
26 find debian/python-cyclopts-doc/ -name "api.html" \
27 -exec sed -i '/at 0x7f/d' {} +
28 sed -i -E 's/0x[0-9a-f]+/0xADDR/g' \
29 debian/python-cyclopts-doc/usr/share/doc/python-cyclopts-doc/html/searchindex.js