| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
export PYBUILD_NAME=custodian |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ --with sphinxdoc --buildsystem=pybuild |
| 11 |
|
| 12 |
|
| 13 |
override_dh_clean: |
| 14 |
dh_clean --exclude=tests/files |
| 15 |
|
| 16 |
override_dh_auto_test: |
| 17 |
rm -rf .pybuild/tests |
| 18 |
cp -r tests .pybuild |
| 19 |
|
| 20 |
CUSTODIAN_TEST_DIR=$(CURDIR)/.pybuild/tests pybuild --test --test-pytest \ |
| 21 |
--test-args='-k "not (test_fileman_cpscf_nseg_error or test_gdm_neg_precon_error or test_OptFF or test_first_step)"' |
| 22 |
|
| 23 |
execute_after_dh_auto_build-indep: export http_proxy=127.0.0.1:9 |
| 24 |
execute_after_dh_auto_build-indep: export https_proxy=127.0.0.1:9 |
| 25 |
execute_after_dh_auto_build-indep: |
| 26 |
PYTHONPATH=$(shell pybuild --pyver `py3versions --default -v` --print {build_dir}) python3 -m sphinx -N -bhtml \ |
| 27 |
docs/ .pybuild/docs/html # HTML generator |
| 28 |
|
| 29 |
execute_after_dh_installdocs: |
| 30 |
for f in `find debian/python-custodian-doc/usr/share/doc/python-custodian-doc/html -name *.html`; do \ |
| 31 |
sed "s|.google-analytics.com/ga.js|privacy/ga.js|g" -i $$f; \ |
| 32 |
done |