From 48b9723a374dbdad81217984d578801b85976c88 Mon Sep 17 00:00:00 2001 From: Charles Guo Date: Mon, 15 Jul 2024 16:57:56 -0400 Subject: [PATCH] Upgrade to Python 3.12 --- .python_version | 1 + MODULE.bazel | 6 +++--- requirements.lock.txt | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 .python_version diff --git a/.python_version b/.python_version new file mode 100644 index 00000000..455808f8 --- /dev/null +++ b/.python_version @@ -0,0 +1 @@ +3.12.4 diff --git a/MODULE.bazel b/MODULE.bazel index d98c6531..6c296fc6 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -9,14 +9,14 @@ bazel_dep(name = "rules_oci", version = "1.7.6") python = use_extension("@rules_python//python/extensions:python.bzl", "python") python.toolchain( - python_version = "3.11", + python_version = "3.12", ) -use_repo(python, "python_3_11") +use_repo(python, "python_3_12") pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") pip.parse( hub_name = "py_deps", - python_version = "3.11", + python_version = "3.12", requirements_lock = "//:requirements.lock.txt", ) use_repo(pip, "py_deps") diff --git a/requirements.lock.txt b/requirements.lock.txt index 6fd89118..b6517e69 100644 --- a/requirements.lock.txt +++ b/requirements.lock.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.11 +# This file is autogenerated by pip-compile with Python 3.12 # by the following command: # # bazel run //:requirements.update