-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile
45 lines (33 loc) · 810 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
.PHONY: clean-pyc
default: test
clean-pyc:
@find . -iname '*.py[co]' -delete
@find . -iname '__pycache__' -delete
@find . -iname '.coverage' -delete
@rm -rf htmlcov/
clean-dist:
@rm -rf dist/
@rm -rf build/
@rm -rf *.egg-info
clean: clean-pyc clean-dist
test:
pytest -vv tests
test-cov:
pytest -vv --cov=loafer tests
cov:
coverage report -m
cov-report:
pytest -vv --cov=loafer --cov-report=html tests
check-fixtures:
pytest --dead-fixtures
dist: clean
python setup.py sdist
python setup.py bdist_wheel
release: dist
git tag `python setup.py -q version`
git push origin `python setup.py -q version`
twine upload dist/*
changelog-preview:
@echo "\nmaster ("$$(date '+%Y-%m-%d')")"
@echo "-------------------\n"
@git log $$(python setup.py -q version)...master --oneline --reverse