Skip to content

Commit 5633bed

Browse files
Bump cython from 3.0.12 to 3.1.1 (#10875)
Bumps [cython](https://github.com/cython/cython) from 3.0.12 to 3.1.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/cython/cython/releases">cython's releases</a>.</em></p> <blockquote> <h2>3.1.1</h2> <p>No release notes provided.</p> <h2>3.1.0-1</h2> <p>No release notes provided.</p> <h2>3.1.0</h2> <p>No release notes provided.</p> <h2>3.1.0rc2</h2> <p>No release notes provided.</p> <h2>3.1.0rc1</h2> <p>No release notes provided.</p> <h2>3.1.0b1</h2> <p>No release notes provided.</p> <h2>3.1.0a1</h2> <h1>3.1.0 alpha 1 (2024-11-08)</h1> <h2>Features added</h2> <ul> <li> <p>Support for freethreading builds of CPython 3.13 was added. It comes with a new directive <code>freethreading_compatible=True</code> to mark modules as free-threading compatible (<code>Py_mod_gil</code>). <a href="https://github.com/cython/cython/issues?q=label%3A%22nogil+CPython">https://github.com/cython/cython/issues?q=label%3A&quot;nogil+CPython</a>&quot; Patches by Lysandros Nikolaou and Nathan Goldbaum. (Github issue :issue:<code>6162</code>)</p> </li> <li> <p>Support for monitoring Cython modules via <code>sys.monitoring</code> in CPython 3.13+ was added. For coverage reporting, this needs to be disabled with <code>-DCYTHON_USE_SYS_MONITORING=0</code> as long as <code>coverage.py</code> does not support <code>sys.monitoring</code> for coverage plugins. (Github issue :issue:<code>6144</code>)</p> </li> <li> <p>Many issues with the Limited C-API were resolved. It is now sufficient to define the macro <code>Py_LIMITED_API</code> to activate the support. <a href="https://github.com/cython/cython/issues?q=label%3A%22limited+api%22">https://github.com/cython/cython/issues?q=label%3A%22limited+api%22</a></p> </li> <li> <p>Support for GraalPython was improved (but is still incomplete).</p> </li> <li> <p>Several issues with the gdb support were resolved. Patches by Kent Slaney. (Github issues :issue:<code>5955</code>, :issue:<code>5948</code>)</p> </li> <li> <p><code>typing.Union[SomeType, None]</code> and <code>SomeType | None</code> are now understood and mean the same as <code>typing.Optional[SomeType]</code>, allowing <code>None</code> in type checks. (Github issue :issue:<code>6254</code>)</p> </li> <li> <p><code>cython.const[]</code> and <code>cython.volatile[]</code> are now available as type modifiers in Python code.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/cython/cython/blob/master/CHANGES.rst">cython's changelog</a>.</em></p> <blockquote> <h1>3.1.1 (2025-05-19)</h1> <h2>Bugs fixed</h2> <ul> <li> <p>A reference leak in the async delegation code was fixed. (Github issues :issue:<code>6850</code>, :issue:<code>6878</code>)</p> </li> <li> <p>Conditional if-else expressions mixing Python and C (numeric) types could end up inferring an overly tight result type, thus leading to unexpected type conversions, runtime exceptions on assignment, or incorrect &quot;temporary assignment&quot; compile errors. (Github issue :issue:<code>6854</code>)</p> </li> <li> <p>Some Limited API issues were resolved. (Github issue :issue:<code>6862</code>)</p> </li> <li> <p>Large C <code>long long</code> values could be truncated when passed into PyPy. (Github issue :issue:<code>6890</code>)</p> </li> <li> <p><code>callable()</code> incorrectly reported <code>False</code> in PyPy for classes with metaclasses. Patch by Anatolii Aniskovych. (Github issue :issue:<code>6892</code>)</p> </li> <li> <p>The signature of fused functions was no longer introspectable in Cython 3.1.0. (Github issue :issue:<code>6855</code>)</p> </li> <li> <p>Coroutines could generate invalid C with line tracing enabled. (Github issue :issue:<code>6865</code>)</p> </li> <li> <p>Code using <code>complex()</code> could generate invalid C code missing type declarations. (Github issue :issue:<code>6860</code>)</p> </li> <li> <p>Code using e.g. <code>list[int | None]</code> outside of variable/argument annotations failed to compile. (Github issue :issue:<code>6856</code>)</p> </li> <li> <p>Code using ctuples in a <code>const</code> context could generate invalid C. (Github issue :issue:<code>6864</code>)</p> </li> <li> <p>Accessing special methods on cpdef enums failed to compile.</p> </li> <li> <p>Some C compiler warnings were resolved. Patches by Daniel Larraz. (Github issues :issue:<code>6876</code>, :issue:<code>3172</code>, :issue:<code>6873</code>, :issue:<code>6877</code>)</p> </li> <li> <p>Re-establish support for PyPy 3.8. (Github issue :issue:<code>6867</code>)</p> </li> </ul> <h1>3.1.0 (2025-05-08)</h1> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/cython/cython/commit/aeadbbeaf5eb23c5e8768c3a92beb6c8e20622c5"><code>aeadbbe</code></a> Prepare release of Cython 3.1.1.</li> <li><a href="https://github.com/cython/cython/commit/9532c339abb13b660e8566611709b043c094e320"><code>9532c33</code></a> Update changelog.</li> <li><a href="https://github.com/cython/cython/commit/e7baa598a11d5af354e66f155be00366a54a8bc9"><code>e7baa59</code></a> Use PyCallable_Check() instead of type slots for callable() in PyPy (<a href="https://redirect.github.com/cython/cython/issues/6894">GH-6894</a>)</li> <li><a href="https://github.com/cython/cython/commit/279377de7ed671b6901f1152aaaf5952211181a6"><code>279377d</code></a> Fix race in dict getter (<a href="https://redirect.github.com/cython/cython/issues/6849">GH-6849</a>)</li> <li><a href="https://github.com/cython/cython/commit/987891efbd41caf21285a9c4a5eb5e9932d53428"><code>987891e</code></a> Update changelog.</li> <li><a href="https://github.com/cython/cython/commit/edac54714c9ce6334a927b5c0dfc5960c8cb1ee8"><code>edac547</code></a> Avoid calling &quot;PyLong_FromUnsignedLongLong()&quot; in PyPy.</li> <li><a href="https://github.com/cython/cython/commit/8e107e95342990a2df3673152f913bbffd53aaff"><code>8e107e9</code></a> Document CYTHON_USE_SYS_MONITORING (<a href="https://redirect.github.com/cython/cython/issues/6886">GH-6886</a>)</li> <li><a href="https://github.com/cython/cython/commit/56ab917d114b369f19fdc504608b456222fa1d5f"><code>56ab917</code></a> CI: Fix PyPy3.8 build (<a href="https://redirect.github.com/cython/cython/issues/6889">GH-6889</a>)</li> <li><a href="https://github.com/cython/cython/commit/0ab0e32a19a3bfd917395da92a82f7e784c77cb2"><code>0ab0e32</code></a> Update trace/profile test config for Py3.12, which at least partially works.</li> <li><a href="https://github.com/cython/cython/commit/c4adc2d6f421893edf16948672f673254e3ebf7c"><code>c4adc2d</code></a> CI: Also disable &quot;twine&quot; usage on &quot;Py*t-dev&quot; versions.</li> <li>Additional commits viewable in <a href="https://github.com/cython/cython/compare/3.0.12...3.1.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=cython&package-manager=pip&previous-version=3.0.12&new-version=3.1.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent e5d1240 commit 5633bed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

requirements/constraints.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ cryptography==44.0.3
6060
# via
6161
# pyjwt
6262
# trustme
63-
cython==3.0.12
63+
cython==3.1.1
6464
# via -r requirements/cython.in
6565
distlib==0.3.9
6666
# via virtualenv

requirements/cython.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# pip-compile --allow-unsafe --output-file=requirements/cython.txt --resolver=backtracking --strip-extras requirements/cython.in
66
#
7-
cython==3.0.12
7+
cython==3.1.1
88
# via -r requirements/cython.in
99
multidict==6.4.3
1010
# via -r requirements/multidict.in

0 commit comments

Comments
 (0)