Skip to content
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

sigstore: flatten models into sigstore.models #990

Merged
merged 7 commits into from
May 2, 2024
Merged

Conversation

woodruffw
Copy link
Member

See #940. Closes #989.

This centralizes a good chunk of our (public) data models into sigstore.models. It also removes some re-export handling that causes unnecessary import circularity.

CC @facutuesca

Signed-off-by: William Woodruff <william@trailofbits.com>
@woodruffw woodruffw added component:api Public APIs refactoring Refactoring tasks. labels Apr 26, 2024
@woodruffw woodruffw added this to the 3.0 milestone Apr 26, 2024
@woodruffw woodruffw requested a review from jku April 26, 2024 19:41
@woodruffw woodruffw self-assigned this Apr 26, 2024
Signed-off-by: William Woodruff <william@trailofbits.com>
jku
jku previously approved these changes Apr 29, 2024
@woodruffw woodruffw enabled auto-merge (squash) April 29, 2024 13:41
@woodruffw
Copy link
Member Author

Marking for auto-merge; currently blocking on staging instability.

woodruffw and others added 2 commits April 30, 2024 10:49
* sigstore: extract LogEntry conversions to their own functions

Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com>

* test: add test for roundtrip LogEntry conversion

Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com>

* sigstore,test: deduce LogEntry type from its body

Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com>

* Update sigstore/models.py

Co-authored-by: William Woodruff <william@yossarian.net>
Signed-off-by: Facundo Tuesca <facu@tuesca.com>

* Update sigstore/models.py

Co-authored-by: William Woodruff <william@yossarian.net>
Signed-off-by: Facundo Tuesca <facu@tuesca.com>

---------

Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com>
Signed-off-by: Facundo Tuesca <facu@tuesca.com>
Co-authored-by: William Woodruff <william@yossarian.net>
@woodruffw woodruffw requested a review from jku May 1, 2024 15:24
@woodruffw woodruffw merged commit e043849 into main May 2, 2024
25 checks passed
@woodruffw woodruffw deleted the ww/refactor-modules branch May 2, 2024 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:api Public APIs refactoring Refactoring tasks.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Circular import on latest commit
3 participants