From b6a0354b45c49139664a4b763375bfea6685292e Mon Sep 17 00:00:00 2001 From: Rex Ledesma Date: Wed, 1 Apr 2026 13:34:19 -0400 Subject: [PATCH 1/3] docs: add explicit example for opting package out of `--exclude-newer` --- docs/concepts/resolution.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/concepts/resolution.md b/docs/concepts/resolution.md index d133e40bb978d..fec100bfab78b 100644 --- a/docs/concepts/resolution.md +++ b/docs/concepts/resolution.md @@ -724,6 +724,11 @@ exclude-newer-package = { setuptools = "2006-12-02T02:07:43Z" } The same flag also accepts `=false` to opt a package out of the `--exclude-newer` restriction, e.g., to allow resolving packages from an index that does not publish upload times. +```pyproject.toml +[tool.uv] +exclude-newer-package = { setuptools = false } +``` + Package-specific values will take precedence over global values. ## Dependency cooldowns From 9ec541c2660fd91e587728a04337a43dc5fd3ba5 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Wed, 1 Apr 2026 15:27:51 -0500 Subject: [PATCH 2/3] Update docs/concepts/resolution.md --- docs/concepts/resolution.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/concepts/resolution.md b/docs/concepts/resolution.md index fec100bfab78b..1c0e83acfc8b9 100644 --- a/docs/concepts/resolution.md +++ b/docs/concepts/resolution.md @@ -721,14 +721,17 @@ Values may also be specified for specific packages, e.g., exclude-newer-package = { setuptools = "2006-12-02T02:07:43Z" } ``` -The same flag also accepts `=false` to opt a package out of the `--exclude-newer` -restriction, e.g., to allow resolving packages from an index that does not publish upload times. +The package option also accepts `=false` to opt a package out of the restriction, e.g., +`--exclude-newer-package setuptools=false`, or: ```pyproject.toml [tool.uv] exclude-newer-package = { setuptools = false } ``` +This is useful to temporarily use a newer version of package or to allow resolving a package from +an index that does not publish upload times. + Package-specific values will take precedence over global values. ## Dependency cooldowns From 8d0b3adb14be38a1ca9419a0604e6aee23e8355d Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Wed, 1 Apr 2026 15:28:14 -0500 Subject: [PATCH 3/3] Prettier --- docs/concepts/resolution.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/concepts/resolution.md b/docs/concepts/resolution.md index 1c0e83acfc8b9..742a66a5ed1c7 100644 --- a/docs/concepts/resolution.md +++ b/docs/concepts/resolution.md @@ -729,8 +729,8 @@ The package option also accepts `=false` to opt a package out of the re exclude-newer-package = { setuptools = false } ``` -This is useful to temporarily use a newer version of package or to allow resolving a package from -an index that does not publish upload times. +This is useful to temporarily use a newer version of package or to allow resolving a package from an +index that does not publish upload times. Package-specific values will take precedence over global values.