1
0
mirror of https://codeberg.org/privacy1st/subprocess-util synced 2025-01-10 00:31:20 +01:00

update Makefile

This commit is contained in:
Daniel Langbein 2023-03-19 19:02:50 +01:00
parent 53ec98f397
commit f18b3d8ffd

@ -12,22 +12,24 @@ SHELL := bash
.SHELLFLAGS := -eu -o pipefail -c
.PHONY: all
all:
sudo python3 -m pip install --upgrade --force-reinstall .
all: install
# Python Dependency Locking with pip-tools
# https://lincolnloop.com/insights/python-dependency-locking-pip-tools/
.PHONY: install
install:
sudo python3 -m pip install --upgrade --force-reinstall .
.PHONY: test
test: venv
source venv/bin/activate
export PYTHONPATH="${PYTHONPATH}:src"
python3 src/subprocess_util/test.py
.PHONY: venv
venv:
if [ -d venv ]; then
rm -r venv
fi
if [ ! -d venv ]; then
python3 -m venv venv
fi
.PHONY: clean
clean: