-
Notifications
You must be signed in to change notification settings - Fork 35
/
Makefile
40 lines (28 loc) · 781 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
.PHONY: all install-dev test coverage cov test-all tox release-minor release-patch upload-minor upload-patch clean-pyc
all: test
install-dev:
pip install -q -e .[dev]
test: clean-pyc install-dev
pytest tests/
coverage: clean-pyc install-dev
pytest --cov-report term-missing --cov-report html --cov=deprecated tests/
cov: coverage
test-all: install-dev
tox
tox: test-all
release-minor:
bumpversion minor
python setup.py release
release-patch:
bumpversion patch
python setup.py release
upload-minor: release-minor
python setup.py upload
git push origin --tags
upload-patch: release-patch
python setup.py upload
git push origin --tags
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +