diff --git a/do-not-use-pytuple-get-size.patch b/do-not-use-pytuple-get-size.patch deleted file mode 100644 index 999e9da..0000000 --- a/do-not-use-pytuple-get-size.patch +++ /dev/null @@ -1,53 +0,0 @@ -From 338044cbf771e5665a744d3b36b5d7edd126d16a Mon Sep 17 00:00:00 2001 -From: Zaur Shibzukhov -Date: Mon, 31 Mar 2025 10:00:01 +0300 -Subject: [PATCH] Fix #13 with litelist/litetuple get_subscript routine - ---- - examples/performance_cgc.ipynb | 32 ++++++++++++++++---------------- - lib/recordclass/_litelist.c | 4 ++-- - lib/recordclass/_litetuple.c | 4 ++-- - 3 files changed, 20 insertions(+), 20 deletions(-) - -Index: recordclass-0.22.1/lib/recordclass/_litelist.c -=================================================================== ---- recordclass-0.22.1.orig/lib/recordclass/_litelist.c -+++ recordclass-0.22.1/lib/recordclass/_litelist.c -@@ -484,13 +484,13 @@ litelist_subscript(PyLiteListObject* sel - if (PySlice_Check(item)) { - Py_ssize_t start, stop, step, slicelength; - -- if (PySlice_GetIndicesEx(item, (PyTuple_GET_SIZE(self)), &start, &stop, &step, &slicelength) < 0) -+ if (PySlice_GetIndicesEx(item, (Py_SIZE(self)), &start, &stop, &step, &slicelength) < 0) - return NULL; - return litelist_slice(self, start, stop); - } - else { - PyErr_Format(PyExc_TypeError, -- "subscript must be integer, slice or string, but not %.200s", -+ "subscript must be integer or slice, but not %.200s", - Py_TYPE(item)->tp_name); - return NULL; - } -Index: recordclass-0.22.1/lib/recordclass/_litetuple.c -=================================================================== ---- recordclass-0.22.1.orig/lib/recordclass/_litetuple.c -+++ recordclass-0.22.1/lib/recordclass/_litetuple.c -@@ -32,7 +32,7 @@ static PyTypeObject PyMLiteTuple_Type; - - #define PyLiteTuple_GET_ITEM(op, i) (((PyLiteTupleObject *)(op))->ob_item[i]) - #define PyLiteTuple_SET_ITEM(op, i, v) (((PyLiteTupleObject *)(op))->ob_item[i] = v) --#define PyLiteTuple_GET_SIZE(seq) PyTuple_GET_SIZE(seq) -+#define PyLiteTuple_GET_SIZE(seq) Py_SIZE(seq) - - #define PyLiteTuple_CheckExact(op) (Py_TYPE(op) == &PyLiteTuple_Type || Py_TYPE(op) == &PyMLiteTuple_Type) - #define PyLiteTuple_Check(op) (PyLiteTuple_CheckExact(op) || PyObject_IsInstance(op, (PyObject*)&PyLiteTuple_Type) || PyObject_IsInstance(op, (PyObject*)&PyMLiteTuple_Type)) -@@ -417,7 +417,7 @@ litetuple_subscript(PyLiteTupleObject* s - if (PySlice_Check(item)) { - Py_ssize_t start, stop, step, slicelength; - -- if (PySlice_GetIndicesEx(item, (PyTuple_GET_SIZE(self)), &start, &stop, &step, &slicelength) < 0) -+ if (PySlice_GetIndicesEx(item, (Py_SIZE(self)), &start, &stop, &step, &slicelength) < 0) - return NULL; - return litetuple_slice(self, start, stop); - } diff --git a/python-recordclass.changes b/python-recordclass.changes index 6bb9a3b..625a816 100644 --- a/python-recordclass.changes +++ b/python-recordclass.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Tue Jan 6 03:05:29 UTC 2026 - Steve Kowalik + +- Update to 0.24: + * Fix __annotations__ for python 3.14 + * Start support of python 3.14 + * Fix the bug with PyTuple_GET_SIZE (#13) + * Drop appveyor + * recordclass requires python >= 3.8 +- Drop patch do-not-use-pytuple-get-size.patch, merged upstream. + ------------------------------------------------------------------- Fri Apr 4 00:56:20 UTC 2025 - Steve Kowalik diff --git a/python-recordclass.spec b/python-recordclass.spec index 36ce8b4..0c66ed8 100644 --- a/python-recordclass.spec +++ b/python-recordclass.spec @@ -1,7 +1,7 @@ # # spec file for package python-recordclass # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,15 +17,13 @@ Name: python-recordclass -Version: 0.22.1 +Version: 0.24 Release: 0 Summary: Library implementing a mutable variant of namedtuple License: MIT URL: https://github.com/intellimath/recordclass Source: https://files.pythonhosted.org/packages/source/r/recordclass/recordclass-%{version}.tar.gz -# PATCH-FIX-UPSTREAM Based on gh#intellimath/recordclass#338044cbf771e5665a744d3b36b5d7edd126d16a -Patch0: do-not-use-pytuple-get-size.patch -BuildRequires: %{python_module devel} +BuildRequires: %{python_module devel >= 3.9} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} @@ -50,6 +48,8 @@ export CFLAGS="%{optflags}" %install %pyproject_install +# do not ship development files +%python_expand rm -v %{buildroot}%{$python_sitearch}/recordclass/_*.[ch] %python_expand %fdupes %{buildroot}%{$python_sitearch} %check diff --git a/recordclass-0.22.1.tar.gz b/recordclass-0.22.1.tar.gz deleted file mode 100644 index 373ad31..0000000 --- a/recordclass-0.22.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:80a4c79270edb8fb55bcb96bec0159a292b485c997e2f33b38fdc9e8d6c0c315 -size 1333756 diff --git a/recordclass-0.24.tar.gz b/recordclass-0.24.tar.gz new file mode 100644 index 0000000..7b20426 --- /dev/null +++ b/recordclass-0.24.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc6e46aec90d5b185576fce40ffc875488b04692a9259265c965fac150630d06 +size 1340150