From a19fdf7a5d7ccd8ee5e3f798e1dc43719083ef7e Mon Sep 17 00:00:00 2001 From: Dustin Spicuzza Date: Sat, 12 Oct 2024 02:12:09 -0400 Subject: [PATCH 1/3] Fix PY_VERSION_HEX check --- robotpy_build/include/gilsafe_object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robotpy_build/include/gilsafe_object.h b/robotpy_build/include/gilsafe_object.h index 1bfc861c..38906e45 100644 --- a/robotpy_build/include/gilsafe_object.h +++ b/robotpy_build/include/gilsafe_object.h @@ -6,7 +6,7 @@ namespace py = pybind11; // Py_IsFinalizing is public API in 3.13 -#if PY_VERSION_HEX < 0x03130000 +#if PY_VERSION_HEX < 0x030D0000 #define Py_IsFinalizing _Py_IsFinalizing #endif From bafffb8ea43b13ea0e62c91019bd3f5200fb4314 Mon Sep 17 00:00:00 2001 From: Dustin Spicuzza Date: Sat, 12 Oct 2024 02:15:37 -0400 Subject: [PATCH 2/3] Update pybind11 --- robotpy_build/autowrap/header.cpp.j2 | 4 ---- robotpy_build/pybind11 | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/robotpy_build/autowrap/header.cpp.j2 b/robotpy_build/autowrap/header.cpp.j2 index dcb5e63f..565e0b60 100644 --- a/robotpy_build/autowrap/header.cpp.j2 +++ b/robotpy_build/autowrap/header.cpp.j2 @@ -42,10 +42,6 @@ using namespace {{ ns }}; {% endfor %} -{% for cls in classes if cls.nodelete %} -PYBIND11_TYPE_CASTER_BASE_HOLDER(typename {{ cls.full_cpp_name }}, std::unique_ptr); -{% endfor %} - struct rpybuild_{{ hname }}_initializer { diff --git a/robotpy_build/pybind11 b/robotpy_build/pybind11 index a5b0cdcb..d8b15411 160000 --- a/robotpy_build/pybind11 +++ b/robotpy_build/pybind11 @@ -1 +1 @@ -Subproject commit a5b0cdcb937b2853e012489633d692099dab7078 +Subproject commit d8b1541168e58444597f25e85e78356de9b67d34 From 2ebffb213ccfd0115251061c5e025174332042f0 Mon Sep 17 00:00:00 2001 From: Dustin Spicuzza Date: Sat, 12 Oct 2024 02:17:09 -0400 Subject: [PATCH 3/3] Enable Python 3.13 in CI --- .github/workflows/dist.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index 343d8bf4..7d152b81 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -96,6 +96,7 @@ jobs: - '3.10' - '3.11' - '3.12' + - '3.13' architecture: [x86, x64] exclude: - os: macos-12