/
makefile
44 lines (36 loc) · 833 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
help:
@echo
@echo " json-doc"
@echo
@echo " Makefile targets"
@echo " - dev: install dev dependencies"
@echo " - dist: build distribution package"
@echo " - test: run test coverage"
@echo
@echo " - lint: run pylint"
@echo
@echo " - twine-test: upload to pypi test"
@echo " - twine-dist: upload to pypi dist"
@echo
@echo " For installation"
@echo " python setup.py install"
@echo
dev:
@echo "Installing requirements for dev"
pip install -U -r requirements-dev.txt
dist:
@echo "Building package"
python setup.py sdist bdist_wheel
clean:
@echo "Cleaning up"
rm -rf .eggs build/ dist/ json_doc.egg-info
test:
@echo "Running tests"
python setup.py test
lint:
@echo "Running checks"
pylint json_doc tests
twine-test:
twine upload --repository testpypi dist/*
twine-dist:
twine upload dist/*