Skip to content

Commit dac3d24

Browse files
burnpiroclaude
andcommitted
chore(security): add 7-day exclude-newer cooldown
Refuse to resolve any PyPI dependency uploaded in the last 7 days (`[tool.uv] exclude-newer = "7 days"`) when this project is locked or installed via uv. Mitigates blast radius of compromised dependencies (typosquatting, account takeovers, dependency confusion). pypiquant has no first-party PrimeIntellect packages in its closure (cffi, torch, numpy), so no `[tool.uv.exclude-newer-package]` exemptions are needed. The comment in pyproject.toml documents when to add one. Part 1 of 3 in a coordinated supply-chain hardening across PI repos. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5272da7 commit dac3d24

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

python/pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ Issues = "https://github.com/PrimeIntellect-ai/pi-quant/issues"
2020
[project.optional-dependencies]
2121
dev = ["pytest","torch","numpy","pre-commit","ruff", "matplotlib", "twine"]
2222

23+
[tool.uv]
24+
# Supply-chain cooldown: new PyPI uploads must age 7 days before resolution
25+
# picks them up. Applies whenever this project is locked or installed via uv.
26+
# pypiquant has no first-party PrimeIntellect dependencies in its closure, so
27+
# no exclude-newer-package exemptions are needed yet — add a
28+
# [tool.uv.exclude-newer-package] entry when that changes.
29+
exclude-newer = "7 days"
30+
2331
[tool.ruff]
2432
line-length = 120
2533
target-version = "py38"

0 commit comments

Comments
 (0)