-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 758 Bytes
/
Copy pathMakefile
File metadata and controls
38 lines (28 loc) · 758 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
28
29
30
31
32
33
34
35
36
37
38
.DEFAULT_GOAL := docs
venv:
if [[ ! -d "venv" ]]; then python -m virtualenv venv; fi
init: venv
pip install -r requirements.txt
pip install -e .
tox:
@# just to document that it is here
@tox
test:
# This runs all of the tests with coverage
python setup.py test
coverage: test
python -m http.server -d tests/coverage
clean:
python setup.py clean
wheel: clean
python setup.py dist
test-publish:
# https://packaging.python.org/tutorials/packaging-projects/
twine check dist/*
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
publish:
twine upload dist/*
.PHONY: docs
docs:
@cd docs && $(MAKE) --no-print-directory html
@echo -e "\033[96m\nBuild successful! Docs URL: file://$(PWD)/docs/_build/html/index.html\033[0m"