Skip to content

Commit

Permalink
Update README to add examples to install 3.13t
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed Nov 5, 2024
1 parent b9ab292 commit c33752f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,29 @@ See [action.yml](action.yml)
```yaml
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: Quansight-Labs/setup-python@v5
with:
python-version: '3.13'
python-version: '3.13t' # Use free-threaded version
- run: python my_script.py
```
**PyPy**
```yaml
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: Quansight-Labs/setup-python@v5
with:
python-version: 'pypy3.10'
python-version: 'pypy3.10'
- run: python my_script.py
```
**GraalPy**
```yaml
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: Quansight-Labs/setup-python@v5
with:
python-version: 'graalpy-24.0'
python-version: 'graalpy-24.0'
- run: python my_script.py
```
Expand All @@ -55,6 +55,8 @@ For information regarding locally cached versions of Python or PyPy on GitHub ho

The `python-version` input supports the [Semantic Versioning Specification](https://semver.org/) and some special version notations (e.g. `semver ranges`, `x.y-dev syntax`, etc.), for detailed examples please refer to the section: [Using python-version input](docs/advanced-usage.md#using-the-python-version-input) of the [Advanced usage](docs/advanced-usage.md) guide.

Additionally, this action supports free-threaded CPython distributions, using the `x.yt` syntax.

## Supported architectures

Using the `architecture` input, it is possible to specify the required Python or PyPy interpreter architecture: `x86`, `x64`, or `arm64`. If the input is not specified, the architecture defaults to the host OS architecture.
Expand Down Expand Up @@ -94,7 +96,7 @@ See examples of using `cache` and `cache-dependency-path` for `pipenv` and `poet
- [Caching packages](docs/advanced-usage.md#caching-packages)
- [Outputs and environment variables](docs/advanced-usage.md#outputs-and-environment-variables)
- [Available versions of Python, PyPy and GraalPy](docs/advanced-usage.md#available-versions-of-python-pypy-and-graalpy)
- [Hosted tool cache](docs/advanced-usage.md#hosted-tool-cache)
- [Hosted tool cache](docs/advanced-usage.md#hosted-tool-cache)
- [Using `setup-python` with a self-hosted runner](docs/advanced-usage.md#using-setup-python-with-a-self-hosted-runner)
- [Using `setup-python` on GHES](docs/advanced-usage.md#using-setup-python-on-ghes)
- [Allow pre-releases](docs/advanced-usage.md#allow-pre-releases)
Expand Down

0 comments on commit c33752f

Please sign in to comment.