Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 #export DH_VERBOSE=1
4 export PYBUILD_NAME=astroplan
5 export PYBUILD_TEST_ARGS=-k 'not test_timezone'
6 export http_proxy=127.0.0.1:9
7
8 BUILD_DATE = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "@$(SOURCE_DATE_EPOCH)")
9 SPHINXOPTS := -D html_last_updated_fmt="$(BUILD_DATE)" -D html_show_copyright=0
10
11 %:
12 dh $@ --with sphinxdoc --buildsystem=pybuild
13
14 execute_after_dh_auto_build:
15 PYTHONPATH=. sphinx-build $(SPHINXOPTS) -N -bhtml docs/ build/html
16
17 execute_after_dh_auto_clean:
18 rm -f astroplan/version.py
19 rm -rf .cache
20 rm -rf api
21 rm -rf build
22 rm -rf .pybuild
23 rm -rf astroplan.egg-info
24
25 execute_before_dh_auto_install:
26 rm -rf build/html/plot_directive
27 rm -rf build/html/_images
28 sed -i "s#../_images/##g" build/html/tutorials/*.html