forked from komuw/sewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (25 loc) · 990 Bytes
/
Makefile
File metadata and controls
27 lines (25 loc) · 990 Bytes
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
upload:
@rm -rf build
@rm -rf dist
@sudo rm -rf sewer.egg-info
@python setup.py sdist
@python setup.py bdist_wheel
@twine upload dist/* -r testpypi
@pip3 install -U -i https://testpypi.python.org/pypi sewer
uploadprod:
@rm -rf build
@rm -rf dist
@sudo rm -rf sewer.egg-info
@python setup.py sdist
@python setup.py bdist_wheel
@twine upload dist/*
@pip3 install -U sewer
# you can run single testcase as;
# python -m unittest sewer.tests.test_Client.TestClient.test_something
test:
@printf "\n removing pyc files::\n" && find . -type f -name *.pyc -delete | echo
@printf "\n coverage erase::\n" && coverage erase
@printf "\n coverage run::\n" && coverage run --omit="*tests*,*.virtualenvs/*,*.venv/*,*__init__*,*/usr/local/lib/python2.7/dist-packages*" -m unittest discover
@printf "\n coverage report::\n" && coverage report --show-missing --fail-under=85
@printf "\n run flake8::\n" && flake8 .
@printf "\n run pylint::\n" && pylint --enable=E --disable=W,R,C sewer/