Replace pipenv with poetry for environment setup and dependency management in Makefile

This commit is contained in:
William Valentin
2025-07-24 11:02:02 -07:00
parent 0a0e5cb75c
commit 32c04efd2d

View File

@@ -3,13 +3,13 @@ VERSION=1.0.0
ROOT=/home/will
ICON=chart-671.png
setup-env:
pip3 install pipenv
pipenv --python 3.13
# pipenv shell --python 3.13
pipenv install --dev
pipenv run pre-commit install --install-hooks --overwrite
pipenv run pre-commit autoupdate
pipenv run pre-commit run --all-files
pip install poetry
poetry env use 3.13
poetry install
poetry lock
poetry run pre-commit install --install-hooks --overwrite
poetry run pre-commit autoupdate
poetry run pre-commit run --all-files
build:
docker buildx build --platform linux/amd64,linux/arm64 -t ${IMAGE} --push .
install:
@@ -32,4 +32,6 @@ format:
docker-compose exec ${TARGET} pipenv run pre-commit run --all-files --show-diff
shell:
docker-compose exec -it ${TARGET} /bin/bash
requirements:
poetry export --without-hashes -f requirements.txt -o requirements.txt
.PHONY: setup-env build install run start stop test lint format shell