mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Add link to environment marker specification (#11748)
This commit is contained in:
parent
f3ebd04a9a
commit
1f7f9fdeb4
1 changed files with 6 additions and 4 deletions
|
@ -144,9 +144,9 @@ as, e.g., resolvers will backtrack to the first published version that omits the
|
|||
By default, the universal resolver attempts to solve for all platforms and Python versions.
|
||||
|
||||
If your project supports only a limited set of platforms or Python versions, you can constrain the
|
||||
set of solved platforms via the `environments` setting, which accepts a list of PEP 508 environment
|
||||
markers. In other words, you can use the `environments` setting to _reduce_ the set of supported
|
||||
platforms.
|
||||
set of solved platforms via the `environments` setting, which accepts a list of
|
||||
[PEP 508 environment markers](https://packaging.python.org/en/latest/specifications/dependency-specifiers/#environment-markers).
|
||||
In other words, you can use the `environments` setting to _reduce_ the set of supported platforms.
|
||||
|
||||
For example, to constrain the lockfile to macOS and Linux, and avoid solving for Windows:
|
||||
|
||||
|
@ -190,7 +190,9 @@ typically be at least one platform or Python version for which the package is no
|
|||
|
||||
By default, uv requires each such package to include at least one wheel that is compatible with the
|
||||
target Python version. The `required-environments` setting can be used to ensure that the resulting
|
||||
resolution contains wheels for specific platforms, or fails if no such wheels are available.
|
||||
resolution contains wheels for specific platforms, or fails if no such wheels are available. The
|
||||
setting accepts a list of
|
||||
[PEP 508 environment markers](https://packaging.python.org/en/latest/specifications/dependency-specifiers/#environment-markers).
|
||||
|
||||
While the `environments` setting _limits_ the set of environments that uv will consider when
|
||||
resolving dependencies, `required-environments` _expands_ the set of platforms that uv _must_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue