Skip to content

Cleanup PyO3 migration artifacts #2326

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

Merged
merged 5 commits into from
Feb 18, 2025
Merged

Cleanup PyO3 migration artifacts #2326

merged 5 commits into from
Feb 18, 2025

Conversation

twitu
Copy link
Collaborator

@twitu twitu commented Feb 16, 2025

Pull Request

  • Remove usage of deprecated to_py_any and to_object methods. Use the new IntoPyObject functions.
  • Rename PyLong -> PyInt
  • get_type_bound -> get_type
  • wrap_pyfunction_bound -> wrap_pyfunction
  • Remove deprecated imports and implementations
  • Fix datetime library deprecated function usage

Type of change

  • Refactoring

How has this change been tested?

Cargo tests passing

Remove deprecated to_py style functions
Remove use of deprecated into_object functions
@twitu twitu marked this pull request as ready for review February 18, 2025 11:28
@@ -397,5 +400,7 @@ fn exhaust_data_iter_to_pycapsule(
let cvec: CVec = data.into();
let capsule = PyCapsule::new::<CVec>(py, cvec, None)?;

Ok(capsule.into_py(py))
// TODO: Improve error domain. Replace anyhow errors with nautilus
Copy link
Member

Choose a reason for hiding this comment

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

@cjdsellers cjdsellers merged commit 62399b0 into develop Feb 18, 2025
12 checks passed
@cjdsellers cjdsellers deleted the pyo3-cleanup branch February 18, 2025 22:40
@cjdsellers cjdsellers changed the title Cleanup Pyo3 migration artifacts Cleanup PyO3 migration artifacts Feb 18, 2025
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.

2 participants