mirror of https://github.com/astral-sh/uv
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
|
|
@ -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,
|
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 `sys_platform == 'linux'` are disjoint, but
|
||||||
`sys_platform == 'darwin'` and `python_version >= '3.9'` are not, since both could be true at the
|
`sys_platform == 'darwin'` and `python_version >= '3.9'` are not, since both could be true at the
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue