forked from pedrokiefer/aiostomp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (32 loc) · 777 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
.PHONY: setup clean test test_unit flake8 autopep8 upload
BUMP := 'patch'
setup:
@pip install -Ue .\[tests\]
clean:
rm -rf .coverage
find . -name "*.pyc" -exec rm '{}' ';'
unit test_unit test: clean flake8
@nosetests -v --with-cover --cover-package=aiostomp --with-yanc -s tests/
@$(MAKE) coverage
focus:
@nosetests -vv --with-cover --cover-package=aiostomp \
--with-yanc --logging-level=WARNING --with-focus -i -s tests/
coverage:
@coverage report -m --fail-under=80
coverage_html:
@coverage html
@open htmlcov/index.html
flake8:
flake8 aiostomp/
flake8 bench/
flake8 tests/
patch:
@$(eval BUMP := 'patch')
minor:
@$(eval BUMP := 'minor')
major:
@$(eval BUMP := 'major')
bump:
@bumpversion ${BUMP}
upload:
python ./setup.py sdist upload -r pypi