-
-
Notifications
You must be signed in to change notification settings - Fork 677
fix(uv): drop powerpc64 support to fix latest version downloads #3678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -81,6 +81,11 @@ Other changes: | |||||||||
| Fixes | ||||||||||
| ([#3260](https://github.com/bazel-contrib/rules_python/issues/3260) and | ||||||||||
| [#2632](https://github.com/bazel-contrib/rules_python/issues/2632)). | ||||||||||
| * (uv) We will now use the download URL specified in the `uv`'s `dist_manifest.json` | ||||||||||
| file. If you have redirects or blocking rules as part of your downloader setup, | ||||||||||
| you may need to adjust them. What is more, the default uv version has been bumped | ||||||||||
| `0.11.2`. | ||||||||||
|
Comment on lines
+86
to
+87
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||||||
| * (runfiles): We are stopping the type annotation testing with `mypy` for Python 3.9. | ||||||||||
|
|
||||||||||
| {#v0-0-0-fixed} | ||||||||||
| ### Fixed | ||||||||||
|
|
@@ -97,6 +102,19 @@ Other changes: | |||||||||
| * (bootstrap) Fixed incorrect runfiles path construction in bootstrap | ||||||||||
| scripts when binary is defined in another bazel module | ||||||||||
| ([#3563](https://github.com/bazel-contrib/rules_python/issues/3563)). | ||||||||||
| * (uv) Downloads for versions `>=0.10` work again. In order to fix this we had | ||||||||||
| drop support for `powerpc64` platform. People interested in the platform can | ||||||||||
|
Comment on lines
+105
to
+106
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a missing word "to" before "drop".
Suggested change
|
||||||||||
| bring it back via the `uv.default` API. Like: | ||||||||||
| ``` | ||||||||||
| uv.default( | ||||||||||
| compatible_with = [ | ||||||||||
| "@platforms//os:linux", | ||||||||||
| "@platforms//cpu:ppc", | ||||||||||
| ], | ||||||||||
| platform = "powerpc64-unknown-linux-gnu", | ||||||||||
| ) | ||||||||||
| ``` | ||||||||||
| Fixes [#3676](https://github.com/bazel-contrib/rules_python/issues/3676). | ||||||||||
|
|
||||||||||
| {#v0-0-0-added} | ||||||||||
| ### Added | ||||||||||
|
|
||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -420,6 +420,17 @@ def _get_tool_urls_from_dist_manifest(module_ctx, *, base_url, manifest_filename | |
| "uv-aarch64-apple-darwin.tar.gz.sha256" | ||
| "... | ||
| ] | ||
| hosting | ||
| order | ||
| 0 "simple" | ||
| 1 "github" | ||
| github | ||
| artifact_base_url "https://github.com" | ||
| artifact_download_path "/astral-sh/uv/releases/download/0.11.2" | ||
| owner "astral-sh" | ||
| repo "uv" | ||
| simple | ||
| download_url "https://releases.astral.sh/github/uv/releases/download/0.11.2" | ||
| artifacts | ||
| uv-aarch64-apple-darwin.tar.gz | ||
| name "uv-aarch64-apple-darwin.tar.gz" | ||
|
|
@@ -460,6 +471,14 @@ def _get_tool_urls_from_dist_manifest(module_ctx, *, base_url, manifest_filename | |
| fail(result) | ||
| dist_manifest = json.decode(module_ctx.read(dist_manifest)) | ||
|
|
||
| base_url = ( | ||
| dist_manifest | ||
| .get("releases", [{}])[0] | ||
| .get("hosting", {}) | ||
| .get("simple", {}) | ||
| .get("download_url", base_url) | ||
| ) | ||
|
Comment on lines
+474
to
+480
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The current implementation will raise an |
||
|
|
||
| artifacts = dist_manifest["artifacts"] | ||
| tool_sources = {} | ||
| downloads = {} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The filename mentioned here is
dist_manifest.json, but the actual filename used in the repository and by theuvproject isdist-manifest.json(with a hyphen).