Skip to content

Commit

Permalink
docs: use Python 3.11+ as example (#18565)
Browse files Browse the repository at this point in the history
3.11 is the current stable release of Python, and 3.8 is end-of-life
soon.

Using a newer version than 3.8 also side-steps issues on Apple Silicon
Macs, which require 3.9
(https://www.pantsbuild.org/docs/prerequisites#macos)

---------

Co-authored-by: Huon Wilson <[email protected]>
  • Loading branch information
dijonkitchen and huonw authored Aug 28, 2023
1 parent 362ee8a commit b1fdb7b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Configure your default Python interpreter compatibility constraints in `pants.to

```toml pants.toml
[python]
interpreter_constraints = ["CPython==3.8.*"]
interpreter_constraints = ["CPython==3.11.*"]
```

The value can be any valid Requirement-style strings. You can use multiple strings to OR constraints, and use commas within each string to AND constraints. For example:
Expand Down

0 comments on commit b1fdb7b

Please sign in to comment.