8000 use Pydantic dataclasses for Python bindings by woodruffw · Pull Request #467 · sigstore/protobuf-specs · GitHub
[go: up one dir, main page]

Skip to content

use Pydantic dataclasses for Python bindings #467

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

Conversation

woodruffw
Copy link
Member
@woodruffw woodruffw commented Jan 10, 2025

WIP; this is experimental.

This should improve the quality/DX of the Python protobuf-specs a bit, by allowing them to be used as Pydantic dataclasses.

As a downside, this is an API breaking change for the Python bindings. However, sigstore-python strictly pins to each version so this shouldn't be a huge issue.

8000
Signed-off-by: William Woodruff <william@trailofbits.com>
@woodruffw woodruffw added the python Python bindings label Jan 10, 2025
@woodruffw woodruffw self-assigned this Jan 10, 2025
Signed-off-by: William Woodruff <william@trailofbits.com>
Copy link
Collaborator
@haydentherapper haydentherapper left a comment

Choose a reason for hiding this comment

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

Rubber stamp LGTM

Will this affect sigstore-conformance?

@woodruffw
Copy link
Member Author

Will this affect sigstore-conformance?

It shouldn't directly -- sigstore-conformance pins to a version of sigstore-python, which itself fully pins sigstore-protobuf-specs. So this will only roll downwards after I make needed fixes on sigstore-python first 🙂

@woodruffw woodruffw merged commit 7dc9aab into sigstore:main Jan 10, 2025
8 checks passed
@woodruffw woodruffw deleted the ww/python-pydantic-dataclasses branch January 10, 2025 21:36
@woodruffw woodruffw mentioned this pull request Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Python bindings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0