Skip to content

Commit

Permalink
Mark callback functions as noexcept to support Cython 3
Browse files Browse the repository at this point in the history
fix #113
  • Loading branch information
bnjmnp committed Jul 31, 2023
1 parent 3178401 commit 321f2f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=42", "wheel", "Cython"]
requires = ["setuptools>=42", "wheel", "Cython>=0.29.31"]
build-backend = "setuptools.build_meta"

[tool.cibuildwheel]
Expand Down
2 changes: 1 addition & 1 deletion pysoem/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = '1.1.3'
__version__ = '1.1.4'
from .pysoem import *
4 changes: 2 additions & 2 deletions pysoem/pysoem.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ cdef class CdefCoeObjectEntry:
return self._ex_oelist.ObjAccess[self._item]


cdef int _xPO2SOconfig(cpysoem.uint16 slave, void* user):
cdef int _xPO2SOconfig(cpysoem.uint16 slave, void* user) noexcept:
cdef _CallbackData cd
cd = <object>user
cd.exc_raised = False
Expand All @@ -1197,7 +1197,7 @@ cdef int _xPO2SOconfig(cpysoem.uint16 slave, void* user):
cd.exc_info = sys.exc_info()


cdef int _xPO2SOconfigEx(cpysoem.uint16 slave, void* user):
cdef int _xPO2SOconfigEx(cpysoem.uint16 slave, void* user) noexcept:
cdef _CallbackData cd
cd = <object>user
cd.exc_raised = False
Expand Down

0 comments on commit 321f2f3

Please sign in to comment.