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 extract_repos_subset.py script #594

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scpeters
Copy link
Contributor

Add script to extract a subset of repository information from a .repos yaml file.

$ curl https://github.com/ignition-tooling/gazebodistro/raw/master/collection-fortress.yaml
...
$ python3 jenkins-scripts/tools/extract_repos_subset.py collection-fortress.yaml sdformat > fortress_sdformat.repos
jenkins-scripts/tools/extract_repos_subset.py:22: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  y = yaml.load(f.read())
$ cat fortress_sdformat.repos
repositories:
  sdformat:
    type: git
    url: https://github.com/osrf/sdformat
    version: sdf12

I needed this script for VIPER, so I figured I would post it here in case others find it useful.

Add script to extract a subset of repository
information from a .repos yaml file.

Signed-off-by: Steve Peters <[email protected]>
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.

None yet

1 participant