Use pinned abx uv sources in Docker build

This commit is contained in:
Nick Sweeting 2026-05-18 01:58:04 -07:00
parent ea4ce5b641
commit bfdf293585
No known key found for this signature in database
2 changed files with 8 additions and 11 deletions

View File

@ -53,8 +53,6 @@ ARG TARGETPLATFORM
ARG TARGETOS
ARG TARGETARCH
ARG TARGETVARIANT
ARG ABX_PLUGINS_REF=f576a7c81a17b0e49adf4789ac7f7143ece1282f
ARG ABX_DL_REF=3cddb1bf4d8a37c49f2a70810e0da840acc96c17
######### Environment Variables #################################
# Global build-time and runtime environment constants + default pkg manager config
@ -344,20 +342,15 @@ RUN --mount=type=bind,source=pyproject.toml,target=/app/pyproject.toml \
--all-extras \
--no-install-project \
--no-install-workspace \
--no-sources \
&& apt-get purge -y python3-dev build-essential gcc \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
# installs the pip packages that archivebox depends on, defined in pyproject.toml dependencies
# Install unreleased dev abx package revisions used by the ArchiveBox dev branch.
RUN --mount=type=cache,target=/root/.cache/uv,sharing=locked,id=uv-$TARGETARCH$TARGETVARIANT \
echo "[+] Installing dev abx package revisions..." \
&& uv pip install --reinstall --no-deps \
"git+https://github.com/ArchiveBox/abx-plugins.git@${ABX_PLUGINS_REF}" \
"git+https://github.com/ArchiveBox/abx-dl.git@${ABX_DL_REF}" \
&& ( \
pip show abx-plugins \
# Verify unreleased dev abx package revisions installed by uv sources above.
RUN ( \
echo "[+] Verifying dev abx package revisions..." \
&& pip show abx-plugins \
&& pip show abx-dl \
&& echo -e '\n\n' \
) | tee -a /VERSION.txt

View File

@ -158,6 +158,10 @@ exclude-newer = "5 days"
exclude-newer-package = { abx-plugins = "1 second", abx-dl = "1 second", abxpkg = "1 second", abxbus = "1 second" }
# compile-bytecode = true
[tool.uv.sources]
"abx-plugins" = { git = "https://github.com/ArchiveBox/abx-plugins.git", rev = "f576a7c81a17b0e49adf4789ac7f7143ece1282f" }
"abx-dl" = { git = "https://github.com/ArchiveBox/abx-dl.git", rev = "3cddb1bf4d8a37c49f2a70810e0da840acc96c17" }
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"