forked from ValvePython/vdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (29 loc) · 749 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
# Makefile for VDF module
define HELPBODY
Available commands:
make help - this thing.
make init - install python dependancies
make test - run tests and coverage
make pylint - code analysis
make build - pylint + test
endef
export HELPBODY
help:
@echo "$$HELPBODY"
init:
pip install -r requirements.txt
test:
rm -f .coverage vdf/*.pyc tests/*.pyc
PYTHONHASHSEED=0 nosetests --verbosity 1 --with-coverage --cover-package=vdf
pylint:
pylint -r n -f colorized vdf || true
build: pylint test
clean:
rm -rf dist vdf.egg-info vdf/*.pyc
dist: clean
python setup.py sdist
python setup.py bdist_wheel --universal
register:
python setup.py register -r pypi
upload: dist register
twine upload -r pypi dist/*