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

add catalog functionality #20

Merged
merged 4 commits into from
Apr 16, 2024
Merged

add catalog functionality #20

merged 4 commits into from
Apr 16, 2024

Conversation

andersy005
Copy link
Collaborator

@andersy005 andersy005 commented Apr 16, 2024

this PR adds a few cataloging functionality via the leap-catalog command:

leap-catalog --help                                                                                                                                                                                              
usage: leap-catalog [-h] {validate,generate} ...

Utilities for cataloging feedstocks for LEAP

positional arguments:
  {validate,generate}  sub-command help
    validate           Validate the feedstocks
    generate           Generate the catalog

options:
  -h, --help           show this help message and exit

one can

  • validate a single feedstock/catalog.yaml via
leap-catalog validate --single https://github.com/leap-stc/proto_feedstock/blob/main/feedstock/catalog.yaml                                                                                                      
✅ Valid feedstock: (1)
  📂 https://github.com/leap-stc/proto_feedstock/blob/main/feedstock/catalog.yaml
  • generate a set of feedstocks and generate the consolidated-web-catalog.json via
leap-catalog generate --path https://raw.githubusercontent.com/leap-stc/data-management/staging/catalog/input.yaml --output /tmp/                                                                             
['https://github.com/carbonplan/ocean-carbon-sink-data-feedstock/blob/main/feedstock/catalog.yaml']
✅ Valid feedstocks: (1)
  📂 https://github.com/carbonplan/ocean-carbon-sink-data-feedstock/blob/main/feedstock/catalog.yaml

❌ Invalid feedstocks: (0)
  🚀 None found

Catalog written to /private/tmp/output/consolidated-web-catalog.json

Cc @norlandrhagen, @jbusecke

@andersy005 andersy005 merged commit b586c70 into leap-stc:main Apr 16, 2024
3 checks passed
@andersy005 andersy005 deleted the add-catalog-functionality branch April 16, 2024 23:13
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.

1 participant