mirror of https://github.com/astral-sh/uv
docs(settings): better document `exclude-newer*` (#17079)
<!-- Thank you for contributing to uv! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary Following the changes in https://github.com/astral-sh/uv/pull/16814, documentation for [`--exclude-newer`](https://docs.astral.sh/uv/reference/cli/#uv-sync--exclude-newer) and [`--exclude-newer-package`](https://docs.astral.sh/uv/reference/cli/#uv-sync--exclude-newer-package) arguments were updated, but not their settings counterparts, so this just updates the settings ones to closely match the arguments ones. ## Test Plan Ran documentation locally.
This commit is contained in:
parent
4c1571fb76
commit
59d73fdddf
|
|
@ -803,11 +803,14 @@ pub struct ResolverInstallerSchema {
|
|||
"#
|
||||
)]
|
||||
pub extra_build_variables: Option<ExtraBuildVariables>,
|
||||
/// Limit candidate packages to those that were uploaded prior to a given point in time.
|
||||
/// Limit candidate packages to those that were uploaded prior to the given date.
|
||||
///
|
||||
/// 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.
|
||||
/// 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`).
|
||||
///
|
||||
/// Durations do not respect semantics of the local time zone and are always resolved to a fixed
|
||||
/// number of seconds assuming that a day is 24 hours (e.g., DST transitions are ignored).
|
||||
/// Calendar units such as months and years are not allowed.
|
||||
#[option(
|
||||
default = "None",
|
||||
value_type = "str",
|
||||
|
|
@ -816,9 +819,16 @@ pub struct ResolverInstallerSchema {
|
|||
"#
|
||||
)]
|
||||
pub exclude_newer: Option<ExcludeNewerValue>,
|
||||
/// Limit candidate packages for specific packages to those that were uploaded prior to the given date.
|
||||
/// Limit candidate packages for specific packages to those that were uploaded prior to the
|
||||
/// given date.
|
||||
///
|
||||
/// Accepts package-date pairs in a dictionary format.
|
||||
/// Accepts a dictionary format of `PACKAGE = "DATE"` pairs, where `DATE` is an RFC 3339
|
||||
/// timestamp (e.g., `2006-12-02T02:07:43Z`), a "friendly" duration (e.g., `24 hours`, `1 week`,
|
||||
/// `30 days`), or a ISO 8601 duration (e.g., `PT24H`, `P7D`, `P30D`).
|
||||
///
|
||||
/// Durations do not respect semantics of the local time zone and are always resolved to a fixed
|
||||
/// number of seconds assuming that a day is 24 hours (e.g., DST transitions are ignored).
|
||||
/// Calendar units such as months and years are not allowed.
|
||||
#[option(
|
||||
default = "None",
|
||||
value_type = "dict",
|
||||
|
|
|
|||
|
|
@ -214,7 +214,7 @@
|
|||
}
|
||||
},
|
||||
"exclude-newer": {
|
||||
"description": "Limit candidate packages to those that were uploaded prior to a given point in time.\n\nAccepts a superset of [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339.html) (e.g.,\n`2006-12-02T02:07:43Z`). A full timestamp is required to ensure that the resolver will\nbehave consistently across timezones.",
|
||||
"description": "Limit candidate packages to those that were uploaded prior to the given date.\n\nAccepts RFC 3339 timestamps (e.g., `2006-12-02T02:07:43Z`), a \"friendly\" duration (e.g.,\n`24 hours`, `1 week`, `30 days`), or an ISO 8601 duration (e.g., `PT24H`, `P7D`, `P30D`).\n\nDurations do not respect semantics of the local time zone and are always resolved to a fixed\nnumber of seconds assuming that a day is 24 hours (e.g., DST transitions are ignored).\nCalendar units such as months and years are not allowed.",
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/ExcludeNewerTimestamp"
|
||||
|
|
@ -225,7 +225,7 @@
|
|||
]
|
||||
},
|
||||
"exclude-newer-package": {
|
||||
"description": "Limit candidate packages for specific packages to those that were uploaded prior to the given date.\n\nAccepts package-date pairs in a dictionary format.",
|
||||
"description": "Limit candidate packages for specific packages to those that were uploaded prior to the\ngiven date.\n\nAccepts a dictionary format of `PACKAGE = \"DATE\"` pairs, where `DATE` is an RFC 3339\ntimestamp (e.g., `2006-12-02T02:07:43Z`), a \"friendly\" duration (e.g., `24 hours`, `1 week`,\n`30 days`), or a ISO 8601 duration (e.g., `PT24H`, `P7D`, `P30D`).\n\nDurations do not respect semantics of the local time zone and are always resolved to a fixed\nnumber of seconds assuming that a day is 24 hours (e.g., DST transitions are ignored).\nCalendar units such as months and years are not allowed.",
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/ExcludeNewerPackage"
|
||||
|
|
|
|||
Loading…
Reference in New Issue