parse_repos_test.py
Go to the documentation of this file.
1 import shutil
2 import tempfile
3 
4 from git import Repo
5 
6 from ros_introspection.util import get_packages
7 
8 
9 def single_repo_parse(git_url):
10  directory_name = tempfile.mkdtemp()
11 
12  Repo.clone_from(git_url, directory_name)
13 
14  for package in get_packages(directory_name):
15  print(package)
16 
17  shutil.rmtree(directory_name)
18 
19 
20 repos = ['https://github.com/DLu/navigation_layers.git',
21  'https://github.com/ros-planning/navigation.git'
22  ]
23 
24 
26  for repo in repos:
27  yield single_repo_parse, repo
28 
29 
30 if __name__ == '__main__':
31  for repo in repos:
32  single_repo_parse(repo)
def single_repo_parse(git_url)
def get_packages(root_fn='.', create_objects=True)
Definition: util.py:9


ros_introspection
Author(s):
autogenerated on Wed Mar 3 2021 03:56:00