File: rules

package info (click to toggle)
python-cyclopts 3.12.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,288 kB
  • sloc: python: 11,445; makefile: 24
file content (24 lines) | stat: -rwxr-xr-x 783 bytes parent folder | download | duplicates (2)
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' {} +