Skip to content

Bumped ndarray to 0.17. - #516

Merged
Icxolu merged 4 commits into
PyO3:mainfrom
bangconghuynh:bump-ndarray-0.17
Nov 10, 2025
Merged

Bumped ndarray to 0.17.#516
Icxolu merged 4 commits into
PyO3:mainfrom
bangconghuynh:bump-ndarray-0.17

Conversation

@bangconghuynh

Copy link
Copy Markdown
Contributor

Bumped ndarray to 0.17.

@Icxolu

Icxolu commented Nov 10, 2025

Copy link
Copy Markdown
Member

Thank you! Could you also add a changelog entry please?

@bangconghuynh

Copy link
Copy Markdown
Contributor Author

Thank you! Could you also add a changelog entry please?

I have created an entry for rust-numpy v0.27.1. I hope that is okay.

@Icxolu Icxolu 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.

Thanks! Sounds good to me 👍

@Icxolu
Icxolu merged commit d7283f3 into PyO3:main Nov 10, 2025
77 checks passed
@konn

konn commented Dec 1, 2025

Copy link
Copy Markdown

Just curious, but when is this change shipped to crates.io?

@Icxolu

Icxolu commented Dec 1, 2025

Copy link
Copy Markdown
Member

Generally there is a release when a new PyO3 major version ships. PyO3 0.28 is loosely targeted around end of the year. But it looks like there is some interest in this getting shipped, so I can see if I get to prepare a patch release sooner.

@kylebarron

Copy link
Copy Markdown

Thank you! Could you also add a changelog entry please?

I have created an entry for rust-numpy v0.27.1. I hope that is okay.

This is a breaking change so you might need to make a breaking release of rust-numpy, right?

@Icxolu

Icxolu commented Dec 1, 2025

Copy link
Copy Markdown
Member

I should not be breaking, we just extended the supported range of ndarray versions.

@kylebarron

Copy link
Copy Markdown

Ah, apologies! I didn't look closely enough to see that it didn't force users to use ndarray 0.17

@Icxolu

Icxolu commented Dec 1, 2025

Copy link
Copy Markdown
Member

No worries

@Havunen

Havunen commented Dec 2, 2025

Copy link
Copy Markdown

We are also waiting for ndarray 0.17 support to rust-numpy to move forward with other crates

@Icxolu

Icxolu commented Dec 2, 2025

Copy link
Copy Markdown
Member

Done in #517, should be live now 🎉

@prehner

prehner commented Dec 4, 2025

Copy link
Copy Markdown

I'm not familiar enough with cargo's dependency resolver to be able to tell why this fails exactly, but this change did in fact break our code that depends on ndarray and numpy. The numpy dependency wants to pull ndarray 0.17 whereas our code was still on ndarray 0.16. Do you know a way to avoid numpy picking 0.17 so that we don't encounter these problems in the future?

@Icxolu

Icxolu commented Dec 4, 2025

Copy link
Copy Markdown
Member

That is unfortunate, sorry about that. Maybe we should considers these as breaking in the future 🤔
There is this section in the readme, which might help.

maffoo added a commit to maffoo/rust-numpy that referenced this pull request Jan 7, 2026
Previously the version constraint was updated to ndarray <= 0.17 but the
0.17 release was yanked and this excludes 0.17.1 and later point
releases. This updates the dependency specification to < 0.18 which will
allow point releass (and which is closer to what was used before PyO3#516).
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.

6 participants