-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (40 loc) · 897 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
56
57
58
59
60
.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/kitools
mv ./docs/kitools/* ./docs/
rmdir ./docs/kitools
.PHONY: init_dev
init_dev:
pip install -r requirements.txt
.PHONY: test
test:
pytest -v --cov --cov-report=term --cov-report=html
.PHONY: tox
tox:
tox
.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 kitools
.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 kitools