Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export PYBUILD_NAME=goodvibes
4
5 %:
6 dh $@ --with sphinxdoc --buildsystem=pybuild
7
8 override_dh_auto_install:
9 dh_auto_install
10
11 # Remove executable in not-elf-or-script
12 find debian/python3-goodvibes/usr/lib/python3.*/dist-packages/goodvibes/examples -type f -exec chmod -x {} +
13
14 # Exclude the 'goodvibes' executable
15 rm debian/python3-goodvibes/usr/bin/goodvibes
16 rm -d debian/python3-goodvibes/usr/bin
17
18 execute_after_dh_auto_install:
19 # Remove unknown-file-in-python-module-directory
20 rm -f debian/python3-goodvibes/usr/lib/python3.*/dist-packages/GoodVibes_test.dat
21
22 override_dh_installdocs:
23 https_proxy='127.0.0.1:9' http_proxy='127.0.0.1:9' sphinx-build -b html docs build/sphinx/html
24
25 #Remove or replace privacy-breach URLs with local paths
26 find -type f -name "*.html" -exec sed -i 's|https://anaconda.org/patonlab/goodvibes/badges/downloads.svg|(URL removed)|g' {} +
27 find -type f -name "*.html" -exec sed -i 's|https://anaconda.org/patonlab/goodvibes/badges/installer/conda.svg|(URL removed)|g' {} +
28 find -type f -name "*.html" -exec sed -i 's|https://travis-ci.org/|(URL removed)|g' {} +
29 find -type f -name "*.html" -exec sed -i 's|https://readthedocs.org/projects/goodvibespy/badge/|(URL removed)|g' {} +
30 find -type f -name "*.html" -exec sed -i 's|https://img.shields.io/badge/|(URL removed)|g' {} +
31 find -type f -name "*.html" -exec sed -i 's|https://badge.fury.io/py/goodvibes.svg|(URL removed)|g' {} +
32 find -type f -name "*.html" -exec sed -i 's|https://anaconda.org/conda-forge/goodvibes/badges/downloads.svg|(URL removed)|g' {} +
33 find -type f -name "*.html" -exec sed -i 's|https://anaconda.org/conda-forge/goodvibes/badges/license.svg|(URL removed)|g' {} +
34 find -type f -name "*.html" -exec sed -i 's|https://zenodo.org/badge/54848929.svg|(URL removed)|g' {} +
35 find -type f -name "*.html" -exec sed -i 's|https://github.com/patonlab/GoodVibes/blob/master/goodvibes.png|(URL removed)|g' {} +
36 find -type f -name "*.html" -exec sed -i 's|https://github.com/patonlab/GoodVibes/actions/workflows/tests.yml/badge.svg|(URL removed)|g' {} +
37
38 dh_installdocs -ppython-goodvibes-doc --doc-main-package=python-goodvibes-doc build/sphinx/html
39 dh_installdocs