-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
Update sources, DOI and copyright link in PUDL #3004
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a good reason not to re-use our existing ZenodoDoi
pydantic type here?
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #3004 +/- ##
=====================================
Coverage 88.7% 88.7%
=====================================
Files 91 91
Lines 11007 11010 +3
=====================================
+ Hits 9766 9769 +3
Misses 1241 1241
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a cut-and-paste leftover comment string but other than that go for it.
src/pudl/metadata/classes.py
Outdated
@@ -228,6 +228,7 @@ def __repr_args__(self) -> list[tuple[str, Any]]: | |||
|
|||
HttpUrl = pydantic.AnyHttpUrl | |||
"""Http(s) URL.""" | |||
"""DOIs from Zenodo archives.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this docstring is a leftover?
In response to comments on #3000 and #3001 and the Zenodo migration in pudl-archiver PR #184 this PR makes some minor modifications to the way we write and read datapackages and source data metadata on the PUDL side. Specifically:
DOI
field with pydantic validation to the datapackage class, using regex from thepudl-archiver
zenodo-role
field to the contributors which defaults toproject member
, and encodes the list of possible roles in the new Zenodo API (a newly required field).PR Checklist
dev
).