-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
43 lines (34 loc) · 1006 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
.PHONY: clean-pyc clean-build clean
PY = python3
PIP = pip3
help:
@echo "clean - remove all build, pyc"
@echo "clean-build - remove all build"
@echo "clean-pyc - remove all python cache"
@echo "dist - packaging"
@echo "install - install by setup.py file local"
@echo "release - packaging and upload as release"
@echo "dev - install for development environment"
clean: clean-build clean-pyc
clean-build:
rm -rf build/
rm -rf dist/
rm -rf .eggs/
find . -name '*.egg-info' -exec rm -rf {} +
find . -name '*.egg' -exec rm -f {} +
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*.~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -rf {} +
dist: clean
${PY} setup.py sdist bdist_wheel
ls -l dist/
release: clean
${PY} setup.py sdist bdist_wheel
twine upload dist/*
install: clean
${PY} setup.py install
dev: clean
pip install twine setuptools wheel
${PIP} install --editable .