mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Add Python implementation example to limited resolution environments docs (#9475)
Closes https://github.com/astral-sh/uv/issues/9473
This commit is contained in:
parent
6afb34091c
commit
7df3ae2585
1 changed files with 9 additions and 0 deletions
|
@ -185,6 +185,15 @@ environments = [
|
|||
]
|
||||
```
|
||||
|
||||
Or, to exclude alternative Python implementations:
|
||||
|
||||
```toml title="pyproject.toml"
|
||||
[tool.uv]
|
||||
environments = [
|
||||
"implementation_name == 'cpython'"
|
||||
]
|
||||
```
|
||||
|
||||
Entries in the `environments` setting must be disjoint (i.e., they must not overlap). For example,
|
||||
`sys_platform == 'darwin'` and `sys_platform == 'linux'` are disjoint, but
|
||||
`sys_platform == 'darwin'` and `python_version >= '3.9'` are not, since both could be true at the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue