From 8cbb80eca09bee4064157952c7f9610fdba9e274 Mon Sep 17 00:00:00 2001 From: Vitali Yanushchyk Date: Wed, 8 Jan 2025 14:42:50 -0300 Subject: [PATCH 1/2] chg ! copy non-python files --- docker/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 36068d79..f6a7a170 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -200,6 +200,7 @@ ENV GITHUB_REPOSITORY=$GITHUB_REPOSITORY WORKDIR /code COPY --chown=hope:unicef --from=python_prod_deps /code/.venv /code/.venv +COPY --chown=hope:unicef --from=python_prod_deps /code/src/hope_dedup_engine/web/ /code/.venv/lib/python3.12/site-packages/hope_dedup_engine/web/ COPY --chown=hope:unicef --from=python_prod_deps /code/README.md /code/LICENSE / ENV PATH=/code/.venv/bin:/usr/local/bin/:/usr/bin:/bin \ From f68cf5dccc6cb12535f5a2caad3548ff28a0acef Mon Sep 17 00:00:00 2001 From: Vitali Yanushchyk Date: Thu, 9 Jan 2025 04:01:43 -0300 Subject: [PATCH 2/2] chg ! package data --- docker/Dockerfile | 1 - pyproject.toml | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index f6a7a170..36068d79 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -200,7 +200,6 @@ ENV GITHUB_REPOSITORY=$GITHUB_REPOSITORY WORKDIR /code COPY --chown=hope:unicef --from=python_prod_deps /code/.venv /code/.venv -COPY --chown=hope:unicef --from=python_prod_deps /code/src/hope_dedup_engine/web/ /code/.venv/lib/python3.12/site-packages/hope_dedup_engine/web/ COPY --chown=hope:unicef --from=python_prod_deps /code/README.md /code/LICENSE / ENV PATH=/code/.venv/bin:/usr/local/bin/:/usr/bin:/bin \ diff --git a/pyproject.toml b/pyproject.toml index 200289bb..cbf32541 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -99,6 +99,10 @@ dev-dependencies = [ "watchdog", ] +[tool.setuptools.package-data] +"hope_dedup_engine" = ["web/templates/**/*", "web/static/**/*"] + + [tool.black] line-length = 88 include = '\.pyi?$'