-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
61 lines (51 loc) · 1.67 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
50
51
52
53
54
55
56
57
58
59
60
61
.PHONY: venv test clean build dist
PYTHON_INTERPRETER ?= python3
OUTPUT_README = README.md
SHELL = bash
venv:
python3 -m venv venv &&\
. venv/bin/activate &&\
pip install --upgrade pip setuptools &&\
pip install -r requirements.txt -r requirements-dev.txt &&\
python -m pip install -e .
setup-test-unit:
python3 -m venv venv &&\
. venv/bin/activate &&\
pip install -r requirements.txt -r requirements-dev.txt &&\
python -m pip install -e .
test:
$(PYTHON_INTERPRETER) -m coverage run --source nuclear -m pytest -vv --tb=short -ra --color=yes $(test)
# show code coverage info
$(PYTHON_INTERPRETER) -m coverage report --show-missing --skip-empty --skip-covered
readme:
cat docs/about.md > $(OUTPUT_README)
echo -en '\n\n' >> $(OUTPUT_README)
cat docs/demo.md >> $(OUTPUT_README)
echo -en '\n\n' >> $(OUTPUT_README)
# cat docs/toc.md >> $(OUTPUT_README)
# echo -en '\n\n' >> $(OUTPUT_README)
# cat docs/how-it-works.md >> $(OUTPUT_README)
# echo -en '\n\n' >> $(OUTPUT_README)
# cat docs/quick-start.md >> $(OUTPUT_README)
# echo -en '\n\n' >> $(OUTPUT_README)
# cat docs/vs-argparse-short.md >> $(OUTPUT_README)
# echo -en '\n\n' >> $(OUTPUT_README)
# cat docs/installation.md >> $(OUTPUT_README)
# echo -en '\n\n' >> $(OUTPUT_README)
# cat docs/cheatsheet-short.md >> $(OUTPUT_README)
# echo -en '\n\n' >> $(OUTPUT_README)
cat docs/sublog.md >> $(OUTPUT_README)
echo -en '\n\n' >> $(OUTPUT_README)
cat docs/shell.md >> $(OUTPUT_README)
clean:
rm -rf build/
rm -rf dist/
rm -rf ./*.egg-info
build:
python setup.py sdist bdist_wheel
release: clean readme build
python -m twine upload -u __token__ dist/*
mkdocs-local:
mkdocs serve
mkdocs-push:
mkdocs gh-deploy --force