Skip to content

Commit

Permalink
update to nanobind 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Yikai-Liao committed Nov 3, 2024
1 parent 3091a73 commit 88a3f54
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
[submodule "3rdparty/nanobind"]
path = 3rdparty/nanobind
url = https://github.com/wjakob/nanobind.git
tag = v2.0.0
tag = v2.2.0
2 changes: 1 addition & 1 deletion 3rdparty/nanobind
Submodule nanobind updated 89 files
+109 −2 .github/workflows/ci.yml
+45 −0 .github/workflows/nvcc-win.yml
+7 −2 .gitignore
+8 −18 CMakeLists.txt
+24 −0 cmake/darwin-ld-cpython.sym
+29 −2 cmake/nanobind-config.cmake
+54 −10 docs/api_bazel.rst
+13 −1 docs/api_cmake.rst
+204 −22 docs/api_core.rst
+130 −37 docs/api_extra.rst
+47 −13 docs/bazel.rst
+218 −13 docs/changelog.rst
+12 −5 docs/classes.rst
+1 −1 docs/exchanging.rst
+1 −0 docs/faq.rst
+321 −0 docs/free_threaded.rst
+55 −0 docs/functions.rst
+7 −5 docs/index.rst
+104 −0 docs/meson.rst
+468 −321 docs/ndarray.rst
+11 −6 docs/release.rst
+20 −1 docs/typeslots.rst
+37 −12 docs/why.rst
+15 −5 include/nanobind/eigen/dense.h
+5 −3 include/nanobind/nanobind.h
+15 −6 include/nanobind/nb_accessor.h
+116 −12 include/nanobind/nb_attr.h
+6 −1 include/nanobind/nb_call.h
+28 −21 include/nanobind/nb_cast.h
+42 −21 include/nanobind/nb_class.h
+9 −0 include/nanobind/nb_defs.h
+17 −8 include/nanobind/nb_descr.h
+63 −5 include/nanobind/nb_func.h
+20 −7 include/nanobind/nb_lib.h
+63 −5 include/nanobind/nb_misc.h
+9 −9 include/nanobind/nb_traits.h
+2 −2 include/nanobind/nb_tuple.h
+48 −10 include/nanobind/nb_types.h
+268 −293 include/nanobind/ndarray.h
+4 −3 include/nanobind/stl/bind_map.h
+2 −2 include/nanobind/stl/bind_vector.h
+11 −1 include/nanobind/stl/detail/chrono.h
+2 −0 include/nanobind/stl/detail/nb_dict.h
+49 −0 include/nanobind/stl/detail/nb_optional.h
+1 −1 include/nanobind/stl/detail/nb_set.h
+3 −45 include/nanobind/stl/optional.h
+1 −12 include/nanobind/stl/variant.h
+4 −4 pyproject.toml
+1 −1 src/__init__.py
+1 −0 src/buffer.h
+100 −38 src/common.cpp
+6 −3 src/error.cpp
+10 −6 src/implicit.cpp
+94 −17 src/nb_enum.cpp
+196 −109 src/nb_func.cpp
+115 −46 src/nb_internals.cpp
+164 −17 src/nb_internals.h
+171 −140 src/nb_ndarray.cpp
+20 −4 src/nb_static_property.cpp
+380 −120 src/nb_type.cpp
+18 −7 src/stubgen.py
+17 −7 src/trampoline.cpp
+78 −29 tests/CMakeLists.txt
+1 −3 tests/py_stub_test.py
+2 −4 tests/py_stub_test.pyi
+2 −4 tests/py_stub_test.pyi.ref
+32 −2 tests/test_classes.cpp
+20 −3 tests/test_classes.py
+13 −1 tests/test_classes_ext.pyi.ref
+26 −1 tests/test_enum.cpp
+43 −0 tests/test_enum.py
+46 −0 tests/test_enum_ext.pyi.ref
+18 −2 tests/test_functions.cpp
+56 −1 tests/test_functions.py
+29 −1 tests/test_functions_ext.pyi.ref
+90 −14 tests/test_ndarray.cpp
+181 −43 tests/test_ndarray.py
+35 −10 tests/test_ndarray_ext.pyi.ref
+10 −3 tests/test_stl.cpp
+20 −4 tests/test_stl.py
+5 −1 tests/test_stl_bind_map.cpp
+8 −5 tests/test_stl_bind_map.py
+1 −1 tests/test_stl_bind_vector.cpp
+3 −3 tests/test_stl_bind_vector.py
+2 −0 tests/test_stl_ext.pyi.ref
+37 −0 tests/test_thread.cpp
+100 −0 tests/test_thread.py
+7 −0 tests/test_typing.cpp
+5 −0 tests/test_typing_ext.pyi.ref
8 changes: 4 additions & 4 deletions py_src/py_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ auto pitchbend_from_numpy(NDARR(unit, 1) time, NDARR(i32, 1) value) {
return details::to_shared_vec(std::move(ans));
}

template<TType T, typename unit = typename T::unit>
auto textmeta_from_numpy(NDARR(unit, 1) time, NDARR(std::string, 1) text) {
throw std::runtime_error("TextMeta does not support numpy");
}
// template<TType T, typename unit = typename T::unit>
// auto textmeta_from_numpy(NDARR(unit, 1) time, NDARR(std::string, 1) text) {
// throw std::runtime_error("TextMeta does not support numpy");
// }

template<typename T>
auto bind_time_stamp(nb::module_& m, const std::string& name) {
Expand Down

0 comments on commit 88a3f54

Please sign in to comment.