From d28918992a168318c63c49a7f92c1dc73b4774a1 Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Tue, 15 Sep 2026 16:26:28 +0000 Subject: [PATCH] Build failed due to hatch vcs --- Dockerfile | 5 +---- brewman/pyproject.toml | 5 ++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 89f32419..09bb4788 100644 --- a/Dockerfile +++ b/Dockerfile @@ -83,11 +83,8 @@ COPY --from=builder /frontend/browser /app/frontend # Sync the project # Ref: https://docs.astral.sh/uv/guides/integration/docker/#intermediate-layers RUN --mount=type=cache,target=/root/.cache/uv \ - --mount=type=bind,source=brewman/uv.lock,target=uv.lock \ - --mount=type=bind,source=brewman/pyproject.toml,target=pyproject.toml \ - uv sync --locked + uv sync --locked --no-editable -ENV PYTHONPATH=/app EXPOSE 80 RUN chmod 777 /app/docker-entrypoint.sh \ diff --git a/brewman/pyproject.toml b/brewman/pyproject.toml index ae676c40..d90f2121 100644 --- a/brewman/pyproject.toml +++ b/brewman/pyproject.toml @@ -1,6 +1,5 @@ [project] name = "brewman" -dynamic = ["version"] description = "Accounting plus inventory management for a restaurant." requires-python = ">=3.14" authors = [{ name = "tanshu", email = "git@tanshu.com" }] @@ -24,6 +23,7 @@ dependencies = [ "sqlalchemy>=2.0.52", "uvicorn[standard]>=0.52.4", ] +dynamic = ["version"] [dependency-groups] dev = [ @@ -37,12 +37,11 @@ dev = [ ] [build-system] -requires = ["hatchling", "hatch-vcs"] +requires = ["hatch-vcs", "hatchling"] build-backend = "hatchling.build" [tool.hatch.version] source = "vcs" -raw-options = { root = "..", fallback_version = "0.0.0" } [tool.hatch.build.hooks.vcs] version-file = "brewman/_version.py"