-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
43 lines (28 loc) · 882 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
42
43
include common.mk
MODULES=bgzip tests
test: lint mypy bgzip_utils tests
profile: bgzip_utils
python dev_scripts/profile.py
lint:
flake8 $(MODULES) *.py
mypy:
mypy --ignore-missing-imports $(MODULES)
tests:
PYTHONWARNINGS=ignore:ResourceWarning coverage run --source=bgzip \
-m unittest discover --start-directory tests --top-level-directory . --verbose
version: bgzip/version.py
bgzip/version.py: setup.py
echo "__version__ = '$$(python setup.py --version)'" > $@
clean:
git clean -dfx
bgzip_utils.c: clean
cython bgzip_utils/bgzip_utils.pyx
bgzip_utils: clean
BUILD_WITH_CYTHON=1 python setup.py build_ext --inplace
build: clean version
BUILD_WITH_CYTHON=1 python setup.py bdist_wheel
sdist: clean version bgzip_utils.c
python setup.py sdist
install: build
pip install --upgrade dist/*.whl
.PHONY: test profile lint mypy tests clean build sdist install