mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 02:48:17 +00:00
Update references to python-build-standalone
to reflect the transferred project (#9977)
This commit is contained in:
parent
e730ef19f1
commit
d70160a57b
16 changed files with 2679 additions and 2679 deletions
File diff suppressed because it is too large
Load diff
|
@ -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
|
@ -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));
|
||||
};
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue