The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(packaging): exempt every exact pin from exclude-newer — release-day brick class
walker1f713dce3859
diff --git a/pyproject.toml b/pyproject.tomlindex 2ad3dbd62b1..a9c8df69fd0 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -437,7 +437,125 @@ exclude-newer = "14 days"# firecrawl-anydoc: same exact-pin shape (==0.2.4, hosted-OCR wiring PR).# The pin bump WAS the review; exclude-newer adds zero float protection to# an exact pin and would only delay the reviewed version 14 days.-exclude-newer-package = { vercel = false, nemo-relay = false, huggingface_hub = false, h2 = false, aiohttp = false, cryptography = false, defusedxml = false, python-olm = false, unpaddedbase64 = false, setuptools = false, wheel = false, pillow = false, mcp = false, firecrawl-anydoc = false }+#+# Every other exact-pinned package below: the release-day brick shape+# (observed 2026-08-29 updating three long-running installs v0.20.0 ->+# v0.20.6 — one Termux, two Linux servers). Each release exact-pins at least+# one dependency to a version published days before the release (v0.20.6+# pinned snowballstemmer==3.1.1 and psutil==7.2.2 in core, plus fastapi /+# uvicorn / python-telegram-bot pins across extras). For two weeks after+# release the cutoff filters those versions out, so any venv that predates+# the release bricks on `hermes update` ("no version of+# snowballstemmer==3.1.1") until the window passes. Same zero-float-+# protection logic as setuptools/pillow/mcp above; enforced for every exact+# pin by+# tests/test_packaging_metadata.py::test_exact_pinned_deps_exempt_from_exclude_newer.+#+# maturin, setuptools-rust: build-system.requires of the cryptography pin+# above. cryptography itself is exempted, but on wheel-less platforms+# (Termux/Android) it must build from sdist, and the isolated build+# environment resolves under the same cutoff ("Failed to resolve+# requirements from build-system.requires ... maturin>=1.9,<2").+[tool.uv.exclude-newer-package]+agent-client-protocol = false+ai-edge-litert = false+aiohttp = false+aiohttp-socks = false+aiosqlite = false+alibabacloud-dingtalk = false+anthropic = false+asyncpg = false+azure-identity = false+boto3 = false+brotlicffi = false+certifi = false+concurrent-log-handler = false+croniter = false+cryptography = false+daytona = false+debugpy = false+defusedxml = false+dingtalk-stream = false+discord-py = false+edge-tts = false+elevenlabs = false+exa-py = false+fal-client = false+fastapi = false+faster-whisper = false+fire = false+firecrawl-anydoc = false+firecrawl-py = false+google-api-python-client = false+google-auth = false+google-auth-httplib2 = false+google-auth-oauthlib = false+h2 = false+hindsight-client = false+honcho-ai = false+httplib2 = false+httpx = false+httpx2 = false+huggingface_hub = false+jinja2 = false+lark-oapi = false+markdown = false+maturin = false+mautrix = false+mcp = false+mem0ai = false+microsoft-teams-apps = false+mistralai = false+modal = false+nemo-relay = false+numpy = false+onnxruntime = false+openai = false+opentelemetry-exporter-otlp-proto-http = false+opentelemetry-sdk = false+openwakeword = false+packaging = false+parallel-web = false+pathspec = false+pillow = false+prompt-toolkit = false+psutil = false+pvporcupine = false+pyasn1 = false+pydantic = false+pyjwt = false+pytest = false+pytest-asyncio = false+python-dotenv = false+python-multipart = false+python-olm = false+python-telegram-bot = false+pyyaml = false+qrcode = false+requests = false+rich = false+ruamel-yaml = false+ruff = false+sentencepiece = false+setuptools = false+setuptools-rust = false+wheel = false+sherpa-onnx = false+slack-bolt = false+slack-sdk = false+snowballstemmer = false+sounddevice = false+starlette = false+supermemory = false+tenacity = false+ty = false+tzdata = false+unpaddedbase64 = false+uvicorn = false+vercel = false+websockets = false+youtube-transcript-api = false+[tool.setuptools]# Top-level single-file modules (not packages). Without this, uv2nix'sdiff --git a/tests/test_packaging_metadata.py b/tests/test_packaging_metadata.pyindex 376faf4ebc2..4b7e5373476 100644--- a/tests/test_packaging_metadata.py+++ b/tests/test_packaging_metadata.py@@ -286,6 +286,40 @@ def test_build_system_requires_exempt_from_exclude_newer():)+def test_exact_pinned_deps_exempt_from_exclude_newer():+ """Regression guard for the release-day brick class.++ Every release exact-pins at least one dependency to a version published+ days before the release (v0.20.6: snowballstemmer==3.1.1,+ psutil==7.2.2). For two weeks after release the relative+ ``exclude-newer`` cutoff filters those versions out, so any venv that+ predates the release cannot resolve the new pins at all ("no version of+ snowballstemmer==3.1.1" — observed 2026-08-29 updating three production+ installs v0.20.0 -> v0.20.6, one Termux and two Linux servers). The pin+ bump WAS the review, so the cutoff adds zero float protection for an+ exact pin and can only brick.++ Every exact-pinned package in [project].dependencies and+ optional-dependencies must therefore appear in the+ ``exclude-newer-package`` whitelist (set to ``false``) for as long as a+ relative ``exclude-newer`` cutoff is configured.+ """+ data = tomllib.loads((REPO_ROOT / "pyproject.toml").read_text(encoding="utf-8"))+ uv_cfg = data.get("tool", {}).get("uv", {})+ if "exclude-newer" not in uv_cfg:+ pytest.skip("no exclude-newer cutoff configured — nothing to exempt")+ whitelist = {+ _canonical(name)+ for name, enabled in uv_cfg.get("exclude-newer-package", {}).items()+ if enabled is False+ }+ missing = sorted(set(_pins_from_specs(_pyproject_pinned_specs())) - whitelist)+ assert not missing, (+ "exact-pinned packages are subject to the exclude-newer cutoff but "+ "missing from the [tool.uv].exclude-newer-package whitelist — "+ "release-day updates brick while the pinned version is younger than "+ f"the cutoff: {missing}"+ )