Skip to content

Add python uuid conversions #4864

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 6 commits into from
Jan 22, 2025
Merged

Conversation

JeanArhancet
Copy link
Contributor

I'm reopening this PR for Python UUID support after a mistake in my Git commands..

@JeanArhancet JeanArhancet force-pushed the feat/add-uuid-support branch from 7bbac04 to a2a79b8 Compare January 18, 2025 10:33
Copy link
Contributor

@Icxolu Icxolu left a comment

Choose a reason for hiding this comment

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

Thanks for driving this forwards. I left some thoughts below.

Copy link
Contributor

@Icxolu Icxolu left a comment

Choose a reason for hiding this comment

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

Thank you, I think we are nearly there. We still have CI failures caused by the ui tests, maybe we need to feature gate that one.

};
}

convert_constants!(
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice use of a macro 👍

@Icxolu
Copy link
Contributor

Icxolu commented Jan 21, 2025

The output of this test does depend on the feature now.

t.compile_fail("tests/ui/invalid_pyfunctions.rs");

Adding #[cfg(not(feature = "uuid"))] and regenerating the output should fix it.

Copy link
Contributor

@Icxolu Icxolu left a comment

Choose a reason for hiding this comment

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

Perfect, thanks again 🚀

@Icxolu Icxolu added this pull request to the merge queue Jan 22, 2025
Merged via the queue into PyO3:main with commit 5c363b5 Jan 22, 2025
44 of 46 checks passed
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