You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 46f427b
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+21-3Lines changed: 21 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,13 +47,13 @@ Have a look under [Advanced Configuration](#advanced-configuration) for detailed
47
47
# The version of uv to install, e.g., "0.5.0", "latest", or "latest-known" (default: searches for version in config files, then latest)
48
48
version: ""
49
49
50
-
# Path to a file containing the version of uv to install, e.g., uv.toml, pyproject.toml, .tool-versions, requirements.txt or uv.lock (default: searches uv.toml then pyproject.toml)
50
+
# Path to a file containing the version of uv to install, e.g., uv.toml, pyproject.toml, .tool-versions, requirements.txt or uv.lock. A selected .tool-versions file can also provide the Python version (default: searches uv.toml then pyproject.toml)
51
51
version-file: ""
52
52
53
53
# Resolution strategy when resolving version ranges: 'highest' or 'lowest'
54
54
resolution-strategy: "highest"
55
55
56
-
# The version of Python to set UV_PYTHON to
56
+
# The version of Python to set UV_PYTHON to (overrides the Python version from .tool-versions)
57
57
python-version: ""
58
58
59
59
# Use uv venv to activate a venv ready to be used by later steps
@@ -144,7 +144,25 @@ Have a look under [Advanced Configuration](#advanced-configuration) for detailed
144
144
145
145
You can use the input `python-version` to set the environment variable `UV_PYTHON` for the rest of your workflow
146
146
147
-
This will override any python version specifications in `pyproject.toml` and `.python-version`
147
+
This will override any python version specifications in `pyproject.toml`, `.python-version`, and
148
+
an explicitly selected `.tool-versions` file.
149
+
150
+
When `version-file` points to `.tool-versions`, its `python` entry is used if neither
Copy file name to clipboardExpand all lines: action.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,10 @@ inputs:
7
7
description: "The version of uv to install, e.g., `0.5.0`, `latest`, or `latest-known`. Defaults to the version in pyproject.toml or `latest`."
8
8
default: ""
9
9
version-file:
10
-
description: "Path to a file containing the version of uv to install, e.g., uv.toml, pyproject.toml, .tool-versions, requirements.txt or uv.lock. Defaults to searching for uv.toml and if not found pyproject.toml."
10
+
description: "Path to a file containing the version of uv to install, e.g., uv.toml, pyproject.toml, .tool-versions, requirements.txt or uv.lock. A selected .tool-versions file can also provide the Python version. Defaults to searching for uv.toml and if not found pyproject.toml."
11
11
default: ""
12
12
python-version:
13
-
description: "The version of Python to set UV_PYTHON to"
13
+
description: "The version of Python to set UV_PYTHON to. Overrides the Python version from .tool-versions."
14
14
required: false
15
15
activate-environment:
16
16
description: "Use uv venv to activate a venv ready to be used by later steps. "
0 commit comments