forked from igorcoding/asynctnt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
77 lines (47 loc) · 1.47 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
.PHONY: build debug test coverage clean annotate all style
PYTHON?=python
all: build
clean:
rm -rf asynctnt/*.c asynctnt/*.h asynctnt/*.cpp
rm -rf asynctnt/*.so asynctnt/*.html
rm -rf asynctnt/iproto/*.c asynctnt/iproto/*.h
rm -rf asynctnt/iproto/*.so asynctnt/iproto/*.html asynctnt/iproto/requests/*.html
rm -rf build *.egg-info .eggs dist
find . -name '__pycache__' | xargs rm -rf
rm -rf htmlcov
rm -rf __tnt*
rm -rf tests/__tnt*
build:
$(PYTHON) setup.py build_ext --inplace --cython-always
debug: clean
$(PYTHON) setup.py build_ext --inplace --debug \
--cython-always \
--cython-annotate \
--cython-gdb \
--cython-directives="linetrace=True" \
--define CYTHON_TRACE,CYTHON_TRACE_NOGIL
annotate:
cython -3 -a asynctnt/iproto/protocol.pyx
test:
PYTHONASYNCIODEBUG=1 $(PYTHON) -m unittest discover -v -s tests
$(PYTHON) -m unittest discover -v -s tests
USE_UVLOOP=1 $(PYTHON) -m unittest discover -v -s tests
quicktest:
$(PYTHON) -m unittest discover -v -s tests
test_16:
TARANTOOL_DOCKER_VERSION=1.6 $(PYTHON) -m unittest discover -s tests
test_17:
TARANTOOL_DOCKER_VERSION=1.7 $(PYTHON) -m unittest discover -s tests
coverage:
# pip install -e .
coverage run run_tests.py
./scripts/run_until_success.sh coverage report -m
./scripts/run_until_success.sh coverage html
style:
flake8 --config=.flake8
sdist: clean build test
$(PYTHON) setup.py sdist
release: clean build test
$(PYTHON) setup.py sdist upload
docs: build
$(MAKE) -C docs html