From 0a4ccc815d8a28f0a9a6652b7c2d417113eff051 Mon Sep 17 00:00:00 2001 From: Anton Dubovik Date: Thu, 9 Jan 2025 12:07:53 +0100 Subject: [PATCH] chore: pin poetry to 1.8.5 (#209) --- Makefile | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index f3f87d2..bc42430 100644 --- a/Makefile +++ b/Makefile @@ -1,29 +1,37 @@ +VENV ?= .venv +POETRY ?= ${VENV}/bin/poetry +POETRY_VERSION ?= 1.8.5 + all: build -install: - poetry install --all-extras +init_env: + python -m venv ${VENV} + ${VENV}/bin/pip install poetry==${POETRY_VERSION} --quiet + +install: init_env + ${POETRY} install --all-extras build: install - poetry build + ${POETRY} build clean: - rm -rf $$(poetry env info --path) + rm -rf $$(${POETRY} env info --path) rm -rf .nox rm -rf .pytest_cache rm -rf dist find . -type d -name __pycache__ | xargs rm -r publish: build - poetry publish -u __token__ -p ${PYPI_TOKEN} --skip-existing + ${POETRY} publish -u __token__ -p ${PYPI_TOKEN} --skip-existing lint: install - poetry run nox -s lint + ${POETRY} run nox -s lint format: install - poetry run nox -s format + ${POETRY} run nox -s format test: install - poetry run nox -s test $(if $(PYTHON),--python=$(PYTHON),) + ${POETRY} run nox -s test $(if $(PYTHON),--python=$(PYTHON),) benchmark: install python -m benchmark.benchmark_merge_chunks