[www] Handle pynotedb and subunitsql

These infra repos are publishing at the normal location (/REPO) and not
under /infra/REPO. Add them to our indices and avoid the redirection for
infra repos.

Change-Id: Ib2fa39725746c1b15bee1e2b57c58ff133e4187d
This commit is contained in:
Andreas Jaeger 2017-09-08 18:17:06 +02:00
parent 987afd9f81
commit 822e7d695a
2 changed files with 20 additions and 1 deletions
tools
www/project-data

@ -315,6 +315,13 @@ _IGNORED_REPOS = [
'openstack-infra/releasestatus',
]
# List of infra repos that publish to the normal location (/REPO/) and
# not to /infra/REPO.
_INFRA_REPOS_EXCEPTION = [
'openstack-infra/pynotedb',
'openstack-infra/subunit2sql',
]
def _get_official_repos():
"""Return a tuple containing lists of all official repos.
@ -341,7 +348,11 @@ def _get_official_repos():
# be generated.
continue
seen_repos.add(repo)
if repo not in _IGNORED_REPOS:
# Overwrite infra list for a few repositories
if repo in _INFRA_REPOS_EXCEPTION:
regular_repos.append({'name': repo,
'base': repo.rsplit('/')[-1]})
elif repo not in _IGNORED_REPOS:
add({'name': repo, 'base': repo.rsplit('/')[-1]})
return (regular_repos, infra_repos)

@ -858,6 +858,14 @@
service: Bridge between container framework and OpenStack abstractions
type: service
- name: pynotedb
service: Python parser for notedb
type: tool
- name: subunit2sql
service: Tooling for converting subunit streams into a SQL DB
type: tool
# Projects that do not appear in the service-types-authority list:
# - kuryr
# - dragonflow