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


ros_introspection
Author(s):
autogenerated on Wed Jun 19 2019 19:56:52