Updated Makefile.
This commit is contained in:
parent
46fa756d94
commit
9405fe728b
14
Makefile
14
Makefile
@ -1,23 +1,23 @@
|
||||
ENV=./.venv/bin/activate
|
||||
|
||||
PYTHON=./.venv/bin/python
|
||||
all: ensure_env format build install test
|
||||
|
||||
format:
|
||||
./.venv/bin/python -m pip install shed
|
||||
$(PYTHON) -m pip install shed
|
||||
. $(ENV) && python -m shed
|
||||
|
||||
ensure_env:
|
||||
-@python3 -m venv .venv
|
||||
|
||||
build:
|
||||
./.venv/bin/python -m pip install build
|
||||
./.venv/bin/python -m build .
|
||||
$(PyTHON) -m pip install build
|
||||
$(PYTHON) -m build .
|
||||
|
||||
install:
|
||||
./.venv/bin/python -m pip install -e .
|
||||
$(PYTHON) -m pip install -e .
|
||||
|
||||
run:
|
||||
python -m ragnar.run
|
||||
$(PYTHON) -m ragnar.run
|
||||
|
||||
test:
|
||||
./.venv/bin/python -m unittest ragnar.tests
|
||||
$(PYTHON) -m unittest ragnar.tests
|
||||
|
Loading…
Reference in New Issue
Block a user