forked from MagicStack/asyncpg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (27 loc) · 870 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
44
45
.PHONY: compile debug test clean all
PYTHON ?= python
all: compile
clean:
rm -fr dist/ doc/_build/
rm -fr asyncpg/protocol/*.c asyncpg/protocol/*.html
rm -fr asyncpg/protocol/*.so build *.egg-info
rm -fr asyncpg/protocol/codecs/*.html
find . -name '__pycache__' | xargs rm -rf
compile:
$(PYTHON) setup.py build_ext --inplace --cython-always
debug:
$(PYTHON) setup.py build_ext --inplace --debug \
--cython-always \
--cython-annotate \
--cython-directives="linetrace=True" \
--define ASYNCPG_DEBUG,CYTHON_TRACE,CYTHON_TRACE_NOGIL
test:
PYTHONASYNCIODEBUG=1 $(PYTHON) -m unittest discover -s tests
$(PYTHON) -m unittest discover -s tests
USE_UVLOOP=1 $(PYTHON) -m unittest discover -s tests
sdist: clean compile test
$(PYTHON) setup.py sdist
release: clean compile test
$(PYTHON) setup.py sdist upload
htmldocs:
$(MAKE) -C docs html