File: rules

package info (click to toggle)
cmd2 2.5.11%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,164 kB
  • sloc: python: 19,640; makefile: 73; sh: 67; javascript: 30
file content (29 lines) | stat: -rwxr-xr-x 866 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/make -f
export DH_VERBOSE=1
export PYBUILD_NAME=cmd2
%:
	dh $@  --buildsystem=pybuild

#Build sphinx HTML documentation
override_dh_auto_build:
	dh_auto_build
ifeq ($(filter nodoc,$(DEB_BUILD_OPTIONS)),)
	mkdocs build -d $(CURDIR)/debian/html -f $(CURDIR)/mkdocs.yml
endif


#Fixe privacy-breach-generic
override_dh_installdocs:
	dh_installdocs

	find debian/python-cmd2-doc/ -name '*.html' -exec sed -i 's|https://fonts||g' {} \;

#Skipping tests with unknown errors
override_dh_auto_test:
	dh_auto_test -- --system=custom --test-args="PYTHONPATH={build_dir} {interpreter} \
		-m pytest -k 'not test_version and not test_path_completion_complete_user and \
		not test_transcript and not test_find_editor_not_specified and \
		not test_run_script_with_binary_file and not test_utils.py'"

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG.md