File: Makefile

package info (click to toggle)
asyncpg 0.30.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,956 kB
  • sloc: python: 14,680; ansic: 1,060; makefile: 227
file content (45 lines) | stat: -rw-r--r-- 956 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.PHONY: compile debug test quicktest clean all


PYTHON ?= python
ROOT = $(dir $(realpath $(firstword $(MAKEFILE_LIST))))


all: compile


clean:
	rm -fr dist/ doc/_build/
	rm -fr asyncpg/pgproto/*.c asyncpg/pgproto/*.html
	rm -fr asyncpg/pgproto/codecs/*.html
	rm -fr asyncpg/pgproto/*.so
	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:
	env ASYNCPG_BUILD_CYTHON_ALWAYS=1 $(PYTHON) -m pip install -e .


debug:
	env ASYNCPG_DEBUG=1 $(PYTHON) -m pip install -e .

test:
	PYTHONASYNCIODEBUG=1 $(PYTHON) -m unittest -v tests.suite
	$(PYTHON) -m unittest -v tests.suite
	USE_UVLOOP=1 $(PYTHON) -m unittest -v tests.suite


testinstalled:
	cd "$${HOME}" && $(PYTHON) $(ROOT)/tests/__init__.py


quicktest:
	$(PYTHON) -m unittest -v tests.suite


htmldocs:
	$(PYTHON) -m pip install -e .[docs]
	$(MAKE) -C docs html