The beginning tm
This commit is contained in:
parent
8682fc9110
commit
9023d9ccbb
5 changed files with 25 additions and 0 deletions
13
Makefile
Normal file
13
Makefile
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
PYTHON ?= python3
|
||||
VENV ?= .venv
|
||||
|
||||
.PHONY: venv
|
||||
venv: $(VENV)/bin/activate
|
||||
$(VENV)/bin/activate: requirements.txt
|
||||
rm -rf '$(VENV)'
|
||||
'$(PYTHON)' -m venv '$(VENV)'
|
||||
'$(VENV)'/bin/pip install -r requirements.txt
|
||||
|
||||
.PHONY: shell
|
||||
shell: venv
|
||||
@ '$(VENV)'/bin/python
|
||||
Reference in a new issue