-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
41 lines (28 loc) · 937 Bytes
/
Makefile
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
31
32
33
34
35
36
37
38
39
40
41
include common.mk
MODULES=xsamtools tests
export TNU_TESTMODE?=workspace_access
test: lint mypy test-samtools tests
lint:
flake8 $(MODULES) *.py
mypy:
mypy --ignore-missing-imports --no-strict-optional $(MODULES)
tests:
PYTHONWARNINGS=ignore:ResourceWarning coverage run --source=xsamtools \
-m unittest discover --start-directory tests --top-level-directory . --verbose
version: xsamtools/version.py
xsamtools/version.py: setup.py
echo "__version__ = '$$(python setup.py --version)'" > $@
sdist: version
python setup.py sdist
build: version
python setup.py bdist_wheel
install: build
pip install --upgrade dist/*.whl -e .
test-samtools: build/samtools/samtools build/htslib/htsfile build/bcftools/bcftools
build/htslib/htsfile:
python setup.py bdist_wheel
build/bcftools/bcftools:
python setup.py bdist_wheel
build/samtools/samtools:
python setup.py bdist_wheel
.PHONY: test lint mypy tests sdist build install