From 0c7d5a2a9ba5d8ec031ec830f534cc3009d13721 Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Tue, 28 Jan 2025 21:58:03 -0500 Subject: [PATCH] feat(docker): update Dockerfile for editable mode compatibility and refine package installation --- Dockerfile | 4 ++-- pyproject.toml | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index a5fdff1..37b6199 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,8 +37,8 @@ RUN pip install --no-cache-dir -r requirements.txt RUN set -e && \ echo "Installing package..." && \ pip uninstall -y simpleguardhome || true && \ - # Install package with dependencies and PEP 517 support - pip install --use-pep517 -e . && \ + # Install package in editable mode with compatibility mode enabled + pip install --use-pep517 -e . --config-settings editable_mode=compat && \ echo "Verifying installation..." && \ pip show simpleguardhome && \ # List all package files diff --git a/pyproject.toml b/pyproject.toml index 282b1dc..b264e78 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,4 @@ package-dir = {"" = "src"} packages = {find = {where = ["src"]}} [tool.setuptools.package-data] -simpleguardhome = ["templates/*", "favicon.ico"] - -[tool.setuptools.editable] -mode = "compat" \ No newline at end of file +simpleguardhome = ["templates/*", "favicon.ico"] \ No newline at end of file