Skip to content

Commit

Permalink
Upgrade Python to 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
tryuan99 committed Jul 2, 2024
1 parent 10cc16a commit 25ec6a3
Show file tree
Hide file tree
Showing 8 changed files with 160 additions and 150 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ repos:
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.0
rev: v18.1.8
hooks:
- id: clang-format
- repo: https://github.com/keith/pre-commit-buildifier
rev: 6.4.0
rev: 6.4.0.1
hooks:
- id: buildifier
- id: buildifier-lint
4 changes: 3 additions & 1 deletion deps/pip_deps.bzl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""This module loads the pip dependencies."""

load("@pip_deps//:requirements.bzl", "install_deps")
load("@python3_11//:defs.bzl", "interpreter")
load("@python3_12//:defs.bzl", "interpreter")

def load_pip_dependencies():
install_deps(
Expand Down
4 changes: 3 additions & 1 deletion deps/pip_requirements.bzl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
load("@python3_11//:defs.bzl", "interpreter")
"""This module parses the pip dependencies."""

load("@python3_12//:defs.bzl", "interpreter")
load("@rules_python//python:pip.bzl", "pip_parse")

def parse_pip_requirements():
Expand Down
12 changes: 6 additions & 6 deletions deps/pip_requirements.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
absl-py==2.1.0
matplotlib==3.8.0
matplotlib==3.8.4
networkx==3.3
numpy==1.26.3
protobuf==5.27.0
pandas==2.1.4
numpy==1.26.4
protobuf==5.27.2
pandas==2.2.2
pyserial==3.5
regex==2024.5.15
SciencePlots==2.1.1
scikit-rf==1.0.0
scipy==1.11.4
scikit-rf==1.1.0
scipy==1.13.1
272 changes: 138 additions & 134 deletions deps/pip_requirements.txt

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions third_party/rules_pkg/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

RULES_PKG_VERSION = "0.10.1"
RULES_PKG_VERSION = "1.0.0"

def rules_pkg_workspace():
http_archive(
name = "rules_pkg",
sha256 = "d330dbe3e3004241ddb9b377416ffc5c823e3e2c08c0d56a7e1935499e7f8577",
sha256 = "cc1d6f58eb9bc2bfad247b20f07725dda2d6b119b62b11f1dab9a094a24222e6",
strip_prefix = "rules_pkg-{}".format(RULES_PKG_VERSION),
url = "https://github.com/bazelbuild/rules_pkg/archive/refs/tags/{}.tar.gz".format(RULES_PKG_VERSION),
)
4 changes: 2 additions & 2 deletions third_party/rules_python/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

RULES_PYTHON_VERSION = "0.32.2"
RULES_PYTHON_VERSION = "0.33.2"

def rules_python_workspace():
http_archive(
name = "rules_python",
sha256 = "4912ced70dc1a2a8e4b86cec233b192ca053e82bc72d877b98e126156e8f228d",
sha256 = "e3f1cc7a04d9b09635afb3130731ed82b5f58eadc8233d4efb59944d92ffc06f",
strip_prefix = "rules_python-{}".format(RULES_PYTHON_VERSION),
url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/{}.tar.gz".format(RULES_PYTHON_VERSION),
)
6 changes: 4 additions & 2 deletions tools/python.bzl
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"""This module defines the Python toolchain."""

load("@rules_python//python:repositories.bzl", "python_register_toolchains")

def register_python_toolchain():
python_register_toolchains(
name = "python3_11",
python_version = "3.11",
name = "python3_12",
python_version = "3.12",
)

0 comments on commit 25ec6a3

Please sign in to comment.