Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 export DH_VERBOSE=1
3 export PYBUILD_NAME=cmd2
4 %:
5 dh $@ --buildsystem=pybuild
6
7 # Build sphinx HTML documentation
8 ifeq ($(filter nodoc,$(DEB_BUILD_OPTIONS)),)
9 execute_after_dh_auto_build:
10 mkdocs build -d $(CURDIR)/debian/html -f $(CURDIR)/mkdocs.yml
11 endif
12
13
14 #Fixe privacy-breach-generic
15 execute_after_dh_installdocs:
16
17 find debian/python-cmd2-doc/ -name '*.html' -exec sed -i 's|https://fonts||g' {} \;
18 # Remove external references to twemoji emojis
19 find debian/python-cmd2-doc/usr/share/doc/ -name "*.html" -exec \
20 sed -i 's|<img[^>]*cdn\.jsdelivr\.net[^>]*/twemoji[^>]*>||g' {} \;
21
22 # Skipping tests with unknown errors
23 override_dh_auto_test:
24 dh_auto_test -- --system=custom --test-args="PYTHONPATH={build_dir} {interpreter} \
25 -m pytest -k 'not test_version and not test_path_completion_complete_user and \
26 not test_transcript and not test_find_editor_not_specified and \
27 not test_run_script_with_binary_file and not test_utils.py and \
28 not test_perror_style and not test_ansi_pouterr_always_tty and \
29 not test_ansi_pouterr_always_notty and not test_ansi_terminal_tty'"
30
31 override_dh_installchangelogs:
32 dh_installchangelogs CHANGELOG.md