From f9197e18448db1bd0c0c7f6b818acfba2e24553f Mon Sep 17 00:00:00 2001 From: vfdev Date: Fri, 22 Nov 2024 02:32:57 -0800 Subject: [PATCH] PR #19346: Bumped rules_python version to 0.39.0 Imported from GitHub PR https://github.com/openxla/xla/pull/19346 cc @hawkinsp Copybara import of the project: -- 292e7ebb7ee57e5af5977c08f0aaf28fc1f852e2 by vfdev-5 : Bumped rules_python version to 0.39.0 Merging this change closes #19346 PiperOrigin-RevId: 699100796 --- third_party/py/python_init_rules.bzl | 8 +++---- third_party/py/rules_python.patch | 32 ---------------------------- 2 files changed, 3 insertions(+), 37 deletions(-) delete mode 100644 third_party/py/rules_python.patch diff --git a/third_party/py/python_init_rules.bzl b/third_party/py/python_init_rules.bzl index 5a13d25df..79bc343aa 100644 --- a/third_party/py/python_init_rules.bzl +++ b/third_party/py/python_init_rules.bzl @@ -5,9 +5,7 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def python_init_rules(): http_archive( name = "rules_python", - sha256 = "778aaeab3e6cfd56d681c89f5c10d7ad6bf8d2f1a72de9de55b23081b2d31618", - strip_prefix = "rules_python-0.34.0", - url = "https://github.com/bazelbuild/rules_python/releases/download/0.34.0/rules_python-0.34.0.tar.gz", - patch_args = ["-p1"], - patches = [Label("//third_party/py:rules_python.patch")], + sha256 = "62ddebb766b4d6ddf1712f753dac5740bea072646f630eb9982caa09ad8a7687", + strip_prefix = "rules_python-0.39.0", + url = "https://github.com/bazelbuild/rules_python/releases/download/0.39.0/rules_python-0.39.0.tar.gz", ) diff --git a/third_party/py/rules_python.patch b/third_party/py/rules_python.patch deleted file mode 100644 index 3dbe06dd2..000000000 --- a/third_party/py/rules_python.patch +++ /dev/null @@ -1,32 +0,0 @@ -diff --git a/python/versions.bzl b/python/versions.bzl -index fd385cd1..eb4133f1 100644 ---- a/python/versions.bzl -+++ b/python/versions.bzl -@@ -484,6 +484,19 @@ TOOL_VERSIONS = { - }, - "strip_prefix": "python", - }, -+ "3.13.0": { -+ "url": "20241008/cpython-{python_version}+20241008-{platform}-{build}.tar.gz", -+ "sha256": { -+ "aarch64-apple-darwin": "5d3cb8d7ca4cfbbe7ae1f118f26be112ee417d982fab8c6d85cfd8ccccf70718", -+ "aarch64-unknown-linux-gnu": "c1142af8f2c85923d2ba8201a35b913bb903a5d15f052c38bbecf2f49e2342dc", -+ "ppc64le-unknown-linux-gnu": "1be64a330499fed4e1f864b97eef5445b0e4abc0559ae45df3108981800cf998", -+ "s390x-unknown-linux-gnu": "c0b1cc51426feadaa932fdd9afd9a9af789916e128e48ac8909f9a269bbbd749", -+ "x86_64-apple-darwin": "b58ca12d9ae14bbd79f9e5cf4b748211ff1953e59abeac63b0f4e8e49845669f", -+ "x86_64-pc-windows-msvc": "c7651a7a575104f47c808902b020168057f3ad80f277e54cecfaf79a9ff50e22", -+ "x86_64-unknown-linux-gnu": "455200e1a202e9d9ef4b630c04af701c0a91dcaa6462022efc76893fc762ec95", -+ }, -+ "strip_prefix": "python", -+ }, - } - - # buildifier: disable=unsorted-dict-items -@@ -493,6 +506,7 @@ MINOR_MAPPING = { - "3.10": "3.10.14", - "3.11": "3.11.9", - "3.12": "3.12.3", -+ "3.13": "3.13.0", - } - - PLATFORMS = {