From dc9ef694e89b89c09dc7815692ae7e593a580e15 Mon Sep 17 00:00:00 2001 From: Alessandro De Maria Date: Sat, 18 Nov 2023 20:28:48 +0000 Subject: [PATCH] test --- .github/workflows/python-pip-publish.yml | 2 +- Dockerfile | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python-pip-publish.yml b/.github/workflows/python-pip-publish.yml index d9532f4c3..ab4d55827 100644 --- a/.github/workflows/python-pip-publish.yml +++ b/.github/workflows/python-pip-publish.yml @@ -37,4 +37,4 @@ jobs: - name: Publish to PyPI env: POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} - run: poetry publish --build --dry-run + run: poetry publish --build diff --git a/Dockerfile b/Dockerfile index 45d5703b2..73e557b90 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ RUN apt-get update \ curl \ build-essential -ENV POETRY_VERSION=1.4.0 +ENV POETRY_VERSION=1.7.1 ENV VIRTUAL_ENV=/opt/venv ENV PATH="$VIRTUAL_ENV/bin:/usr/local/go/bin:${PATH}" RUN python -m venv $VIRTUAL_ENV \ @@ -29,19 +29,13 @@ RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master && rm get_helm.sh -COPY ./MANIFEST.in ./MANIFEST.in COPY ./pyproject.toml ./pyproject.toml COPY ./poetry.lock ./poetry.lock -COPY ./README.md ./README.md # Installs and caches dependencies -RUN poetry install --no-root --extras=gojsonnet - -COPY ./kapitan ./kapitan - -RUN pip install --editable .[test] \ - && pip install .[gojsonnet] +RUN poetry install --no-root --extras=gojsonnet +RUN --mount=type=bind,source=./,target=./ poetry install # Final image with virtualenv built in previous step FROM python:3.8-slim