diff --git a/MODULE.bazel b/MODULE.bazel index a50718a..6225a9a 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -5,10 +5,10 @@ module( ) bazel_dep(name = "bazel_features", version = "1.36.0") -bazel_dep(name = "bazel_skylib", version = "1.7.1") -bazel_dep(name = "platforms", version = "0.0.10") -bazel_dep(name = "rules_cc", version = "0.0.9") -bazel_dep(name = "rules_python", version = "0.34.0") +bazel_dep(name = "bazel_skylib", version = "1.8.1") +bazel_dep(name = "platforms", version = "1.0.0") +bazel_dep(name = "rules_cc", version = "0.1.4") +bazel_dep(name = "rules_python", version = "1.5.1") internal_configure = use_extension("//:internal_configure.bzl", "internal_configure_extension") use_repo(internal_configure, "pybind11") diff --git a/examples/basic/BUILD.bazel b/examples/basic/BUILD.bazel index ba62fd2..797bf56 100644 --- a/examples/basic/BUILD.bazel +++ b/examples/basic/BUILD.bazel @@ -1,5 +1,6 @@ load("@pybind11_bazel//:build_defs.bzl", "pybind_extension") -load("@rules_python//python:defs.bzl", "py_library", "py_test") +load("@rules_python//python:py_library.bzl", "py_library") +load("@rules_python//python:py_test.bzl", "py_test") pybind_extension( name = "basic", diff --git a/examples/basic/MODULE.bazel b/examples/basic/MODULE.bazel index 9a3dc37..3bed1a2 100644 --- a/examples/basic/MODULE.bazel +++ b/examples/basic/MODULE.bazel @@ -1,5 +1,5 @@ -bazel_dep(name = "platforms", version = "0.0.10") -bazel_dep(name = "rules_python", version = "0.34.0") +bazel_dep(name = "platforms", version = "1.0.0") +bazel_dep(name = "rules_python", version = "1.5.1") bazel_dep(name = "pybind11_bazel") local_path_override( module_name = "pybind11_bazel", diff --git a/examples/basic/basic_test.py b/examples/basic/basic_test.py index 0a1f15a..ec66521 100644 --- a/examples/basic/basic_test.py +++ b/examples/basic/basic_test.py @@ -1,4 +1,5 @@ import unittest +import sys import basic @@ -11,4 +12,5 @@ def test_add(self): if __name__ == "__main__": + print(sys.version) unittest.main()