-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (39 loc) · 1.37 KB
/
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
45
46
47
48
49
help:
@echo "Possible targets:"
@echo " test - runs the testsuite"
@echo " test-all - runs the testsuite against all python versions"
@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"
@echo " coverage - create coverage report"
@echo " view-coverage - show HTML coverage report in your web browser"
test:
@python runtests.py
@PYTHONPATH=. python brownie/terminal
test-all:
@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 -r requirements.txt
clean:
@make -C docs/ clean > /dev/null
@find . -iname "*.pyc" -delete
@rm -rf .tox Brownie.egg-info dist
release: clean test upload-doc
python setup.py release sdist upload
coverage:
@coverage run runtests.py
@coverage report
@coverage html
view-coverage: coverage
@python -c "import webbrowser; webbrowser.open('.coverage_html/index.html')"