From 64cc1121bfcf944f32709091dda3b296bfd1fe03 Mon Sep 17 00:00:00 2001 From: Paul Lockaby Date: Sat, 4 Mar 2023 15:37:16 -0500 Subject: [PATCH] pin poetry for now We can unpin poetry when either of these issues are closed: - https://github.com/python-poetry/poetry/issues/7572 - https://github.com/pgjones/hypercorn/issues/102 --- .github/workflows/test.yaml | 3 ++- Dockerfile | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a18d41f..883f900 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -23,7 +23,8 @@ jobs: - name: setup poetry and pre-commit run: | - pip install poetry + # TODO unpin poetry when either of these are fixed: + pip install poetry==1.3.2 - name: setup application run: | diff --git a/Dockerfile b/Dockerfile index 43c2671..e094a74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,10 @@ FROM base AS builder RUN apt-get -q update && apt-get install -y --no-install-recommends git # now become the app user to set up poetry and the versioning tool -RUN pip3 install poetry dunamai --no-cache-dir && mkdir -p $APP_ROOT && chown 1000:100 $APP_ROOT +# TODO unpin poetry when either of these are fixed: +# - https://github.com/python-poetry/poetry/issues/7572 +# - https://github.com/pgjones/hypercorn/issues/102 +RUN pip3 install poetry==1.3.2 dunamai --no-cache-dir && mkdir -p $APP_ROOT && chown 1000:100 $APP_ROOT COPY --chown=1000:1000 . $APP_ROOT # update the version number of our application