Bump cython from 3.0.12 to 3.1.2
Bumps cython from 3.0.12 to 3.1.2.
Release notes
Sourced from cython's releases.
3.1.2
No release notes provided.
3.1.1
No release notes provided.
3.1.0-1
No release notes provided.
3.1.0
No release notes provided.
3.1.0rc2
No release notes provided.
3.1.0rc1
No release notes provided.
3.1.0b1
No release notes provided.
3.1.0a1
3.1.0 alpha 1 (2024-11-08)
Features added
Support for freethreading builds of CPython 3.13 was added. It comes with a new directive
freethreading_compatible=Trueto mark modules as free-threading compatible (Py_mod_gil). https://github.com/cython/cython/issues?q=label%3A"nogil+CPython" Patches by Lysandros Nikolaou and Nathan Goldbaum. (Github issue :issue:6162)Support for monitoring Cython modules via
sys.monitoringin CPython 3.13+ was added. For coverage reporting, this needs to be disabled with-DCYTHON_USE_SYS_MONITORING=0as long ascoverage.pydoes not supportsys.monitoringfor coverage plugins. (Github issue :issue:6144)Many issues with the Limited C-API were resolved. It is now sufficient to define the macro
Py_LIMITED_APIto activate the support. https://github.com/cython/cython/issues?q=label%3A%22limited+api%22Support for GraalPython was improved (but is still incomplete).
Several issues with the gdb support were resolved. Patches by Kent Slaney. (Github issues :issue:
5955, :issue:5948)
typing.Union[SomeType, None]andSomeType | Noneare now understood and mean the same astyping.Optional[SomeType], allowingNonein type checks.
... (truncated)
Changelog
Sourced from cython's changelog.
3.1.2 (2025-06-09)
Bugs fixed
Attribute lookups failed on the
boolbuiltin type. (Github issue :issue:6905)Type checks on or-ed union types could incorrectly return false. (Github issue :issue:
6420)Negative list indexing could accidentally wrap around twice in PyPy and the Limited API.
Iterating over literal sequences with starred (unpacked) items could infer a wrong type for the loop variable and fail to assign the values. (Github issue :issue:
6924)Calls to C functions taking exception types failed to check for a
Noneargument. (Github issue :issue:6420)Fused functions had an incorrect
__module__attribute. (Github issue :issue:6897)The type of Cython implemented functions had an incorrect
__module__attribute. (Github issue :issue:6841)Errors while indexing into
bytearrayorstrinnogilsections could crash. (Github issue :issue:6947)
bytearray.append()could silently accept some invalid character numbers.The C++11
<type_traits>header was included regardless of the C++ version. (Github issue :issue:6896)
PyDict_GetItemStringRef()was accidentally used in older Limited API versions. (Github issue :issue:6914)
abort()was used but not always available in the Limited API. (Github issue :issue:6918)Some dependencies were missing from the
depfile. (Github issue :issue:6938)Embedded function signatures were not always separated from the existing docstring. (Github issue :issue:
6904)
numpy.mathwas missing fromCython/Includes/and could not be cimported. (Github issue :issue:6859)
... (truncated)
Commits
51f471dBump ccache action version (GH-6955)40c2324Update changelog.98b70eeFixup shared metaclass in 3.1.x (GH-6953)59e2502Make sure we correctly reject large negative integer values in "bytearray.app...466891cUse an explicit cast to avoid a C conversion warning.b0d6aa1Prepare release of 3.1.2.0440d5fUpdate changelog.e860884Fix__module__attribute of shared types with metaclass (#6882)5e9d7adBuild: Explicitly include "numpy/math.pxd" again.ea65182Fix error handling in nogil indexing of bytearray and str (#6947)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)