Skip to content

Commit

Permalink
chore(deps): adds compliance-trestle-fedramp dependency
Browse files Browse the repository at this point in the history
Adds the compliance-trestle-fedramp as an optional dependency so
that the version included with trestle-bot will be resolved with
the version of compliance-trestle being leveraged to ensure compatibility.

Refs: PSCE-578
Closes: #318

Signed-off-by: Jennifer Power <[email protected]>
  • Loading branch information
jpower432 committed Sep 19, 2024
1 parent 21b4043 commit 98bd9bc
Show file tree
Hide file tree
Showing 4 changed files with 197 additions and 124 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-poetry/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ runs:
shell: bash

- name: Install dependencies
run: poetry install --no-interaction --no-root
run: poetry install --with tests,dev --no-interaction --no-root
shell: bash
13 changes: 10 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ RUN microdnf update -y \
FROM python-base AS dependencies

ARG POETRY_VERSION=1.7.1
ARG INSTALL_PLUGINS=true

# https://python-poetry.org/docs/configuration/#using-environment-variables
ENV POETRY_VIRTUALENVS_IN_PROJECT=true \
Expand All @@ -39,14 +40,20 @@ COPY . "/build"
# Install runtime deps and install the project in non-editable mode.
# Ensure pip and setuptools are updated in the virtualenv as well.
RUN python3.9 -m venv "$VENV_PATH" && \
. "$VENV_PATH"/bin/activate && \
python3.9 -m pip install --no-cache-dir --upgrade pip setuptools && \
if [ "$INSTALL_PLUGINS" == "true" ]; then \
poetry install --with plugins --no-root; \
else \
poetry install --no-root; \
fi

RUN python3.9 -m venv "$VENV_PATH" && \
. "$VENV_PATH"/bin/activate && \
python3.9 -m pip install --no-cache-dir --upgrade pip setuptools && \
poetry install --without tests,dev --no-root && \
poetry build -f wheel -n && \
pip install --no-cache-dir --no-deps dist/*.whl && \
rm -rf dist ./*.egg-info


FROM python-base AS final

COPY --from=dependencies $PYSETUP_PATH $PYSETUP_PATH
Expand Down
Loading

0 comments on commit 98bd9bc

Please sign in to comment.