From 1c779f2a3eb23530cc7ff74f83e8c1cefbf0929a Mon Sep 17 00:00:00 2001 From: Charles OuGuo Date: Mon, 26 Feb 2024 14:13:57 -0500 Subject: [PATCH] Bump to python 3.11 (#3) --- .github/workflows/main.yml | 4 +- MODULE.bazel | 4 +- MODULE.bazel.lock | 258 ++++++------------------------------- 3 files changed, 46 insertions(+), 220 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0eeef5ed..5ae2e84c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,10 +1,10 @@ -# Run tests on master and feature branches. name: Test on: pull_request: + branches: main push: - branches: [ main ] + branches: main jobs: build: diff --git a/MODULE.bazel b/MODULE.bazel index 23589210..e873ae7d 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -2,12 +2,12 @@ bazel_dep(name = "rules_python", version = "0.31.0") python = use_extension("@rules_python//python/extensions:python.bzl", "python") python.toolchain( - python_version = "3.10", + python_version = "3.11", ) pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") pip.parse( - python_version = "3.10", + python_version = "3.11", requirements_lock = "//src/python:requirements.txt", ) use_repo(pip, "py_proto_deps") diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index fc6ba0cc..19cb8dc4 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -1,6 +1,6 @@ { "lockFileVersion": 3, - "moduleFileHash": "ec462b82eb4ad120de737440098db4a351a0cf8845c81d6a778a4bdb0b2bb5dd", + "moduleFileHash": "d7a9a30bfc9d3ddfad003f7a88bce1718f4ac5860ce58b032804641eef457971", "flags": { "cmdRegistries": [ "https://bcr.bazel.build/" @@ -39,7 +39,7 @@ { "tagName": "toolchain", "attributeValues": { - "python_version": "3.10" + "python_version": "3.11" }, "devDependency": false, "location": { @@ -69,7 +69,7 @@ { "tagName": "parse", "attributeValues": { - "python_version": "3.10", + "python_version": "3.11", "requirements_lock": "//src/python:requirements.txt" }, "devDependency": false, @@ -1769,42 +1769,22 @@ ] } }, - "python_3_10_aarch64-apple-darwin": { - "bzlFile": "@@rules_python~0.31.0//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "name": "rules_python~0.31.0~python~python_3_10_aarch64-apple-darwin", - "sha256": "fd027b1dedf1ea034cdaa272e91771bdf75ddef4c8653b05d224a0645aa2ca3c", - "patches": [], - "platform": "aarch64-apple-darwin", - "python_version": "3.10.13", - "release_filename": "20231002/cpython-3.10.13+20231002-aarch64-apple-darwin-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.10.13+20231002-aarch64-apple-darwin-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_10_x86_64-apple-darwin": { - "bzlFile": "@@rules_python~0.31.0//python:repositories.bzl", - "ruleClassName": "python_repository", + "python_3_11": { + "bzlFile": "@@rules_python~0.31.0//python/private:toolchains_repo.bzl", + "ruleClassName": "toolchain_aliases", "attributes": { - "name": "rules_python~0.31.0~python~python_3_10_x86_64-apple-darwin", - "sha256": "be0b19b6af1f7d8c667e5abef5505ad06cf72e5a11bb5844970c395a7e5b1275", - "patches": [], - "platform": "x86_64-apple-darwin", - "python_version": "3.10.13", - "release_filename": "20231002/cpython-3.10.13+20231002-x86_64-apple-darwin-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.10.13+20231002-x86_64-apple-darwin-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false + "name": "rules_python~0.31.0~python~python_3_11", + "python_version": "3.11.7", + "user_repository_name": "python_3_11", + "platforms": [ + "aarch64-apple-darwin", + "aarch64-unknown-linux-gnu", + "ppc64le-unknown-linux-gnu", + "s390x-unknown-linux-gnu", + "x86_64-apple-darwin", + "x86_64-pc-windows-msvc", + "x86_64-unknown-linux-gnu" + ] } }, "python_3_11_aarch64-unknown-linux-gnu": { @@ -1845,18 +1825,18 @@ "ignore_root_user_error": false } }, - "python_3_10_ppc64le-unknown-linux-gnu": { + "python_3_11_ppc64le-unknown-linux-gnu": { "bzlFile": "@@rules_python~0.31.0//python:repositories.bzl", "ruleClassName": "python_repository", "attributes": { - "name": "rules_python~0.31.0~python~python_3_10_ppc64le-unknown-linux-gnu", - "sha256": "f3f9c43eec1a0c3f72845d0b705da17a336d3906b7df212d2640b8f47e8ff375", + "name": "rules_python~0.31.0~python~python_3_11_ppc64le-unknown-linux-gnu", + "sha256": "b44e1b74afe75c7b19143413632c4386708ae229117f8f950c2094e9681d34c7", "patches": [], "platform": "ppc64le-unknown-linux-gnu", - "python_version": "3.10.13", - "release_filename": "20231002/cpython-3.10.13+20231002-ppc64le-unknown-linux-gnu-install_only.tar.gz", + "python_version": "3.11.7", + "release_filename": "20240107/cpython-3.11.7+20240107-ppc64le-unknown-linux-gnu-install_only.tar.gz", "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.10.13+20231002-ppc64le-unknown-linux-gnu-install_only.tar.gz" + "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.11.7+20240107-ppc64le-unknown-linux-gnu-install_only.tar.gz" ], "distutils_content": "", "strip_prefix": "python", @@ -1864,18 +1844,18 @@ "ignore_root_user_error": false } }, - "python_3_10_x86_64-pc-windows-msvc": { + "python_3_11_x86_64-apple-darwin": { "bzlFile": "@@rules_python~0.31.0//python:repositories.bzl", "ruleClassName": "python_repository", "attributes": { - "name": "rules_python~0.31.0~python~python_3_10_x86_64-pc-windows-msvc", - "sha256": "b8d930ce0d04bda83037ad3653d7450f8907c88e24bb8255a29b8dab8930d6f1", + "name": "rules_python~0.31.0~python~python_3_11_x86_64-apple-darwin", + "sha256": "a0e615eef1fafdc742da0008425a9030b7ea68a4ae4e73ac557ef27b112836d4", "patches": [], - "platform": "x86_64-pc-windows-msvc", - "python_version": "3.10.13", - "release_filename": "20231002/cpython-3.10.13+20231002-x86_64-pc-windows-msvc-shared-install_only.tar.gz", + "platform": "x86_64-apple-darwin", + "python_version": "3.11.7", + "release_filename": "20240107/cpython-3.11.7+20240107-x86_64-apple-darwin-install_only.tar.gz", "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.10.13+20231002-x86_64-pc-windows-msvc-shared-install_only.tar.gz" + "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.11.7+20240107-x86_64-apple-darwin-install_only.tar.gz" ], "distutils_content": "", "strip_prefix": "python", @@ -1888,179 +1868,43 @@ "ruleClassName": "hub_repo", "attributes": { "name": "rules_python~0.31.0~python~pythons_hub", - "default_python_version": "3.10", + "default_python_version": "3.11", "toolchain_prefixes": [ - "_0000_python_3_11_", - "_0001_python_3_10_" + "_0000_python_3_11_" ], "toolchain_python_versions": [ - "3.11", - "3.10" + "3.11" ], "toolchain_set_python_version_constraints": [ - "True", "False" ], "toolchain_user_repository_names": [ - "python_3_11", - "python_3_10" - ] - } - }, - "python_3_11_x86_64-pc-windows-msvc": { - "bzlFile": "@@rules_python~0.31.0//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "name": "rules_python~0.31.0~python~python_3_11_x86_64-pc-windows-msvc", - "sha256": "67077e6fa918e4f4fd60ba169820b00be7c390c497bf9bc9cab2c255ea8e6f3e", - "patches": [], - "platform": "x86_64-pc-windows-msvc", - "python_version": "3.11.7", - "release_filename": "20240107/cpython-3.11.7+20240107-x86_64-pc-windows-msvc-shared-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.11.7+20240107-x86_64-pc-windows-msvc-shared-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_10_aarch64-unknown-linux-gnu": { - "bzlFile": "@@rules_python~0.31.0//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "name": "rules_python~0.31.0~python~python_3_10_aarch64-unknown-linux-gnu", - "sha256": "8675915ff454ed2f1597e27794bc7df44f5933c26b94aa06af510fe91b58bb97", - "patches": [], - "platform": "aarch64-unknown-linux-gnu", - "python_version": "3.10.13", - "release_filename": "20231002/cpython-3.10.13+20231002-aarch64-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.10.13+20231002-aarch64-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_11": { - "bzlFile": "@@rules_python~0.31.0//python/private:toolchains_repo.bzl", - "ruleClassName": "toolchain_aliases", - "attributes": { - "name": "rules_python~0.31.0~python~python_3_11", - "python_version": "3.11.7", - "user_repository_name": "python_3_11", - "platforms": [ - "aarch64-apple-darwin", - "aarch64-unknown-linux-gnu", - "ppc64le-unknown-linux-gnu", - "s390x-unknown-linux-gnu", - "x86_64-apple-darwin", - "x86_64-pc-windows-msvc", - "x86_64-unknown-linux-gnu" - ] - } - }, - "python_3_10_s390x-unknown-linux-gnu": { - "bzlFile": "@@rules_python~0.31.0//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "name": "rules_python~0.31.0~python~python_3_10_s390x-unknown-linux-gnu", - "sha256": "859f6cfe9aedb6e8858892fdc124037e83ab05f28d42a7acd314c6a16d6bd66c", - "patches": [], - "platform": "s390x-unknown-linux-gnu", - "python_version": "3.10.13", - "release_filename": "20231002/cpython-3.10.13+20231002-s390x-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.10.13+20231002-s390x-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_10": { - "bzlFile": "@@rules_python~0.31.0//python/private:toolchains_repo.bzl", - "ruleClassName": "toolchain_aliases", - "attributes": { - "name": "rules_python~0.31.0~python~python_3_10", - "python_version": "3.10.13", - "user_repository_name": "python_3_10", - "platforms": [ - "aarch64-apple-darwin", - "aarch64-unknown-linux-gnu", - "ppc64le-unknown-linux-gnu", - "s390x-unknown-linux-gnu", - "x86_64-apple-darwin", - "x86_64-pc-windows-msvc", - "x86_64-unknown-linux-gnu" + "python_3_11" ] } }, - "python_3_11_ppc64le-unknown-linux-gnu": { - "bzlFile": "@@rules_python~0.31.0//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "name": "rules_python~0.31.0~python~python_3_11_ppc64le-unknown-linux-gnu", - "sha256": "b44e1b74afe75c7b19143413632c4386708ae229117f8f950c2094e9681d34c7", - "patches": [], - "platform": "ppc64le-unknown-linux-gnu", - "python_version": "3.11.7", - "release_filename": "20240107/cpython-3.11.7+20240107-ppc64le-unknown-linux-gnu-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.11.7+20240107-ppc64le-unknown-linux-gnu-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, - "python_3_11_x86_64-apple-darwin": { - "bzlFile": "@@rules_python~0.31.0//python:repositories.bzl", - "ruleClassName": "python_repository", - "attributes": { - "name": "rules_python~0.31.0~python~python_3_11_x86_64-apple-darwin", - "sha256": "a0e615eef1fafdc742da0008425a9030b7ea68a4ae4e73ac557ef27b112836d4", - "patches": [], - "platform": "x86_64-apple-darwin", - "python_version": "3.11.7", - "release_filename": "20240107/cpython-3.11.7+20240107-x86_64-apple-darwin-install_only.tar.gz", - "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.11.7+20240107-x86_64-apple-darwin-install_only.tar.gz" - ], - "distutils_content": "", - "strip_prefix": "python", - "coverage_tool": "", - "ignore_root_user_error": false - } - }, "python_versions": { "bzlFile": "@@rules_python~0.31.0//python/private:toolchains_repo.bzl", "ruleClassName": "multi_toolchain_aliases", "attributes": { "name": "rules_python~0.31.0~python~python_versions", "python_versions": { - "3.10": "python_3_10", "3.11": "python_3_11" } } }, - "python_3_10_x86_64-unknown-linux-gnu": { + "python_3_11_x86_64-pc-windows-msvc": { "bzlFile": "@@rules_python~0.31.0//python:repositories.bzl", "ruleClassName": "python_repository", "attributes": { - "name": "rules_python~0.31.0~python~python_3_10_x86_64-unknown-linux-gnu", - "sha256": "5d0429c67c992da19ba3eb58b3acd0b35ec5e915b8cae9a4aa8ca565c423847a", + "name": "rules_python~0.31.0~python~python_3_11_x86_64-pc-windows-msvc", + "sha256": "67077e6fa918e4f4fd60ba169820b00be7c390c497bf9bc9cab2c255ea8e6f3e", "patches": [], - "platform": "x86_64-unknown-linux-gnu", - "python_version": "3.10.13", - "release_filename": "20231002/cpython-3.10.13+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz", + "platform": "x86_64-pc-windows-msvc", + "python_version": "3.11.7", + "release_filename": "20240107/cpython-3.11.7+20240107-x86_64-pc-windows-msvc-shared-install_only.tar.gz", "urls": [ - "https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.10.13+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz" + "https://github.com/indygreg/python-build-standalone/releases/download/20240107/cpython-3.11.7+20240107-x86_64-pc-windows-msvc-shared-install_only.tar.gz" ], "distutils_content": "", "strip_prefix": "python", @@ -2068,24 +1912,6 @@ "ignore_root_user_error": false } }, - "python_3_10_host": { - "bzlFile": "@@rules_python~0.31.0//python/private:toolchains_repo.bzl", - "ruleClassName": "host_toolchain", - "attributes": { - "name": "rules_python~0.31.0~python~python_3_10_host", - "python_version": "3.10.13", - "user_repository_name": "python_3_10", - "platforms": [ - "aarch64-apple-darwin", - "aarch64-unknown-linux-gnu", - "ppc64le-unknown-linux-gnu", - "s390x-unknown-linux-gnu", - "x86_64-apple-darwin", - "x86_64-pc-windows-msvc", - "x86_64-unknown-linux-gnu" - ] - } - }, "python_3_11_x86_64-unknown-linux-gnu": { "bzlFile": "@@rules_python~0.31.0//python:repositories.bzl", "ruleClassName": "python_repository",