Update references to python-build-standalone to reflect the transferred project (#9977)

This commit is contained in:
Zanie Blue 2024-12-17 14:19:58 -06:00 committed by GitHub
parent e730ef19f1
commit d70160a57b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 2679 additions and 2679 deletions

View file

@ -4183,7 +4183,7 @@ pub enum PythonCommand {
/// ///
/// Multiple Python versions may be requested. /// Multiple Python versions may be requested.
/// ///
/// Supports CPython and PyPy. CPython distributions are downloaded from the /// Supports CPython and PyPy. CPython distributions are downloaded from the Astral
/// `python-build-standalone` project. PyPy distributions are downloaded from `python.org`. /// `python-build-standalone` project. PyPy distributions are downloaded from `python.org`.
/// ///
/// Python versions are installed into the uv Python directory, which can be retrieved with `uv /// Python versions are installed into the uv Python directory, which can be retrieved with `uv
@ -4315,7 +4315,7 @@ pub struct PythonInstallArgs {
/// Set the URL to use as the source for downloading Python installations. /// Set the URL to use as the source for downloading Python installations.
/// ///
/// The provided URL will replace `https://github.com/indygreg/python-build-standalone/releases/download` in, e.g., `https://github.com/indygreg/python-build-standalone/releases/download/20240713/cpython-3.12.4%2B20240713-aarch64-apple-darwin-install_only.tar.gz`. /// The provided URL will replace `https://github.com/astral-sh/python-build-standalone/releases/download` in, e.g., `https://github.com/astral-sh/python-build-standalone/releases/download/20240713/cpython-3.12.4%2B20240713-aarch64-apple-darwin-install_only.tar.gz`.
/// ///
/// Distributions can be read from a local directory by using the `file://` URL scheme. /// Distributions can be read from a local directory by using the `file://` URL scheme.
#[arg(long, env = EnvVars::UV_PYTHON_INSTALL_MIRROR)] #[arg(long, env = EnvVars::UV_PYTHON_INSTALL_MIRROR)]

File diff suppressed because it is too large Load diff

View file

@ -171,7 +171,7 @@ class CPythonFinder(Finder):
implementation = ImplementationName.CPYTHON implementation = ImplementationName.CPYTHON
RELEASE_URL = ( RELEASE_URL = (
"https://api.github.com/repos/indygreg/python-build-standalone/releases" "https://api.github.com/repos/astral-sh/python-build-standalone/releases"
) )
FLAVOR_PREFERENCES = [ FLAVOR_PREFERENCES = [
@ -333,7 +333,7 @@ class CPythonFinder(Finder):
def _parse_download_url(self, url: str) -> PythonDownload | None: def _parse_download_url(self, url: str) -> PythonDownload | None:
"""Parse an indygreg download URL into a PythonDownload object.""" """Parse an indygreg download URL into a PythonDownload object."""
# Ex) # Ex)
# https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.12.1%2B20240107-aarch64-unknown-linux-gnu-lto-full.tar.zst # https://github.com/astral-sh/python-build-standalone/releases/download/20240107/cpython-3.12.1%2B20240107-aarch64-unknown-linux-gnu-lto-full.tar.zst
if url.endswith(".sha256"): if url.endswith(".sha256"):
return None return None
filename = unquote(url.rsplit("/", maxsplit=1)[-1]) filename = unquote(url.rsplit("/", maxsplit=1)[-1])

File diff suppressed because it is too large Load diff

View file

@ -657,7 +657,7 @@ impl ManagedPythonDownload {
LenientImplementationName::Known(ImplementationName::CPython) => { LenientImplementationName::Known(ImplementationName::CPython) => {
if let Some(mirror) = python_install_mirror { if let Some(mirror) = python_install_mirror {
let Some(suffix) = self.url.strip_prefix( let Some(suffix) = self.url.strip_prefix(
"https://github.com/indygreg/python-build-standalone/releases/download/", "https://github.com/astral-sh/python-build-standalone/releases/download/",
) else { ) else {
return Err(Error::Mirror(EnvVars::UV_PYTHON_INSTALL_MIRROR, self.url)); return Err(Error::Mirror(EnvVars::UV_PYTHON_INSTALL_MIRROR, self.url));
}; };

View file

@ -434,7 +434,7 @@ impl Interpreter {
/// `python-build-standalone`; if it returns `false`, the interpreter is definitely _not_ from /// `python-build-standalone`; if it returns `false`, the interpreter is definitely _not_ from
/// `python-build-standalone`. /// `python-build-standalone`.
/// ///
/// See: <https://github.com/indygreg/python-build-standalone/issues/382> /// See: <https://github.com/astral-sh/python-build-standalone/issues/382>
pub fn is_standalone(&self) -> bool { pub fn is_standalone(&self) -> bool {
self.standalone self.standalone
} }

View file

@ -709,16 +709,16 @@ pub struct ResolverInstallerOptions {
pub struct PythonInstallMirrors { pub struct PythonInstallMirrors {
/// Mirror URL for downloading managed Python installations. /// Mirror URL for downloading managed Python installations.
/// ///
/// By default, managed Python installations are downloaded from [`python-build-standalone`](https://github.com/indygreg/python-build-standalone). /// By default, managed Python installations are downloaded from [`python-build-standalone`](https://github.com/astral-sh/python-build-standalone).
/// This variable can be set to a mirror URL to use a different source for Python installations. /// This variable can be set to a mirror URL to use a different source for Python installations.
/// The provided URL will replace `https://github.com/indygreg/python-build-standalone/releases/download` in, e.g., `https://github.com/indygreg/python-build-standalone/releases/download/20240713/cpython-3.12.4%2B20240713-aarch64-apple-darwin-install_only.tar.gz`. /// The provided URL will replace `https://github.com/astral-sh/python-build-standalone/releases/download` in, e.g., `https://github.com/astral-sh/python-build-standalone/releases/download/20240713/cpython-3.12.4%2B20240713-aarch64-apple-darwin-install_only.tar.gz`.
/// ///
/// Distributions can be read from a local directory by using the `file://` URL scheme. /// Distributions can be read from a local directory by using the `file://` URL scheme.
#[option( #[option(
default = "None", default = "None",
value_type = "str", value_type = "str",
example = r#" example = r#"
python-install-mirror = "https://github.com/indygreg/python-build-standalone/releases/download" python-install-mirror = "https://github.com/astral-sh/python-build-standalone/releases/download"
"# "#
)] )]
pub python_install_mirror: Option<String>, pub python_install_mirror: Option<String>,

View file

@ -218,11 +218,11 @@ impl EnvVars {
/// Specifies the directory for storing managed Python installations. /// Specifies the directory for storing managed Python installations.
pub const UV_PYTHON_INSTALL_DIR: &'static str = "UV_PYTHON_INSTALL_DIR"; pub const UV_PYTHON_INSTALL_DIR: &'static str = "UV_PYTHON_INSTALL_DIR";
/// Managed Python installations are downloaded from /// Managed Python installations are downloaded from the Astral
/// [`python-build-standalone`](https://github.com/indygreg/python-build-standalone). /// [`python-build-standalone`](https://github.com/astral-sh/python-build-standalone) project.
/// This variable can be set to a mirror URL to use a different source for Python installations. /// This variable can be set to a mirror URL to use a different source for Python installations.
/// The provided URL will replace `https://github.com/indygreg/python-build-standalone/releases/download` in, e.g., /// The provided URL will replace `https://github.com/astral-sh/python-build-standalone/releases/download` in, e.g.,
/// `https://github.com/indygreg/python-build-standalone/releases/download/20240713/cpython-3.12.4%2B20240713-aarch64-apple-darwin-install_only.tar.gz`. /// `https://github.com/astral-sh/python-build-standalone/releases/download/20240713/cpython-3.12.4%2B20240713-aarch64-apple-darwin-install_only.tar.gz`.
/// Distributions can be read from a local directory by using the `file://` URL scheme. /// Distributions can be read from a local directory by using the `file://` URL scheme.
pub const UV_PYTHON_INSTALL_MIRROR: &'static str = "UV_PYTHON_INSTALL_MIRROR"; pub const UV_PYTHON_INSTALL_MIRROR: &'static str = "UV_PYTHON_INSTALL_MIRROR";

View file

@ -460,8 +460,8 @@ fn help_subsubcommand() {
Multiple Python versions may be requested. Multiple Python versions may be requested.
Supports CPython and PyPy. CPython distributions are downloaded from the `python-build-standalone` Supports CPython and PyPy. CPython distributions are downloaded from the Astral
project. PyPy distributions are downloaded from `python.org`. `python-build-standalone` project. PyPy distributions are downloaded from `python.org`.
Python versions are installed into the uv Python directory, which can be retrieved with `uv python Python versions are installed into the uv Python directory, which can be retrieved with `uv python
dir`. dir`.
@ -500,8 +500,8 @@ fn help_subsubcommand() {
Set the URL to use as the source for downloading Python installations. Set the URL to use as the source for downloading Python installations.
The provided URL will replace The provided URL will replace
`https://github.com/indygreg/python-build-standalone/releases/download` in, e.g., `https://github.com/astral-sh/python-build-standalone/releases/download` in, e.g.,
`https://github.com/indygreg/python-build-standalone/releases/download/20240713/cpython-3.12.4%2B20240713-aarch64-apple-darwin-install_only.tar.gz`. `https://github.com/astral-sh/python-build-standalone/releases/download/20240713/cpython-3.12.4%2B20240713-aarch64-apple-darwin-install_only.tar.gz`.
Distributions can be read from a local directory by using the `file://` URL scheme. Distributions can be read from a local directory by using the `file://` URL scheme.

View file

@ -272,10 +272,10 @@ uv supports downloading and installing CPython and PyPy distributions.
### CPython distributions ### CPython distributions
As Python does not publish official distributable CPython binaries, uv instead uses pre-built As Python does not publish official distributable CPython binaries, uv instead uses pre-built
third-party distributions from the distributions from the Astral
[`python-build-standalone`](https://github.com/indygreg/python-build-standalone) project. [`python-build-standalone`](https://github.com/astral-sh/python-build-standalone) project.
`python-build-standalone` is partially maintained by the uv maintainers and is used in many other `python-build-standalone` is also is used in many other Python projects, like
Python projects, like [Rye](https://github.com/astral-sh/rye) and [Rye](https://github.com/astral-sh/rye), [Mise](https://mise.jdx.dev/lang/python.html), and
[bazelbuild/rules_python](https://github.com/bazelbuild/rules_python). [bazelbuild/rules_python](https://github.com/bazelbuild/rules_python).
The uv Python distributions are self-contained, highly-portable, and performant. While Python can be The uv Python distributions are self-contained, highly-portable, and performant. While Python can be

View file

@ -290,11 +290,11 @@ Specifies the directory for storing managed Python installations.
### `UV_PYTHON_INSTALL_MIRROR` ### `UV_PYTHON_INSTALL_MIRROR`
Managed Python installations are downloaded from Managed Python installations are downloaded from the Astral
[`python-build-standalone`](https://github.com/indygreg/python-build-standalone). [`python-build-standalone`](https://github.com/astral-sh/python-build-standalone) project.
This variable can be set to a mirror URL to use a different source for Python installations. This variable can be set to a mirror URL to use a different source for Python installations.
The provided URL will replace `https://github.com/indygreg/python-build-standalone/releases/download` in, e.g., The provided URL will replace `https://github.com/astral-sh/python-build-standalone/releases/download` in, e.g.,
`https://github.com/indygreg/python-build-standalone/releases/download/20240713/cpython-3.12.4%2B20240713-aarch64-apple-darwin-install_only.tar.gz`. `https://github.com/astral-sh/python-build-standalone/releases/download/20240713/cpython-3.12.4%2B20240713-aarch64-apple-darwin-install_only.tar.gz`.
Distributions can be read from a local directory by using the `file://` URL scheme. Distributions can be read from a local directory by using the `file://` URL scheme.
### `UV_PYTHON_PREFERENCE` ### `UV_PYTHON_PREFERENCE`

View file

@ -23,7 +23,7 @@ system. If you've previously installed Python with uv, a new version will not be
!!! note !!! note
Python does not publish official distributable binaries. As such, uv uses third-party distributions from the [`python-build-standalone`](https://github.com/indygreg/python-build-standalone) project. The project is partially maintained by the uv maintainers and is used by other prominent Python projects (e.g., [Rye](https://github.com/astral-sh/rye), [Bazel](https://github.com/bazelbuild/rules_python)). See the [Python distributions](../concepts/python-versions.md#managed-python-distributions) documentation for more details. Python does not publish official distributable binaries. As such, uv uses distributions from Astral [`python-build-standalone`](https://github.com/astral-sh/python-build-standalone) project. See the [Python distributions](../concepts/python-versions.md#managed-python-distributions) documentation for more details.
<!-- TODO(zanieb): Restore when Python shim management is added <!-- TODO(zanieb): Restore when Python shim management is added
Note that when an automatic Python installation occurs, the `python` command will not be added to the shell. Use `uv python install-shim` to ensure the `python` shim is installed. Note that when an automatic Python installation occurs, the `python` command will not be added to the shell. Use `uv python install-shim` to ensure the `python` shim is installed.

View file

@ -4644,7 +4644,7 @@ Download and install Python versions.
Multiple Python versions may be requested. Multiple Python versions may be requested.
Supports CPython and PyPy. CPython distributions are downloaded from the `python-build-standalone` project. PyPy distributions are downloaded from `python.org`. Supports CPython and PyPy. CPython distributions are downloaded from the Astral `python-build-standalone` project. PyPy distributions are downloaded from `python.org`.
Python versions are installed into the uv Python directory, which can be retrieved with `uv python dir`. Python versions are installed into the uv Python directory, which can be retrieved with `uv python dir`.
@ -4734,7 +4734,7 @@ uv python install [OPTIONS] [TARGETS]...
<p>May also be set with the <code>UV_PYTHON_INSTALL_DIR</code> environment variable.</p> <p>May also be set with the <code>UV_PYTHON_INSTALL_DIR</code> environment variable.</p>
</dd><dt><code>--mirror</code> <i>mirror</i></dt><dd><p>Set the URL to use as the source for downloading Python installations.</p> </dd><dt><code>--mirror</code> <i>mirror</i></dt><dd><p>Set the URL to use as the source for downloading Python installations.</p>
<p>The provided URL will replace <code>https://github.com/indygreg/python-build-standalone/releases/download</code> in, e.g., <code>https://github.com/indygreg/python-build-standalone/releases/download/20240713/cpython-3.12.4%2B20240713-aarch64-apple-darwin-install_only.tar.gz</code>.</p> <p>The provided URL will replace <code>https://github.com/astral-sh/python-build-standalone/releases/download</code> in, e.g., <code>https://github.com/astral-sh/python-build-standalone/releases/download/20240713/cpython-3.12.4%2B20240713-aarch64-apple-darwin-install_only.tar.gz</code>.</p>
<p>Distributions can be read from a local directory by using the <code>file://</code> URL scheme.</p> <p>Distributions can be read from a local directory by using the <code>file://</code> URL scheme.</p>

View file

@ -1412,9 +1412,9 @@ Whether to allow Python downloads.
Mirror URL for downloading managed Python installations. Mirror URL for downloading managed Python installations.
By default, managed Python installations are downloaded from [`python-build-standalone`](https://github.com/indygreg/python-build-standalone). By default, managed Python installations are downloaded from [`python-build-standalone`](https://github.com/astral-sh/python-build-standalone).
This variable can be set to a mirror URL to use a different source for Python installations. This variable can be set to a mirror URL to use a different source for Python installations.
The provided URL will replace `https://github.com/indygreg/python-build-standalone/releases/download` in, e.g., `https://github.com/indygreg/python-build-standalone/releases/download/20240713/cpython-3.12.4%2B20240713-aarch64-apple-darwin-install_only.tar.gz`. The provided URL will replace `https://github.com/astral-sh/python-build-standalone/releases/download` in, e.g., `https://github.com/astral-sh/python-build-standalone/releases/download/20240713/cpython-3.12.4%2B20240713-aarch64-apple-darwin-install_only.tar.gz`.
Distributions can be read from a local directory by using the `file://` URL scheme. Distributions can be read from a local directory by using the `file://` URL scheme.
@ -1428,12 +1428,12 @@ Distributions can be read from a local directory by using the `file://` URL sche
```toml ```toml
[tool.uv] [tool.uv]
python-install-mirror = "https://github.com/indygreg/python-build-standalone/releases/download" python-install-mirror = "https://github.com/astral-sh/python-build-standalone/releases/download"
``` ```
=== "uv.toml" === "uv.toml"
```toml ```toml
python-install-mirror = "https://github.com/indygreg/python-build-standalone/releases/download" python-install-mirror = "https://github.com/astral-sh/python-build-standalone/releases/download"
``` ```
--- ---

View file

@ -30,7 +30,7 @@ SELF_DIR = Path(__file__).parent
REPO_ROOT = SELF_DIR.parent REPO_ROOT = SELF_DIR.parent
VERSIONS_FILE = REPO_ROOT / "crates" / "uv-python" / "download-metadata.json" VERSIONS_FILE = REPO_ROOT / "crates" / "uv-python" / "download-metadata.json"
PREFIXES = [ PREFIXES = [
"https://github.com/indygreg/python-build-standalone/releases/download/", "https://github.com/astral-sh/python-build-standalone/releases/download/",
"https://downloads.python.org/pypy/", "https://downloads.python.org/pypy/",
] ]

2
uv.schema.json generated
View file

@ -409,7 +409,7 @@
] ]
}, },
"python-install-mirror": { "python-install-mirror": {
"description": "Mirror URL for downloading managed Python installations.\n\nBy default, managed Python installations are downloaded from [`python-build-standalone`](https://github.com/indygreg/python-build-standalone). This variable can be set to a mirror URL to use a different source for Python installations. The provided URL will replace `https://github.com/indygreg/python-build-standalone/releases/download` in, e.g., `https://github.com/indygreg/python-build-standalone/releases/download/20240713/cpython-3.12.4%2B20240713-aarch64-apple-darwin-install_only.tar.gz`.\n\nDistributions can be read from a local directory by using the `file://` URL scheme.", "description": "Mirror URL for downloading managed Python installations.\n\nBy default, managed Python installations are downloaded from [`python-build-standalone`](https://github.com/astral-sh/python-build-standalone). This variable can be set to a mirror URL to use a different source for Python installations. The provided URL will replace `https://github.com/astral-sh/python-build-standalone/releases/download` in, e.g., `https://github.com/astral-sh/python-build-standalone/releases/download/20240713/cpython-3.12.4%2B20240713-aarch64-apple-darwin-install_only.tar.gz`.\n\nDistributions can be read from a local directory by using the `file://` URL scheme.",
"type": [ "type": [
"string", "string",
"null" "null"