Reuse abxpkg installs across ArchiveBox tests

This commit is contained in:
Nick Sweeting 2026-07-29 13:29:37 -07:00
parent 3d4bae4ba2
commit f8b7dad645
No known key found for this signature in database
4 changed files with 16 additions and 8 deletions

View File

@ -414,10 +414,18 @@ def hermetic_lib_dir(tmp_path):
@pytest.fixture
def cached_abxpkg_lib_dir():
"""Reuse the configured abxpkg cache when a test is not validating LIB_DIR isolation."""
from archivebox.config.common import get_config
return get_config().ABXPKG_LIB_DIR
"""Reuse one real abxpkg installation cache for the current pytest session."""
lib_dir = SESSION_DATA_DIR / "lib"
lib_dir.mkdir(parents=True, exist_ok=True)
original_lib_dir = os.environ.get("ABXPKG_LIB_DIR")
os.environ["ABXPKG_LIB_DIR"] = str(lib_dir)
try:
yield lib_dir
finally:
if original_lib_dir is None:
os.environ.pop("ABXPKG_LIB_DIR", None)
else:
os.environ["ABXPKG_LIB_DIR"] = original_lib_dir
@pytest.fixture

View File

@ -1,6 +1,6 @@
{
"name": "archivebox",
"version": "0.9.35rc179",
"version": "0.9.35rc180",
"repository": "github:ArchiveBox/ArchiveBox",
"license": "MIT",
"dependencies": {

View File

@ -1,6 +1,6 @@
[project]
name = "archivebox"
version = "0.9.35rc179"
version = "0.9.35rc180"
requires-python = ">=3.13"
description = "Self-hosted internet archiving solution."
authors = [{name = "Nick Sweeting", email = "pyproject.toml@archivebox.io"}]
@ -344,7 +344,7 @@ Donate = "https://github.com/ArchiveBox/ArchiveBox/wiki/Donations"
[tool.bumpver]
current_version = "v0.9.35rc179"
current_version = "v0.9.35rc180"
version_pattern = "vMAJOR.MINOR.PATCH[PYTAGNUM]"
commit_message = "bump version {old_version} -> {new_version}"
tag_message = "{new_version}"

View File

@ -123,7 +123,7 @@ wheels = [
[[package]]
name = "archivebox"
version = "0.9.35rc179"
version = "0.9.35rc180"
source = { editable = "." }
dependencies = [
{ name = "abx-dl", marker = "sys_platform == 'darwin' or sys_platform == 'linux'" },