mirror of
https://github.com/tasmota/tasmotizer.git
synced 2026-03-03 07:04:12 +01:00
39 lines
769 B
Makefile
39 lines
769 B
Makefile
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/*;
|
|
|
|
|