forked from omnilib/aiosqlite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
42 lines (31 loc) · 1003 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
.venv:
python -m venv .venv
source .venv/bin/activate && make setup dev
echo 'run `source .venv/bin/activate` to develop aiosqlite'
venv: .venv
setup:
python -m pip install -Ur requirements-dev.txt
if python -V | grep -v "3.5"; then python -m pip install -U black; fi
dev:
flit install --symlink
release: lint test clean
flit publish
format:
python -m isort --apply --recursive aiosqlite
python -m black aiosqlite
lint:
python -m pylint --rcfile .pylint aiosqlite/*.py
if python -V | grep -v "3.5"; then python -m isort --diff --recursive aiosqlite; fi
if python -V | grep -v "3.5"; then python -m black --check aiosqlite; fi
test:
python -m coverage run -m aiosqlite.tests
python -m coverage report
python -m mypy aiosqlite/*.py
perf:
python -m unittest -v aiosqlite.tests.perf
html: .venv README.rst docs/*.rst docs/conf.py
source .venv/bin/activate && sphinx-build -b html docs html
clean:
rm -rf build dist html README MANIFEST *.egg-info
distclean: clean
rm -rf .venv