forked from diff-match-patch-python/diff-match-patch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
34 lines (25 loc) · 731 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
.venv:
python -m venv .venv
source .venv/bin/activate && make setup dev
echo 'run `source .venv/bin/activate` to develop diff-match-patch'
venv: .venv
setup:
python -m pip install -Ur requirements-dev.txt
dev:
python setup.py develop
release: lint test clean
python setup.py sdist wheel
python -m twine upload dist/*
format:
python -m isort diff_match_patch
python -m black diff_match_patch
lint:
python -m isort --diff diff_match_patch
python -m black --check diff_match_patch
test:
python -m unittest -v diff_match_patch.tests
if python -V | grep -v "2.7"; then python -m mypy diff_match_patch/diff_match_patch.py; fi
clean:
rm -rf build dist html README MANIFEST *.egg-info
distclean: clean
rm -rf .venv