fix: add SETUPTOOLS_SCM_PRETEND_VERSION for CI builds

This commit is contained in:
fawney19
2025-12-19 12:01:19 +08:00
parent f22a073fd9
commit b9a26c4550

View File

@@ -19,7 +19,7 @@ RUN apt-get update && apt-get install -y \
# Python 依赖(安装到系统,不用 -e 模式)
COPY pyproject.toml README.md ./
RUN mkdir -p src && touch src/__init__.py && \
pip install --no-cache-dir .
SETUPTOOLS_SCM_PRETEND_VERSION=0.1.0 pip install --no-cache-dir .
# 前端依赖
COPY frontend/package*.json /tmp/frontend/