diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a21023d..e00d1ac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,7 @@ jobs: env: CIBW_TEST_COMMAND: python {project}/selftest.py CIBW_BEFORE_BUILD_LINUX: yum install -y freetype-devel - CIBW_SKIP: pp* *-musllinux* + CIBW_SKIP: "*-musllinux*" CIBW_TEST_REQUIRES: numpy pillow pytest CIBW_ARCHS_LINUX: auto aarch64 run: | diff --git a/aggdraw.cxx b/aggdraw.cxx index ed13af6..0338322 100644 --- a/aggdraw.cxx +++ b/aggdraw.cxx @@ -170,7 +170,11 @@ static PyTypeObject DrawType = { "Draw", sizeof(DrawObject), 0, /* methods */ (destructor) draw_dealloc, /* tp_dealloc */ +#if PY_VERSION_HEX < 0x030800b4 (printfunc)0, /* tp_print */ +#else + (Py_ssize_t)0, /* tp_vectorcall_offset */ +#endif (getattrfunc)draw_getattr, /* tp_getattr */ 0, /* tp_setattr */ }; @@ -263,7 +267,11 @@ static PyTypeObject FontType = { "Font", sizeof(FontObject), 0, /* methods */ (destructor) font_dealloc, /* tp_dealloc */ +#if PY_VERSION_HEX < 0x030800b4 (printfunc)0, /* tp_print */ +#else + (Py_ssize_t)0, /* tp_vectorcall_offset */ +#endif 0, /* tp_getattr */ 0, /* tp_setattr */ 0, /* tp_reserved */ @@ -304,7 +312,11 @@ static PyTypeObject PathType = { "Path", sizeof(PathObject), 0, /* methods */ (destructor) path_dealloc, /* tp_dealloc */ +#if PY_VERSION_HEX < 0x030800b4 (printfunc)0, /* tp_print */ +#else + (Py_ssize_t)0, /* tp_vectorcall_offset */ +#endif 0, /* tp_getattr */ 0, /* tp_setattr */ 0, /* tp_reserved */