Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: pin poetry to 1.8.5 #209

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading