Skip to content
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

Using Cython stable version #1412

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ajsanchezsanz
Copy link

What do these changes do?

Use latest Cython stable version, avoiding using pre-release versions.
Why? There is some issue with Cython 3.1.0a1 that is making the tests to fail.

Are there changes in behavior for the user?

No

Related issue number

Fixes #1411

Checklist

  • I think the code is well written
  • Unit tests for the changes exist - N/A
  • Documentation reflects the changes -N/A

Copy link

codspeed-hq bot commented Nov 9, 2024

CodSpeed Performance Report

Merging #1412 will not alter performance

Comparing ajsanchezsanz:fix/pulling_stable_cython_version (1ba867f) with master (d6a65eb)

Summary

✅ 83 untouched benchmarks

Copy link

codecov bot commented Nov 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.06%. Comparing base (d6a65eb) to head (1ba867f).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1412      +/-   ##
==========================================
- Coverage   96.06%   96.06%   -0.01%     
==========================================
  Files          31       31              
  Lines        5765     5762       -3     
  Branches      344      344              
==========================================
- Hits         5538     5535       -3     
  Misses        201      201              
  Partials       26       26              
Flag Coverage Δ
CI-GHA 96.06% <100.00%> (-0.01%) ⬇️
MyPy 48.65% <100.00%> (-0.03%) ⬇️
OS-Linux 99.55% <ø> (ø)
OS-Windows 99.61% <ø> (ø)
OS-macOS 99.30% <ø> (ø)
Py-3.10.11 99.28% <ø> (ø)
Py-3.10.15 99.51% <ø> (ø)
Py-3.11.10 99.51% <ø> (ø)
Py-3.11.9 99.28% <ø> (ø)
Py-3.12.7 99.51% <ø> (ø)
Py-3.13.0 99.51% <ø> (ø)
Py-3.9.13 99.23% <ø> (ø)
Py-3.9.20 99.47% <ø> (ø)
Py-pypy7.3.16 99.53% <ø> (ø)
Py-pypy7.3.17 99.55% <ø> (ø)
VM-macos-latest 99.30% <ø> (ø)
VM-ubuntu-latest 99.55% <ø> (ø)
VM-windows-latest 99.61% <ø> (ø)
pytest 99.55% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ajsanchezsanz ajsanchezsanz force-pushed the fix/pulling_stable_cython_version branch from 88bad56 to 2e0c592 Compare November 9, 2024 18:39
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Nov 9, 2024
Co-authored-by: ajsanchezsanz <[email protected]>
Co-authored-by: markgreene74 <[email protected]>
@ajsanchezsanz ajsanchezsanz force-pushed the fix/pulling_stable_cython_version branch from 7f5b60c to ee03913 Compare November 9, 2024 18:49
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's change or symlink this to a packaging type.

@@ -0,0 +1 @@
Removed usage of Cython pre-release versions -- by :user:`ajsanchezsanz`, :user:`markgreene74`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Removed usage of Cython pre-release versions -- by :user:`ajsanchezsanz`, :user:`markgreene74`.
Stopped implicitly allowing the use of Cython pre-release versions when
building the distribution package -- by :user:`ajsanchezsanz` and
:user:`markgreene74`.

@@ -378,8 +374,7 @@ def get_requires_for_build_wheel(
)

c_ext_build_deps = [] if is_pure_python_build else [
'Cython >= 3.0.0b3' if IS_PY3_12_PLUS # Only Cython 3+ is compatible
else 'Cython',
'Cython >= 3.0.0, < 3.1.0',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not put the lower limit for older CPython versions.

Suggested change
'Cython >= 3.0.0, < 3.1.0',
'Cython ~= 3.0.0; python_version >= "3.12"',
'Cython; python_version < "3.12"',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:provided There is a change note present in this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tests failing in a new environment with an exception (ValueError: chr() arg not in range(0x110000))
2 participants