forked from tasmota/tasmotizer
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
38 lines (29 loc) · 769 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
venv:
@echo "creating Virtualenv..."
virtualenv -p python3 venv
. venv/bin/activate; \
pip install --upgrade pip setuptools; \
pip install -r requirements.txt;
build: venv
@echo "creating Application..."
. venv/bin/activate; \
pip install -U pyinstaller; \
pyinstaller --console --onefile --name=tasmotizer tasmotizer.py;
clean:
@echo "cleaning..."
@rm -f *.spec
@rm -rf __pycache__
@rm -rf build
@rm -rf dist
run: venv
. venv/bin/activate; \
python3 tasmotizer.py;
bdist:
@echo "building bdist_wheel..."
python3 setup.py sdist bdist_wheel;
test_publish: clean bdist
@echo "uploading to test pypi..."
python3 -m twine upload --repository testpypi dist/*;
publish: clean bdist
@echo "uploading to pypi..."
python3 -m twine upload dist/*;