Skip to content

Commit

Permalink
Add Python implementation example to limited resolution environments …
Browse files Browse the repository at this point in the history
…docs (#9475)

Closes #9473
  • Loading branch information
zanieb authored Nov 27, 2024
1 parent 6afb340 commit 7df3ae2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/concepts/projects/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7df3ae2

Please sign in to comment.