Skip to content

Commit 88cdd9d

Browse files
committedJan 2, 2025
chore: Switch to github.com/astral-sh/python-build-standalone
1 parent a79395a commit 88cdd9d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

‎README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ The following operating systems and architectures are supported:
4545
Releases in this library are handled a bit different from what one might be used to. This library does currently not
4646
follow a versioning schema comparable to sematic versioning. This might however change in the future.
4747

48-
Right now, every tagged release is compromised of the Python interpreter version, the [python-standalone](https://github.com/indygreg/python-build-standalone)
49-
and a build number. For example, the release version `v0.0.0-3.11.6-20231002-2` belongs to Python version 3.11.6,
50-
the [20231002](https://github.com/indygreg/python-build-standalone/releases/tag/20231002) version of python-standalone
48+
Right now, every tagged release is compromised of the Python interpreter version, the [python-standalone](https://github.com/astral-sh/python-build-standalone)
49+
and a build number. For example, the release version `v0.0.0-3.11.6-20241219-2` belongs to Python version 3.11.6,
50+
the [20241219](https://github.com/astral-sh/python-build-standalone/releases/tag/20241219) version of python-standalone
5151
and build number 2. The release version currently always has v0.0.0 as its own version.
5252

5353
The way versioning is handled might result in popular dependency management tools (e.g. dependabot) to not work as you
5454
might require it. Please watch out to not accidentally upgrade your Python version!
5555

5656
## How it works
57-
This library uses the standalone Python distributions found at https://github.com/indygreg/python-build-standalone as
57+
This library uses the standalone Python distributions found at https://github.com/astral-sh/python-build-standalone as
5858
the base.
5959

6060
The `./hack/build-tag.sh` script is used to invoke `python/generate` and `pip/generate`, which then downloads, extracts

‎python/generate/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
)
1818

1919
var (
20-
pythonStandaloneVersion = flag.String("python-standalone-version", "", "specify the python-standalone version. Check https://github.com/indygreg/python-build-standalone/releases/ for available options.")
20+
pythonStandaloneVersion = flag.String("python-standalone-version", "", "specify the python-standalone version. Check https://github.com/astral-sh/python-build-standalone/releases/ for available options.")
2121
pythonVersion = flag.String("python-version", "", "specify the python version.")
2222
preparePath = flag.String("prepare-path", filepath.Join(os.TempDir(), "python-download"), "specify the path where the python executables are downloaded and prepared. automatically creates a temporary directory if unset")
2323
runPrepare = flag.Bool("prepare", true, "if set, python executables will be downloaded and prepared for packing at the configured path")
@@ -173,7 +173,7 @@ func download(osName string, arch string, dist string) string {
173173

174174
downloadPath := generateDownloadPath(arch, dist)
175175
fname := filepath.Base(downloadPath)
176-
downloadUrl := fmt.Sprintf("https://github.com/indygreg/python-build-standalone/releases/download/%s/%s", *pythonStandaloneVersion, fname)
176+
downloadUrl := fmt.Sprintf("https://github.com/astral-sh/python-build-standalone/releases/download/%s/%s", *pythonStandaloneVersion, fname)
177177

178178
if _, err := os.Stat(downloadPath); err == nil {
179179
log.Infof("skipping download of %s", downloadUrl)

0 commit comments

Comments
 (0)
Please sign in to comment.