4 from __future__
import print_function
9 from catkin_pkg.packages
import find_packages
11 maintainers_dict = {
"Ioan Sucan" :
"isucan",
12 "Michael Ferguson" :
"mikeferguson",
13 "Sachin Chitta" :
"sachinchitta",
14 "G.A. vd. Hoorn" :
"gavanderhoorn",
15 "Dave Coleman" :
"davetcoleman",
16 "Acorn Pooley" :
"acorn",
17 "Jon Binney" :
"jonbinney",
18 "Matei Ciocarlie" :
"mateiciocarlie",
19 "Michael Görner".decode(
'utf8') :
"v4hn",
20 "Robert Haschke" :
"rhaschke",
21 "Ian McMahon" :
"IanTheEngineer",
22 "Isaac I. Y. Saito" :
"130s",
23 "Mathias Lüdtke".decode(
'utf8') :
"ipa-mdl",
24 "Ryan Luna" :
"ryanluna",
25 "Chittaranjan Srinivas Swaminathan" :
"ksatyaki",
26 "Chittaranjan S Srinivas" :
"ksatyaki" 30 print(*args, file=sys.stderr, **kwargs)
34 name = maintainers_dict[maintainer.name]
36 eprint(
"Missing maintainer: ", maintainer.name)
37 name = maintainer.email
41 print(
"++ Templating '{0}'".format(src))
42 with open(src,
'r') as f: 44 for k, v
in subs.items():
45 data = data.replace(k, v)
46 with open(dst,
'w+')
as f:
48 print(
"++ Webpage ready at '{0}'".format(dst))
55 output +=
"<a href='http://build.ros.org/view/Isrc_uT/job/Isrc_uT__" + package_name +
"__ubuntu_trusty__source/'><img src='http://build.ros.org/buildStatus/icon?job=Isrc_uT__" + package_name +
"__ubuntu_trusty__source'></a>" 57 output +=
"<a href='http://build.ros.org/view/Ibin_uT64/job/Ibin_uT64__" + package_name +
"__ubuntu_trusty_amd64__binary/'><img src='http://build.ros.org/buildStatus/icon?job=Ibin_uT64__" + package_name +
"__ubuntu_trusty_amd64__binary'></a>" 62 output +=
"<a href='http://build.ros.org/view/Jsrc_uT/job/Jsrc_uT__" + package_name +
"__ubuntu_trusty__source/'><img src='http://build.ros.org/buildStatus/icon?job=Jsrc_uT__" + package_name +
"__ubuntu_trusty__source'></a>" 64 output +=
"<a href='http://build.ros.org/view/Jbin_uT64/job/Jbin_uT64__" + package_name +
"__ubuntu_trusty_amd64__binary/'><img src='http://build.ros.org/buildStatus/icon?job=Jbin_uT64__" + package_name +
"__ubuntu_trusty_amd64__binary'></a>" 69 output +=
"<a href='http://build.ros.org/view/Ksrc_uX/job/Ksrc_uX__" + package_name +
"__ubuntu_xenial__source/'><img src='http://build.ros.org/buildStatus/icon?job=Ksrc_uX__" + package_name +
"__ubuntu_xenial__source'></a>" 71 output +=
"<a href='http://build.ros.org/view/Kbin_uX64/job/Kbin_uX64__" + package_name +
"__ubuntu_xenial_amd64__binary/'><img src='http://build.ros.org/buildStatus/icon?job=Kbin_uX64__" + package_name +
"__ubuntu_xenial_amd64__binary'></a>" 76 head,tail = os.path.split(path)
79 components.insert(0,tail)
80 head,tail = os.path.split(head)
84 output =
"<td><a href='https://github.com/ros-planning/" +
get_first_folder(path) +
"'>" + package.name +
"</a></td>" 85 output +=
"<td>" + package.version +
"</td>" 88 for maintainer
in package.maintainers:
94 output +=
"<a href='https://github.com/" + author +
"'>" + author +
"</a>" 104 packages = find_packages(os.getcwd())
106 for path, package
in packages.items():
112 basepath = os.path.dirname(os.path.realpath(__file__))
113 template_file(os.path.join(basepath,
'maintainer_table_template.html'),
114 os.path.join(basepath,
'index.html'),
115 {
'CONTENTS' : output})
118 if __name__ ==
"__main__":
def template_file(src, dst, subs)
def author_to_github(maintainer)
def list_moveit_packages()
def get_first_folder(path)
def populate_package_data(path, package)
def create_travis_badge(package_name)