-
Notifications
You must be signed in to change notification settings - Fork 101
/
makefile
44 lines (33 loc) · 883 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
PKG:=aiomultiprocess
EXTRAS:=dev,docs
.venv:
python -m venv .venv
source .venv/bin/activate && make install
echo 'run `source .venv/bin/activate` to use virtualenv'
venv: .venv
install:
python -m pip install -U pip
python -m pip install -Ue .[$(EXTRAS)]
release: lint test clean
python -m flit publish
format:
python -m usort format $(PKG)
python -m black $(PKG)
lint:
python -m flake8 $(PKG)
python -m usort check $(PKG)
python -m black --check $(PKG)
test:
python -m coverage run -m aiomultiprocess.tests
python -m coverage combine
python -m coverage report
python -m mypy $(PKG)
perf:
export PERF_TESTS=1 && make test
.PHONY: html
html: .venv README.md docs/* docs/*/* aiomultiprocess/*
source .venv/bin/activate && sphinx-build -ab html docs html
clean:
rm -rf build dist html README MANIFEST aiomultiprocess.egg-info
distclean: clean
rm -rf .venv