include $(TOPDIR)/rules.mk
PKG_NAME:=python-ubus
-PKG_VERSION:=0.1.2
-PKG_RELEASE:=2
+PKG_VERSION:=0.1.3
+PKG_RELEASE:=1
PYPI_NAME:=ubus
-PKG_HASH:=4dc4ef0fbcc8abb7a2354691475a58ff3eb015f1bab3150750729f7f657dd440
+PKG_HASH:=e737ae171b38836c26bc3e50e9c468afd47d9cc8bc01f33a5b569a05e1d8567f
PKG_MAINTAINER:=Erik Larsson <who+openwrt@cnackers.org>
PKG_LICENSE:=LGPL-2.1-or-later
+++ /dev/null
-From e76b4f915c80d0fdfdd6602593b1f7bd7e078c3b Mon Sep 17 00:00:00 2001
-From: Stepan Henek <stepan.henek@nic.cz>
-Date: Thu, 5 Mar 2026 12:38:21 +0100
-Subject: [PATCH] make project compatible with python3.13
-
----
- ubus_python.c | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
---- a/ubus_python.c
-+++ b/ubus_python.c
-@@ -1078,7 +1078,8 @@ static PyObject *ubus_python_add(PyObjec
- if (PyList_Append(python_alloc_list, methods)) {
- ubus_remove_object(ctx, &object->object);
- free_ubus_object(object);
-- PyEval_CallMethod(python_alloc_list, "pop", "");
-+ PyObject *_pop_result = PyObject_CallMethod(python_alloc_list, "pop", NULL);
-+ Py_XDECREF(_pop_result);
- return NULL;
- }
-