Skip to content

MNT bump to Cython=3.0.9 - #28640

Merged
lesteve merged 7 commits into
scikit-learn:mainfrom
lorentzenchr:cython_3_0_9
Mar 19, 2024
Merged

lesteve merged 7 commits into
scikit-learn:mainfrom
lorentzenchr:cython_3_0_9

Conversation

@lorentzenchr

@lorentzenchr lorentzenchr commented Mar 16, 2024 •

Copy link
Copy Markdown
Member

Reference Issues/PRs

None

What does this implement/fix? Explain your changes.

Updates min required version of cython to 3.0.9.

Any other comments?

@github-actions

github-actions Bot commented Mar 16, 2024 •

Copy link
Copy Markdown

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 72c6eb0. Link to the linter CI: here

@ogrisel

ogrisel commented Mar 18, 2024 •

Copy link
Copy Markdown
Member

Out of curiosity, is this useful or needed for a specific PR/issue?

_min_dependencies.py should not be updated too often if not needed, even if we can rely on more recent versions for build dependencies, contrary to runtime dependencies.

I don't want to force contributors to always upgrade to the latest version of Cython if they don't need to.

EDIT: this change is mandated by #28603 although it's net yet obvious to me which part of this PR requires the Cython version bump.

@lesteve

lesteve commented Mar 18, 2024 •

Copy link
Copy Markdown
Member

Also side-comment, note that the nogil build needs some coordination work with Sam Gross, if we update the min Cython dependency, see for example colesbury/nogil-wheels#6.

For now the nogil lock-file is updated manually outside of the update_environment_and_lock_files.py script ...

@lorentzenchr

Copy link
Copy Markdown
Member Author

It‘s required for a bugfix of fused types used in a method of a cython.final extension type.

@ogrisel

ogrisel commented Mar 18, 2024

Copy link
Copy Markdown
Member

I resolved the conflict. Let me do a re-run of the update lock file script just to be sure.

If everything is green, I am fine with merging this version update if it makes it easier for other concurrent PRs on HGBDT.

@ogrisel

ogrisel commented Mar 18, 2024 •

Copy link
Copy Markdown
Member

Actually, let's wait for #28653 and then re-run the lock script on this PR.

EDIT: fixed PR number.

@ogrisel

ogrisel commented Mar 18, 2024

Copy link
Copy Markdown
Member

For reference, I opened the PR to build the Cython 3.0.9 wheel for nogil:

@ogrisel ogrisel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I pushed a commit to trigger all the CIs with the new Cython version.

Assuming this is green, +1 on my side.

@ogrisel

ogrisel commented Mar 18, 2024

Copy link
Copy Markdown
Member

I opened #28654 to update the nogil CI separately.

@ogrisel

ogrisel commented Mar 18, 2024

Copy link
Copy Markdown
Member

#28555 was merged and some of the lock files need another update as a consequence. Let me push another commit.

@lorentzenchr

Copy link
Copy Markdown
Member Author

@ogrisel Thanks for taking over!

@betatim betatim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@lesteve
lesteve merged commit a6718dd into scikit-learn:main Mar 19, 2024
@lesteve

lesteve commented Mar 19, 2024

Copy link
Copy Markdown
Member

Merging, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants