Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # See debhelper(7) (uncomment to enable)
3 # output every command that modifies files on the build system.
4 #export DH_VERBOSE = 1
5
6 export PYBUILD_NAME=metakernel
7 export PYBUILD_VERBOSE=1
8 # Skip tests in test_replwrap.py, causing autopkgtest regression, while regression not reproducable in porterbox and local system.
9 export PYBUILD_TEST_ARGS=-o cache_dir={home_dir}/.pytest_cache $${{PYBUILD_AUTOPKGTEST:+/usr/lib/python3/dist-packages/metakernel}} \
10 -k 'not test_existing_spawn and not test_multiline and not test_bracketed_paste and not test_ls_path_complete'
11 export PYBUILD_BEFORE_TEST=touch {home_dir}/.bashrc && mkdir {home_dir}/.pytest_cache
12 export PYBUILD_AFTER_TEST=rm -rf {home_dir}/.pytest_cache
13
14 %:
15 dh $@ --buildsystem=pybuild
16
17 execute_after_dh_auto_build:
18 ifeq (,$(filter nodoc,${DEB_BUILD_OPTIONS} ${DEB_BUILD_PROFILES}))
19 PYTHONPATH=. python3 docs/generate_help.py
20 PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ build/html
21 # replace static files copied from python3-sphinx-bootstrap-theme with symlinks
22 find build/html/_static/ -type f -print0 | xargs -0 -L 1 debian/test_and_link.sh
23 endif
24
25 override_dh_installdocs:
26 dh_installdocs --package=python3-metakernel
27 dh_installdocs --package=python-metakernel-doc --doc-main-package=python3-metakernel
28
29 override_dh_installchangelogs:
30 dh_installchangelogs CHANGELOG.md