Skip to content

Commit 03616eb

Browse files
authored
Add note about available versions (#11331)
ref #11243 (comment)
1 parent 6e5479f commit 03616eb

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

crates/uv-cli/src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4332,10 +4332,10 @@ pub enum PythonCommand {
43324332

43334333
/// Download and install Python versions.
43344334
///
4335-
/// Multiple Python versions may be requested.
4336-
///
43374335
/// Supports CPython and PyPy. CPython distributions are downloaded from the Astral
4338-
/// `python-build-standalone` project. PyPy distributions are downloaded from `python.org`.
4336+
/// `python-build-standalone` project. PyPy distributions are downloaded from `python.org`. The
4337+
/// available Python versions are bundled with each uv release. To install new Python versions,
4338+
/// you may need upgrade uv.
43394339
///
43404340
/// Python versions are installed into the uv Python directory, which can be retrieved with `uv
43414341
/// python dir`.
@@ -4344,6 +4344,8 @@ pub enum PythonCommand {
43444344
/// in uv commands or in active virtual environments. There is experimental support for adding
43454345
/// Python executables to the `PATH` — use the `--preview` flag to enable this behavior.
43464346
///
4347+
/// Multiple Python versions may be requested.
4348+
///
43474349
/// See `uv help python` to view supported request formats.
43484350
Install(PythonInstallArgs),
43494351

crates/uv/tests/it/help.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,10 +458,10 @@ fn help_subsubcommand() {
458458
----- stdout -----
459459
Download and install Python versions.
460460
461-
Multiple Python versions may be requested.
462-
463461
Supports CPython and PyPy. CPython distributions are downloaded from the Astral
464-
`python-build-standalone` project. PyPy distributions are downloaded from `python.org`.
462+
`python-build-standalone` project. PyPy distributions are downloaded from `python.org`. The
463+
available Python versions are bundled with each uv release. To install new Python versions, you may
464+
need upgrade uv.
465465
466466
Python versions are installed into the uv Python directory, which can be retrieved with `uv python
467467
dir`.
@@ -470,6 +470,8 @@ fn help_subsubcommand() {
470470
commands or in active virtual environments. There is experimental support for adding Python
471471
executables to the `PATH` — use the `--preview` flag to enable this behavior.
472472
473+
Multiple Python versions may be requested.
474+
473475
See `uv help python` to view supported request formats.
474476
475477
Usage: uv python install [OPTIONS] [TARGETS]...

docs/concepts/python-versions.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ latest version. If a `.python-version` file is present, uv will install the Pyth
110110
the file. A project that requires multiple Python versions may define a `.python-versions` file. If
111111
present, uv will install all of the Python versions listed in the file.
112112

113+
!!! important
114+
115+
The available Python versions are frozen for each uv release. To install new Python versions,
116+
you may need upgrade uv.
117+
113118
### Installing Python executables
114119

115120
!!! important

docs/reference/cli.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4742,14 +4742,14 @@ uv python list [OPTIONS]
47424742

47434743
Download and install Python versions.
47444744

4745-
Multiple Python versions may be requested.
4746-
4747-
Supports CPython and PyPy. CPython distributions are downloaded from the Astral `python-build-standalone` project. PyPy distributions are downloaded from `python.org`.
4745+
Supports CPython and PyPy. CPython distributions are downloaded from the Astral `python-build-standalone` project. PyPy distributions are downloaded from `python.org`. The available Python versions are bundled with each uv release. To install new Python versions, you may need upgrade uv.
47484746

47494747
Python versions are installed into the uv Python directory, which can be retrieved with `uv python dir`.
47504748

47514749
A `python` executable is not made globally available, managed Python versions are only used in uv commands or in active virtual environments. There is experimental support for adding Python executables to the `PATH` — use the `--preview` flag to enable this behavior.
47524750

4751+
Multiple Python versions may be requested.
4752+
47534753
See `uv help python` to view supported request formats.
47544754

47554755
<h3 class="cli-reference">Usage</h3>

0 commit comments

Comments
 (0)