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