From 0501e5f16fe258851a4ac8bf42c271b5d021e634 Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Sun, 29 Jun 2025 13:41:12 -0700 Subject: [PATCH 1/3] convert: name structs consistently Signed-off-by: Benjamin Gilbert --- openslide/_convert.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openslide/_convert.c b/openslide/_convert.c index 37d6e75..efec39c 100644 --- a/openslide/_convert.c +++ b/openslide/_convert.c @@ -96,22 +96,22 @@ _convert_argb2rgba(PyObject *self, PyObject *args) return ret; } -static PyMethodDef ConvertMethods[] = { +static PyMethodDef _convert_methods[] = { {"argb2rgba", _convert_argb2rgba, METH_VARARGS, "Convert aRGB to RGBA in place."}, {NULL, NULL, 0, NULL} }; -static struct PyModuleDef convertmodule = { +static struct PyModuleDef _convert_module = { PyModuleDef_HEAD_INIT, "_convert", NULL, 0, - ConvertMethods + _convert_methods, }; PyMODINIT_FUNC PyInit__convert(void) { - return PyModule_Create2(&convertmodule, PYTHON_API_VERSION); + return PyModule_Create2(&_convert_module, PYTHON_API_VERSION); } From 442f91ba0b30a2682711be7235efe6d2f64b26d9 Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Sun, 29 Jun 2025 13:47:42 -0700 Subject: [PATCH 2/3] convert: switch to multi-phase module initialization Single-phase initialization is considered legacy. Signed-off-by: Benjamin Gilbert --- openslide/_convert.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/openslide/_convert.c b/openslide/_convert.c index efec39c..b9422f0 100644 --- a/openslide/_convert.c +++ b/openslide/_convert.c @@ -102,16 +102,21 @@ static PyMethodDef _convert_methods[] = { {NULL, NULL, 0, NULL} }; +static PyModuleDef_Slot _convert_slots[] = { + {0, NULL} +}; + static struct PyModuleDef _convert_module = { PyModuleDef_HEAD_INIT, "_convert", NULL, 0, _convert_methods, + _convert_slots, }; PyMODINIT_FUNC PyInit__convert(void) { - return PyModule_Create2(&_convert_module, PYTHON_API_VERSION); + return PyModuleDef_Init(&_convert_module); } From 174814ad74762dce1790d4a700ca164b08bf0f1e Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Sat, 19 Jul 2025 18:06:41 -0700 Subject: [PATCH 3/3] workflows: add tests on Python 3.14 dev release Signed-off-by: Benjamin Gilbert --- .github/workflows/python.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 6c60d9f..64887e3 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -43,7 +43,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest] - python-version: [3.9, "3.10", "3.11", "3.12", "3.13"] + python-version: [3.9, "3.10", "3.11", "3.12", "3.13", "3.14-dev"] openslide: [system, wheel] include: - os: ubuntu-latest @@ -158,7 +158,7 @@ jobs: shell: bash strategy: matrix: - python-version: [3.9, "3.10", "3.11", "3.12", "3.13"] + python-version: [3.9, "3.10", "3.11", "3.12", "3.13", "3.14-dev"] openslide: [zip, wheel] steps: - name: Check out repo pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy