Skip to content

Bump cython from 3.0.12 to 3.1.2 #1517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 9, 2025

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=True to 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.monitoring in CPython 3.13+ was added. For coverage reporting, this needs to be disabled with -DCYTHON_USE_SYS_MONITORING=0 as long as coverage.py does not support sys.monitoring for 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_API to activate the support. https://github.com/cython/cython/issues?q=label%3A%22limited+api%22

  • Support 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] and SomeType | None are now understood and mean the same as typing.Optional[SomeType], allowing None in type checks.

... (truncated)

Changelog

Sourced from cython's changelog.

3.1.2 (2025-06-09)

Bugs fixed

  • Attribute lookups failed on the bool builtin 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 None argument. (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 bytearray or str in nogil sections 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.math was missing from Cython/Includes/ and could not be cimported. (Github issue :issue:6859)

... (truncated)

Commits
  • 51f471d Bump ccache action version (GH-6955)
  • 40c2324 Update changelog.
  • 98b70ee Fixup shared metaclass in 3.1.x (GH-6953)
  • 59e2502 Make sure we correctly reject large negative integer values in "bytearray.app...
  • 466891c Use an explicit cast to avoid a C conversion warning.
  • b0d6aa1 Prepare release of 3.1.2.
  • 0440d5f Update changelog.
  • e860884 Fix __module__ attribute of shared types with metaclass (#6882)
  • 5e9d7ad Build: Explicitly include "numpy/math.pxd" again.
  • ea65182 Fix error handling in nogil indexing of bytearray and str (#6947)
  • Additional commits viewable in compare view

Dependabot compatibility score

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 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)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jun 9, 2025
@github-actions github-actions bot enabled auto-merge (squash) June 9, 2025 12:18
Copy link

codspeed-hq bot commented Jun 9, 2025

CodSpeed Performance Report

Merging #1517 will degrade performances by 57.72%

Comparing dependabot/pip/cython-3.1.2 (748325d) with master (d1286db)

Summary

❌ 34 regressions
✅ 67 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
test_long_query 5.9 ms 13.2 ms -55.62%
test_long_query_with_pct 17.9 ms 41.2 ms -56.47%
test_quote_long_path 4.8 ms 10.9 ms -55.56%
test_quote_query_string 314.2 µs 627.1 µs -49.89%
test_quoter_ascii 124.2 µs 203.9 µs -39.1%
test_quoter_pct 245.6 µs 483.2 µs -49.17%
test_quoter_quote_utf8 684.7 µs 1,619.7 µs -57.72%
test_unquoter_short 204 µs 224.9 µs -9.29%
test_extend_query_subclassed_str 1 ms 1.2 ms -12.71%
test_parse_query_uncached[long] 21 ms 23.4 ms -10.24%
test_parse_query_uncached[short] 1.7 ms 1.9 ms -10.02%
test_path_safe_uncached 230.9 µs 287.1 µs -19.55%
test_update_query_mapping 943.7 µs 1,082.3 µs -12.81%
test_update_query_mapping_with_existing_query 1.3 ms 1.5 ms -16.12%
test_update_query_sequence_mapping 4.5 ms 5.9 ms -22.65%
test_update_query_string 615.1 µs 663.2 µs -7.24%
test_url_build_access_raw_path 593.2 µs 651.1 µs -8.89%
test_url_build_no_netloc 431.6 µs 544.9 µs -20.8%
test_url_build_no_netloc_relative 418.8 µs 525.1 µs -20.24%
test_url_build_with_host_and_port 641.3 µs 698.6 µs -8.2%
... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

@bdraco bdraco mentioned this pull request Jun 9, 2025
3 tasks
Bumps [cython](https://github.com/cython/cython) from 3.0.12 to 3.1.2.
- [Release notes](https://github.com/cython/cython/releases)
- [Changelog](https://github.com/cython/cython/blob/master/CHANGES.rst)
- [Commits](cython/cython@3.0.12...3.1.2)

---
updated-dependencies:
- dependency-name: cython
  dependency-version: 3.1.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/cython-3.1.2 branch from a41560b to 748325d Compare June 9, 2025 21:06
@bdraco
Copy link
Member

bdraco commented Jun 9, 2025

@dependabot recreate

Copy link
Contributor Author

dependabot bot commented on behalf of github Jun 9, 2025

Looks like cython is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this Jun 9, 2025
auto-merge was automatically disabled June 9, 2025 21:29

Pull request was closed

@dependabot dependabot bot deleted the dependabot/pip/cython-3.1.2 branch June 9, 2025 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant