Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions crates/uv-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3232,6 +3232,10 @@ pub struct VenvArgs {

/// Limit candidate packages to those that were uploaded prior to the given date.
///
/// The date is compared against the upload time of each individual distribution artifact
/// (i.e., when each file was uploaded to the package index), not the release date of the
/// package version.
///
/// Accepts RFC 3339 timestamps (e.g., `2006-12-02T02:07:43Z`), local dates in the same format
/// (e.g., `2006-12-02`) resolved based on your system's configured time zone, a "friendly"
/// duration (e.g., `24 hours`, `1 week`, `30 days`), or an ISO 8601 duration (e.g., `PT24H`,
Expand Down Expand Up @@ -6043,6 +6047,10 @@ pub struct ToolUpgradeArgs {

/// Limit candidate packages to those that were uploaded prior to the given date.
///
/// The date is compared against the upload time of each individual distribution artifact
/// (i.e., when each file was uploaded to the package index), not the release date of the
/// package version.
///
/// Accepts RFC 3339 timestamps (e.g., `2006-12-02T02:07:43Z`), local dates in the same format
/// (e.g., `2006-12-02`) resolved based on your system's configured time zone, a "friendly"
/// duration (e.g., `24 hours`, `1 week`, `30 days`), or an ISO 8601 duration (e.g., `PT24H`,
Expand Down Expand Up @@ -7098,6 +7106,10 @@ pub struct InstallerArgs {

/// Limit candidate packages to those that were uploaded prior to the given date.
///
/// The date is compared against the upload time of each individual distribution artifact
/// (i.e., when each file was uploaded to the package index), not the release date of the
/// package version.
///
/// Accepts RFC 3339 timestamps (e.g., `2006-12-02T02:07:43Z`), local dates in the same format
/// (e.g., `2006-12-02`) resolved based on your system's configured time zone, a "friendly"
/// duration (e.g., `24 hours`, `1 week`, `30 days`), or an ISO 8601 duration (e.g., `PT24H`,
Expand Down Expand Up @@ -7336,6 +7348,10 @@ pub struct ResolverArgs {

/// Limit candidate packages to those that were uploaded prior to the given date.
///
/// The date is compared against the upload time of each individual distribution artifact
/// (i.e., when each file was uploaded to the package index), not the release date of the
/// package version.
///
/// Accepts RFC 3339 timestamps (e.g., `2006-12-02T02:07:43Z`), local dates in the same format
/// (e.g., `2006-12-02`) resolved based on your system's configured time zone, a "friendly"
/// duration (e.g., `24 hours`, `1 week`, `30 days`), or an ISO 8601 duration (e.g., `PT24H`,
Expand Down Expand Up @@ -7572,6 +7588,10 @@ pub struct ResolverInstallerArgs {

/// Limit candidate packages to those that were uploaded prior to the given date.
///
/// The date is compared against the upload time of each individual distribution artifact
/// (i.e., when each file was uploaded to the package index), not the release date of the
/// package version.
///
/// Accepts RFC 3339 timestamps (e.g., `2006-12-02T02:07:43Z`), local dates in the same format
/// (e.g., `2006-12-02`) resolved based on your system's configured time zone, a "friendly"
/// duration (e.g., `24 hours`, `1 week`, `30 days`), or an ISO 8601 duration (e.g., `PT24H`,
Expand Down Expand Up @@ -7703,6 +7723,10 @@ pub struct FetchArgs {

/// Limit candidate packages to those that were uploaded prior to the given date.
///
/// The date is compared against the upload time of each individual distribution artifact
/// (i.e., when each file was uploaded to the package index), not the release date of the
/// package version.
///
/// Accepts RFC 3339 timestamps (e.g., `2006-12-02T02:07:43Z`), local dates in the same format
/// (e.g., `2006-12-02`) resolved based on your system's configured time zone, a "friendly"
/// duration (e.g., `24 hours`, `1 week`, `30 days`), or an ISO 8601 duration (e.g., `PT24H`,
Expand Down
8 changes: 8 additions & 0 deletions crates/uv-settings/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,10 @@ pub struct ResolverInstallerSchema {
pub extra_build_variables: Option<ExtraBuildVariables>,
/// Limit candidate packages to those that were uploaded prior to the given date.
///
/// The date is compared against the upload time of each individual distribution artifact
/// (i.e., when each file was uploaded to the package index), not the release date of the
/// package version.
///
/// Accepts RFC 3339 timestamps (e.g., `2006-12-02T02:07:43Z`), a "friendly" duration (e.g.,
/// `24 hours`, `1 week`, `30 days`), or an ISO 8601 duration (e.g., `PT24H`, `P7D`, `P30D`).
///
Expand Down Expand Up @@ -1702,6 +1706,10 @@ pub struct PipOptions {
pub universal: Option<bool>,
/// Limit candidate packages to those that were uploaded prior to a given point in time.
///
/// The date is compared against the upload time of each individual distribution artifact
/// (i.e., when each file was uploaded to the package index), not the release date of the
/// package version.
///
/// Accepts a superset of [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339.html) (e.g.,
/// `2006-12-02T02:07:43Z`). A full timestamp is required to ensure that the resolver will
/// behave consistently across timezones.
Expand Down
6 changes: 4 additions & 2 deletions docs/concepts/resolution.md
Original file line number Diff line number Diff line change
Expand Up @@ -680,9 +680,11 @@ with an unexpected error.

## Reproducible resolutions

uv supports an `--exclude-newer` option to limit resolution to distributions published before a
uv supports an `--exclude-newer` option to limit resolution to distributions uploaded before a
specific date, allowing reproduction of installations regardless of new package releases. The date
may be specified as an [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339.html) timestamp (e.g.,
is compared against the upload time of each individual distribution artifact (i.e., when each file
was uploaded to the package index), not the release date of the package version. The date may be
specified as an [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339.html) timestamp (e.g.,
`2006-12-02T02:07:43Z`) or a local date in the same format (e.g., `2006-12-02`) in your system's
configured time zone.

Expand Down
Loading