Skip to content

Commit e146cb0

Browse files
committed
Bump versions of actions and dependencies.
While I'm here, format the files in the `examples/basic/` directory.
1 parent d85a646 commit e146cb0

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
env:
1515
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1616
steps:
17-
- uses: actions/[email protected].4
17+
- uses: actions/[email protected].7
1818
- run: |
1919
gh release create "${GITHUB_REF_NAME}" \
2020
--generate-notes --latest --verify-tag \

MODULE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ module(
44
version = "2.12.0",
55
)
66

7-
bazel_dep(name = "bazel_skylib", version = "1.6.1")
7+
bazel_dep(name = "bazel_skylib", version = "1.7.1")
88
bazel_dep(name = "platforms", version = "0.0.10")
99
bazel_dep(name = "rules_cc", version = "0.0.9")
10-
bazel_dep(name = "rules_python", version = "0.32.2")
10+
bazel_dep(name = "rules_python", version = "0.33.2")
1111

1212
internal_configure = use_extension("//:internal_configure.bzl", "internal_configure_extension")
1313
use_repo(internal_configure, "pybind11")

examples/basic/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ pybind_extension(
55
name = "basic",
66
srcs = ["basic.cpp"],
77
)
8+
89
py_library(
910
name = "basic_lib",
1011
data = [":basic"],
1112
imports = ["."],
1213
)
14+
1315
py_test(
1416
name = "basic_test",
1517
srcs = ["basic_test.py"],

examples/basic/MODULE.bazel

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
bazel_dep(name = "pybind11_bazel", version = "2.12.0")
2-
bazel_dep(name = "rules_python", version = "0.33.1")
3-
2+
bazel_dep(name = "rules_python", version = "0.33.2")

examples/basic/basic.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#include <pybind11/pybind11.h>
22

33
int add(int i, int j) {
4-
return i + j;
4+
return i + j;
55
}
66

77
PYBIND11_MODULE(basic, module) {
8-
module.doc() = "A basic pybind11 extension";
9-
module.def("add", &add, "A function that adds two numbers");
8+
module.doc() = "A basic pybind11 extension";
9+
module.def("add", &add, "A function that adds two numbers");
1010
}

examples/basic/basic_test.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44

55

66
class TestBasic(unittest.TestCase):
7-
def test_add(self):
8-
self.assertEqual(basic.add(1, 2), 3)
9-
self.assertEqual(basic.add(2, 2), 4)
7+
8+
def test_add(self):
9+
self.assertEqual(basic.add(1, 2), 3)
10+
self.assertEqual(basic.add(2, 2), 4)
1011

1112

1213
if __name__ == "__main__":
13-
unittest.main()
14+
unittest.main()

0 commit comments

Comments
 (0)