Add support for pep440 version identifiers (#353)

Fixes: #264
This commit is contained in:
Kevin Stillhammer
2025-03-30 18:00:56 +02:00
committed by GitHub
parent 2d49baf2b6
commit 794ea9455c
6 changed files with 860 additions and 6 deletions

View File

@ -66,6 +66,7 @@ For an example workflow, see
### Install a version by supplying a semver range
You can specify a [semver range](https://github.com/npm/node-semver?tab=readme-ov-file#ranges)
or [pep440 identifier](https://peps.python.org/pep-0440/#version-specifiers)
to install the latest version that satisfies the range.
```yaml
@ -82,6 +83,13 @@ to install the latest version that satisfies the range.
version: "0.4.x"
```
```yaml
- name: Install a pep440-specifier-satisfying version of uv
uses: astral-sh/setup-uv@v5
with:
version: ">=0.4.25,<0.5"
```
### Install a required-version
You can specify a [required-version](https://docs.astral.sh/uv/reference/settings/#required-version)