Skip to content

Conversation

@Icxolu
Copy link
Contributor

@Icxolu Icxolu commented Sep 27, 2025

Upgrades to PyO3 0.27, PyO3/pyo3#5390

  • migrate to declarative modules in docs and examples
  • migrate FromPyObject impls

This still needs Borrowed::cast to be made public. PyO3/pyo3#5475

@Icxolu Icxolu force-pushed the pyo3/0.27 branch 2 times, most recently from add5aa6 to 7c74173 Compare September 30, 2025 20:24
@Icxolu Icxolu force-pushed the pyo3/0.27 branch 2 times, most recently from 2a9e59d to 9576a65 Compare October 19, 2025 13:42
@Icxolu Icxolu marked this pull request as ready for review October 19, 2025 13:59
Copy link
Contributor

@jakelishman jakelishman left a comment

Choose a reason for hiding this comment

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

I successfully tested this PR against Qiskit's test suite (Qiskit/qiskit#15213), which uses a bunch of the conversions. Fwiw, I reviewed the changes and it looks correct to me.

@Icxolu
Copy link
Contributor Author

Icxolu commented Oct 20, 2025

Thanks for testing and reviewing, much appreciated!
@davidhewitt Do you want to take a look as well, before we land this?

@alexander-kjall-hafslundeco

I tested this with our company internal codebase that uses pyo3/numpy. And all our unit tests pass with it.

@kylebarron
Copy link

It would be great to get this merged and have a new 0.27 numpy release!

@Icxolu
Copy link
Contributor Author

Icxolu commented Oct 23, 2025

Thanks all for testing! I think the feedback is sufficiently positive, lets merge and ship.

@Icxolu Icxolu merged commit d1783af into PyO3:main Oct 23, 2025
76 of 77 checks passed
@Icxolu
Copy link
Contributor Author

Icxolu commented Oct 23, 2025

Release is live now 🎉

@Icxolu Icxolu deleted the pyo3/0.27 branch October 23, 2025 16:03
@kylebarron
Copy link

Thank you!

Copy link
Member

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

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

Thanks all for handling!

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.

5 participants