forked from amyreese/aiosqlite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
45 lines (34 loc) · 866 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
.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 -U pip
python -m pip install -Ur requirements-dev.txt
dev:
flit install --symlink
release: lint test clean
flit publish
format:
python -m usort format aiosqlite
python -m black aiosqlite
lint:
python -m flake8 aiosqlite
python -m usort check aiosqlite
python -m black --check aiosqlite
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
.PHONY: html
html: .venv README.rst docs/*.rst docs/conf.py
.venv/bin/sphinx-build -an -b html docs html
.PHONY: clean
clean:
rm -rf build dist html README MANIFEST *.egg-info
.PHONY: distclean
distclean: clean
rm -rf .venv