File: rules

package info (click to toggle)
python-pyfaidx 0.5.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 636 kB
  • sloc: python: 2,911; makefile: 16; sh: 5
file content (26 lines) | stat: -rwxr-xr-x 632 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_NAME=pyfaidx

%:
	LC_ALL=C.UTF-8 dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	bgzip -c tests/data/genes.fasta > tests/data/genes.fasta.gz
	dh_auto_test -- --test --system=custom --test-args='set -e; \
				{interpreter} -m "nose" --with-coverage --cover-package=pyfaidx'
endif

override_dh_compress:
	dh_compress --exclude=gz.tbi

override_dh_auto_clean:
	dh_auto_clean
	rm -f .coverage
	rm -f tests/data/genes.fasta.gz
	rm -rf pyfaidx.egg-info