Skip to content

Add extract_repos_subset.py script#594

Open
scpeters wants to merge 1 commit intomasterfrom
scpeters/extract_repos_subset
Open

Add extract_repos_subset.py script#594
scpeters wants to merge 1 commit intomasterfrom
scpeters/extract_repos_subset

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 <scpeters@openrobotics.org>
@scpeters scpeters requested a review from j-rivero December 18, 2021 09:16
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