forked from omnilib/aiomultiprocess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
47 lines (34 loc) · 899 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
46
47
PKG:=aiomultiprocess
build:
python -m flit build
dev:
python -m flit install --symlink
setup:
python -m pip install -Ur requirements-dev.txt
.venv:
python -m venv .venv
source .venv/bin/activate && make setup dev
echo 'run `source .venv/bin/activate` to use virtualenv'
venv: .venv
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
html: .venv README.md docs/* docs/*/* aiomultiprocess/*
source .venv/bin/activate && sphinx-build -b html docs html
clean:
rm -rf build dist html README MANIFEST aiomultiprocess.egg-info
distclean: clean
rm -rf .venv