mirror of
https://codeberg.org/privacy1st/subprocess-util
synced 2024-12-22 22:06:05 +01:00
update Makefile
This commit is contained in:
parent
53ec98f397
commit
f18b3d8ffd
16
Makefile
16
Makefile
@ -12,22 +12,24 @@ SHELL := bash
|
|||||||
.SHELLFLAGS := -eu -o pipefail -c
|
.SHELLFLAGS := -eu -o pipefail -c
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all:
|
all: install
|
||||||
sudo python3 -m pip install --upgrade --force-reinstall .
|
|
||||||
|
|
||||||
# Python Dependency Locking with pip-tools
|
.PHONY: install
|
||||||
# https://lincolnloop.com/insights/python-dependency-locking-pip-tools/
|
install:
|
||||||
|
sudo python3 -m pip install --upgrade --force-reinstall .
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: venv
|
test: venv
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
export PYTHONPATH="${PYTHONPATH}:src"
|
||||||
|
|
||||||
python3 src/subprocess_util/test.py
|
python3 src/subprocess_util/test.py
|
||||||
|
|
||||||
|
.PHONY: venv
|
||||||
venv:
|
venv:
|
||||||
if [ -d venv ]; then
|
if [ ! -d venv ]; then
|
||||||
rm -r venv
|
python3 -m venv venv
|
||||||
fi
|
fi
|
||||||
python3 -m venv venv
|
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
Loading…
Reference in New Issue
Block a user