File: rules

package info (click to toggle)
pychopper 2.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 89,272 kB
  • sloc: python: 1,010; makefile: 238; sh: 45
file content (30 lines) | stat: -rwxr-xr-x 756 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
30
#!/usr/bin/make -f
export DH_VERBOSE = 1

export PYBUILD_NAME=pychopper

%:
	dh $@ --with python3 --buildsystem=pybuild


override_dh_auto_build:
	dh_auto_build
	cd docs && PYTHONPATH=.. make man

override_dh_auto_install:
	dh_auto_install
	find debian/python3-pychopper -name .gitignore -delete

override_dh_auto_clean:
	dh_auto_clean
	rm -rf .pytest_cache .pybuild
	make clean
	cd docs && make clean # fails
	rm -f docs/cmd_list.rst docs/pychopper.phmm_data.rst docs/pychopper.primer_data.rst docs/pychopper.tests.rst
	rm -f cdna_classifier_report.pdf cdna_classifier_report.tsv


override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test -- --system=custom --test-args="PYTHONPATH={build_dir} {interpreter} -m pytest -v"
endif