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

File diff suppressed because it is too large Load diff

View file

@ -171,7 +171,7 @@ class CPythonFinder(Finder):
implementation = ImplementationName.CPYTHON
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 = [
@ -333,7 +333,7 @@ class CPythonFinder(Finder):
def _parse_download_url(self, url: str) -> PythonDownload | None:
"""Parse an indygreg download URL into a PythonDownload object."""
# 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"):
return None
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) => {
if let Some(mirror) = python_install_mirror {
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 {
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`.
///
/// 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 {
self.standalone
}