File tree Expand file tree Collapse file tree 6 files changed +14
-12
lines changed Expand file tree Collapse file tree 6 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 1414 env :
1515 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1616 steps :
17- - uses : actions/checkout@v4.1.4
17+ - uses : actions/checkout@v4.1.7
1818 - run : |
1919 gh release create "${GITHUB_REF_NAME}" \
2020 --generate-notes --latest --verify-tag \
Original file line number Diff line number Diff 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" )
88bazel_dep (name = "platforms" , version = "0.0.10" )
99bazel_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
1212internal_configure = use_extension ("//:internal_configure.bzl" , "internal_configure_extension" )
1313use_repo (internal_configure , "pybind11" )
Original file line number Diff line number Diff line change @@ -5,11 +5,13 @@ pybind_extension(
55 name = "basic" ,
66 srcs = ["basic.cpp" ],
77)
8+
89py_library (
910 name = "basic_lib" ,
1011 data = [":basic" ],
1112 imports = ["." ],
1213)
14+
1315py_test (
1416 name = "basic_test" ,
1517 srcs = ["basic_test.py" ],
Original file line number Diff line number Diff line change 11bazel_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" )
Original file line number Diff line number Diff line change 11#include < pybind11/pybind11.h>
22
33int add (int i, int j) {
4- return i + j;
4+ return i + j;
55}
66
77PYBIND11_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}
Original file line number Diff line number Diff line change 44
55
66class 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
1213if __name__ == "__main__" :
13- unittest .main ()
14+ unittest .main ()
You can’t perform that action at this time.
0 commit comments