Replace pipenv with poetry for environment setup and dependency management in Makefile
This commit is contained in:
16
Makefile
16
Makefile
@@ -3,13 +3,13 @@ VERSION=1.0.0
|
|||||||
ROOT=/home/will
|
ROOT=/home/will
|
||||||
ICON=chart-671.png
|
ICON=chart-671.png
|
||||||
setup-env:
|
setup-env:
|
||||||
pip3 install pipenv
|
pip install poetry
|
||||||
pipenv --python 3.13
|
poetry env use 3.13
|
||||||
# pipenv shell --python 3.13
|
poetry install
|
||||||
pipenv install --dev
|
poetry lock
|
||||||
pipenv run pre-commit install --install-hooks --overwrite
|
poetry run pre-commit install --install-hooks --overwrite
|
||||||
pipenv run pre-commit autoupdate
|
poetry run pre-commit autoupdate
|
||||||
pipenv run pre-commit run --all-files
|
poetry run pre-commit run --all-files
|
||||||
build:
|
build:
|
||||||
docker buildx build --platform linux/amd64,linux/arm64 -t ${IMAGE} --push .
|
docker buildx build --platform linux/amd64,linux/arm64 -t ${IMAGE} --push .
|
||||||
install:
|
install:
|
||||||
@@ -32,4 +32,6 @@ format:
|
|||||||
docker-compose exec ${TARGET} pipenv run pre-commit run --all-files --show-diff
|
docker-compose exec ${TARGET} pipenv run pre-commit run --all-files --show-diff
|
||||||
shell:
|
shell:
|
||||||
docker-compose exec -it ${TARGET} /bin/bash
|
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
|
.PHONY: setup-env build install run start stop test lint format shell
|
||||||
|
|||||||
Reference in New Issue
Block a user