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