Build failed due to hatch vcs
This commit is contained in:
+1
-4
@@ -83,11 +83,8 @@ COPY --from=builder /frontend/browser /app/frontend
|
|||||||
# Sync the project
|
# Sync the project
|
||||||
# Ref: https://docs.astral.sh/uv/guides/integration/docker/#intermediate-layers
|
# Ref: https://docs.astral.sh/uv/guides/integration/docker/#intermediate-layers
|
||||||
RUN --mount=type=cache,target=/root/.cache/uv \
|
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||||
--mount=type=bind,source=brewman/uv.lock,target=uv.lock \
|
uv sync --locked --no-editable
|
||||||
--mount=type=bind,source=brewman/pyproject.toml,target=pyproject.toml \
|
|
||||||
uv sync --locked
|
|
||||||
|
|
||||||
ENV PYTHONPATH=/app
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
RUN chmod 777 /app/docker-entrypoint.sh \
|
RUN chmod 777 /app/docker-entrypoint.sh \
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "brewman"
|
name = "brewman"
|
||||||
dynamic = ["version"]
|
|
||||||
description = "Accounting plus inventory management for a restaurant."
|
description = "Accounting plus inventory management for a restaurant."
|
||||||
requires-python = ">=3.14"
|
requires-python = ">=3.14"
|
||||||
authors = [{ name = "tanshu", email = "git@tanshu.com" }]
|
authors = [{ name = "tanshu", email = "git@tanshu.com" }]
|
||||||
@@ -24,6 +23,7 @@ dependencies = [
|
|||||||
"sqlalchemy>=2.0.52",
|
"sqlalchemy>=2.0.52",
|
||||||
"uvicorn[standard]>=0.52.4",
|
"uvicorn[standard]>=0.52.4",
|
||||||
]
|
]
|
||||||
|
dynamic = ["version"]
|
||||||
|
|
||||||
[dependency-groups]
|
[dependency-groups]
|
||||||
dev = [
|
dev = [
|
||||||
@@ -37,12 +37,11 @@ dev = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["hatchling", "hatch-vcs"]
|
requires = ["hatch-vcs", "hatchling"]
|
||||||
build-backend = "hatchling.build"
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
[tool.hatch.version]
|
[tool.hatch.version]
|
||||||
source = "vcs"
|
source = "vcs"
|
||||||
raw-options = { root = "..", fallback_version = "0.0.0" }
|
|
||||||
|
|
||||||
[tool.hatch.build.hooks.vcs]
|
[tool.hatch.build.hooks.vcs]
|
||||||
version-file = "brewman/_version.py"
|
version-file = "brewman/_version.py"
|
||||||
|
|||||||
Reference in New Issue
Block a user