Skip to content
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

Upgrade to Python 3.12 #243

Merged
merged 6 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .python_version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12.4
6 changes: 3 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions ark_nova_stats/api/migrations/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ py_oci_image(
"FITBIT_VERIFICATION_CODE": "testing",
"FLASK_SECRET_KEY": "testing",
},
tags = ["manual"],
)

# $ bazel run //ark_nova_stats/api/migrations:image_tarball
Expand Down
1 change: 1 addition & 0 deletions fitbit_challenges/api/migrations/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ py_oci_image(
"FITBIT_VERIFICATION_CODE": "testing",
"FLASK_SECRET_KEY": "testing",
},
tags = ["manual"],
)

# $ bazel run //fitbit_challenges/api/migrations:image_tarball
Expand Down
1 change: 1 addition & 0 deletions fitbit_challenges/worker/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ py_oci_image(
"FITBIT_VERIFICATION_CODE": "testing",
"FLASK_SECRET_KEY": "testing",
},
tags = ["manual"],
)

# $ bazel run //fitbit_challenges/worker:image_tarball
Expand Down
1 change: 1 addition & 0 deletions home_api/api/migrations/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ py_oci_image(
"DATABASE_NAME": "api_development",
"FLASK_SECRET_KEY": "testing",
},
tags = ["manual"],
)

# $ bazel run //home_api/api/migrations:image_tarball
Expand Down
1 change: 1 addition & 0 deletions mc_manager/api/migrations/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ py_oci_image(
"DATABASE_NAME": "api_development",
"FLASK_SECRET_KEY": "testing",
},
tags = ["manual"],
)

# $ bazel run //mc_manager/api/migrations:image_tarball
Expand Down
1 change: 1 addition & 0 deletions mc_manager/worker/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ py_oci_image(
"HOST_PATH": "/var/minecraft",
"S3_BUCKET": "",
},
tags = ["manual"],
)

# $ bazel run //mc_manager/worker:image_tarball
Expand Down
1 change: 1 addition & 0 deletions proto_registry/api/migrations/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ py_oci_image(
"DATABASE_NAME": "api_development",
"FLASK_SECRET_KEY": "testing",
},
tags = ["manual"],
)

# $ bazel run //proto_registry/api/migrations:image_tarball
Expand Down
3 changes: 2 additions & 1 deletion py_proto/test/proto_file_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@


class ProtoFileTest(unittest.TestCase):
pass
def test_noop(self):
assert True


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion requirements.lock.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions tools/build_rules/api_image.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def api_image(
deps = deps + [
"@rules_python//python/runfiles",
],
tags = ["manual"],
)

if env == None:
Expand Down
1 change: 1 addition & 0 deletions tools/build_rules/cross_platform_image.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def cross_platform_image(
"@platforms//cpu:arm64": "//tools/build_rules:aarch64_linux",
"@platforms//cpu:x86_64": "//tools/build_rules:x86_64_linux",
}),
tags = ["manual"],
visibility = visibility,
)

Expand Down