diff --git a/Dockerfile b/Dockerfile index e393b433..6ad54fc9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,10 +8,10 @@ COPY mozci /src/mozci/ # Run in a single step to get a small image RUN apk add --virtual build gcc libffi-dev musl-dev postgresql-dev && \ # Setup poetry through pip - pip install --no-cache-dir poetry==1.8.5 && \ + pip install --no-cache-dir poetry==2.1.1 && \ # Install mozci with poetry poetry config virtualenvs.create false && \ - poetry install --no-dev --no-interaction --no-ansi && \ + poetry install --without dev --no-interaction --no-ansi && \ # Cleanup build dependencies pip uninstall -y poetry && \ apk del build && \ diff --git a/pyproject.toml b/pyproject.toml index 14d26025..78a1e009 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,5 +50,5 @@ cache-redis = ["redis"] cache-seeded-file = ["zstandard"] [build-system] -requires = ["poetry==1.8.5"] -build-backend = "poetry.masonry.api" +requires = ["poetry-core==2.1.1"] +build-backend = "poetry.core.masonry.api" diff --git a/tox.ini b/tox.ini index 549ac0b9..cde2e4b2 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,7 @@ envlist = py310,pre-commit [testenv] envdir = {toxworkdir}/env deps = - poetry == 1.8.5 + poetry == 2.1.1 passenv = TRAVIS_EVENT_TYPE setenv = integration: TRAVIS_EVENT_TYPE = cron