38 lines
858 B
Makefile
38 lines
858 B
Makefile
VENV := $$HOME/.local/share/venv/uncia
|
|
PYTHON := $(VENV)/bin/python
|
|
PYTHON_SYS := `which python3`
|
|
|
|
install: setupvenv
|
|
install-dev: setupvenv setupdev
|
|
install-nodeb: setupvenv
|
|
reinstall: clean setupvenv
|
|
uninstall: clean
|
|
update: update-deps
|
|
|
|
|
|
clean:
|
|
find . -name '__pycache__' -exec rm --recursive --force {} +
|
|
find . -name '*.pyc' -exec rm --force {} +
|
|
find . -name '*.pyo' -exec rm --force {} +
|
|
rm --recursive --force $(VENV)
|
|
|
|
setupvenv:
|
|
$(PYTHON_SYS) -m venv $(VENV)
|
|
$(PYTHON) -m pip install -U setuptools pip
|
|
$(PYTHON) -m pip install wheel
|
|
$(PYTHON) -m pip install -r requirements.txt
|
|
|
|
|
|
setupdev:
|
|
$(PYTHON) -m pip install vulture
|
|
$(PYTHON) -m pip install "git+https://git.barkshark.xyz/izaliamae/reload.git"
|
|
|
|
update-deps:
|
|
$(PYTHON) -m pip install -U -r requirements.txt
|
|
|
|
run:
|
|
$(PYTHON) -m uncia
|
|
|
|
dev:
|
|
env LOG_LEVEL='debug' $(PYTHON) -m reload
|