forked from omnilib/aiosqlite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
33 lines (25 loc) · 821 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
venv:
python3 -m venv .venv
setup:
pip3 install -U mypy pylint twine aiounittest coverage codecov
if python3 -V | grep "3.[67]"; then pip3 install black; fi
dev: venv
source .venv/bin/activate && make setup
source .venv/bin/activate && python3 setup.py develop
@echo 'Run `source .venv/bin/activate` to develop aiosqlite'
release: lint test clean
python3 setup.py sdist
python3 -m twine upload dist/*
lint:
mypy --ignore-missing-imports --no-site-packages aiosqlite
pylint --rcfile .pylint aiosqlite setup.py
if python3 -V | grep "3.[67]"; then which black && black --check . ; fi
test:
python3 -m coverage run -m aiosqlite.tests
python3 -m coverage report
perf:
python3 -m unittest -v aiosqlite.tests.perf
clean:
rm -rf build dist README MANIFEST aiosqlite.egg-info
distclean: clean
rm -rf .venv