-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (37 loc) · 878 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
44
45
46
47
48
49
50
51
52
53
54
55
.PHONY: pip_install
pip_install:
pipenv install --dev
.PHONY: test
test:
pytest -v --cov --cov-report=term --cov-report=html
.PHONY: build
build: clean docs
python setup.py sdist
python setup.py bdist_wheel
twine check dist/*
.PHONY: clean
clean:
rm -rf ./build/*
rm -rf ./dist/*
rm -rf ./htmlcov
.PHONY: docs
docs:
rm -rf ./docs/*
pdoc --html --output-dir ./docs ./src/sls_tools
mv ./docs/sls_tools/* ./docs/
rmdir ./docs/sls_tools
.PHONY: install_local
install_local:
pip install -e .
.PHONY: install_test
install_test:
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple sls-tools
.PHONY: publish_test
publish_test: build
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
.PHONY: publish
publish: build
twine upload dist/*
.PHONY: uninstall
uninstall:
pip uninstall -y sls-tools