Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 export PYBUILD_NAME=scikit-optimize
4
5 %:
6 dh $@ --with sphinxdoc --buildsystem=pybuild
7
8 override_dh_auto_test:
9 ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
10 pytest
11 else
12 @echo "Skipping tests as per DEB_BUILD_OPTIONS"
13 endif
14
15 override_dh_installdocs:
16 https_proxy='127.0.0.1:9' http_proxy='127.0.0.1:9' sphinx-build -b html doc build/sphinx/html
17
18 # Remove or replace privacy-breach URLs with local paths
19 find -type f -name "*.html" -exec sed -i 's|https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js|/usr/share/nodejs/mathjax-full/components/src/tex-chtml/tex-chtml.js|g' {} +
20 find -type f -name "*.html" -exec sed -i 's|https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css|/usr/share/javascript/bootstrap/css/bootstrap.min.css|g' {} +
21 find -type f -name "*.html" -exec sed -i 's|https://code.jquery.com/jquery-3.7.0.js|/usr/share/javascript/jquery/jquery.js|g' {} +
22 find -type f -name "*.html" -exec sed -i 's|https://raw.githubusercontent.com/holgern/scikit-optimize/main/media/bo-objective.png|(URL removed)|g' {} +
23
24 # Remove license file
25 find -type f -name "LICENSE.txt" -delete
26
27 dh_installdocs -ppython-scikit-optimize-doc --doc-main-package=python-scikit-optimize-doc \
28 --exclude=_downloads \
29 --exclude=_images \
30 build/sphinx/html
31
32 dh_installdocs -Npython-scikit-optimize-doc