Skip to content

Commit

Permalink
chore: pin poetry to 1.8.5 (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
adubovik authored Jan 9, 2025
1 parent a446e6b commit 0a4ccc8
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 0a4ccc8

Please sign in to comment.