forked from DasIch/brownie
/
Makefile
34 lines (27 loc) · 938 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
help:
@echo "Possible targets:"
@echo " test - runs the testsuite"
@echo " doc - builds the html documentation"
@echo " view-doc - opens the documentation in your web browser"
@echo " upload-doc - uploads the documentation to PyPI"
@echo " dev-env <DIR=> - creates a development environment"
@echo " clean - deletes every generated file"
@echo " release - performs the release"
test:
@tox
doc:
@make -C docs/ html
view-doc: doc
@python -c "import webbrowser; webbrowser.open('docs/_build/html/index.html')"
upload-doc: doc
@python setup.py upload_docs --upload-dir=docs/_build/html
DIR ?= env
dev-env:
@virtualenv $(DIR)
@. $(DIR)/bin/activate && pip install sphinx attest tox
clean:
@make -C docs/ clean > /dev/null
@find . -iname "*.pyc" -delete
@rm -rf .tox Brownie.egg-info dist
release: test upload-doc
python setup.py release sdist upload