File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ ARG PYTHON_VERSION=3.12
44FROM ghcr.io/astral-sh/uv:0.5.30-python${PYTHON_VERSION}-bookworm-slim AS builder
55
66ARG SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0
7- ENV SETUPTOOLS_SCM_PRETEND_VERSION =${SETUPTOOLS_SCM_PRETEND_VERSION} \
7+ ENV SETUPTOOLS_SCM_PRETEND_VERSION_FOR_BLOOM_LIMS =${SETUPTOOLS_SCM_PRETEND_VERSION} \
88 UV_COMPILE_BYTECODE=1 \
99 UV_LINK_MODE=copy \
1010 PYTHONDONTWRITEBYTECODE=1 \
Original file line number Diff line number Diff line change @@ -41,3 +41,15 @@ def test_dockerfile_installs_git_before_git_pinned_dependencies() -> None:
4141 first_uv_sync = dockerfile .index ("RUN uv sync" )
4242 git_install = dockerfile .index ("git" )
4343 assert git_install < first_uv_sync
44+
45+
46+ def test_dockerfile_uses_package_specific_scm_version () -> None :
47+ dockerfile = (Path (__file__ ).resolve ().parents [1 ] / "Dockerfile" ).read_text (
48+ encoding = "utf-8"
49+ )
50+
51+ assert "ENV SETUPTOOLS_SCM_PRETEND_VERSION=${SETUPTOOLS_SCM_PRETEND_VERSION}" not in dockerfile
52+ assert (
53+ "ENV SETUPTOOLS_SCM_PRETEND_VERSION_FOR_BLOOM_LIMS=${SETUPTOOLS_SCM_PRETEND_VERSION}"
54+ in dockerfile
55+ )
You can’t perform that action at this time.
0 commit comments