Skip to content

Add --uploaded-prior-to as a passthrough option for pip-compile#2358

Open
miettal wants to merge 4 commits intojazzband:mainfrom
miettal:add-uploaded-prior-to-passthrough
Open

Add --uploaded-prior-to as a passthrough option for pip-compile#2358
miettal wants to merge 4 commits intojazzband:mainfrom
miettal:add-uploaded-prior-to-passthrough

Conversation

@miettal
Copy link
Copy Markdown

@miettal miettal commented Mar 26, 2026

Expose pip's --uploaded-prior-to option (added in pip 26.0) via pip-compile, allowing users to restrict package candidates to those uploaded before a given datetime for supply-chain security.

Raises an error for pip < 26.0.

Closes #2288

Contributor checklist
  • Included tests for the changes.
  • A change note is created in changelog.d/ (see changelog.d/README.md
    for instructions) or the PR text says "no changelog needed".
Maintainer checklist
  • If no changelog is needed, apply the bot:chronographer:skip label.
  • Assign the PR to an existing or new milestone for the target version
    (following Semantic Versioning).

miettal added 2 commits March 26, 2026 23:05
Expose pip's --uploaded-prior-to option (added in pip 26.0) via
pip-compile, allowing users to restrict package candidates to those
uploaded before a given datetime for supply-chain security.

Raises an error for pip < 26.0.

Closes jazzband#2288
@sirosen sirosen self-requested a review March 26, 2026 15:16
@sirosen sirosen added this to the 7.5.4 milestone Mar 27, 2026
@sirosen
Copy link
Copy Markdown
Member

sirosen commented Mar 27, 2026

This looks great to me. I just put it through its paces in some local tests to confirm that it really works at runtime with no surprises, and I think it's exactly what we want.

I think these tests might be the first cases of patching the _pip_api module to exercise behavior. I hadn't thought of doing that before -- neat!

It looks like CI is failing for unrelated reasons. I'm guessing it's related to the recent build release. I'll work on that separately to unblock this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider a setting for delaying dependency updates

2 participants