remove list-repos command
This command has been replaced with list-deliverables. Change-Id: I8df5d631baef7ecaa5c9f325aa718e92dd1b8220 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
c867e240db
commit
e72c290e0f
17
README.rst
17
README.rst
|
@ -244,7 +244,7 @@ master branch.
|
|||
|
||||
::
|
||||
|
||||
./list_unreleased_changes.sh stable/kilo $(list-repos --code-only --team Oslo)
|
||||
./list_unreleased_changes.sh stable/kilo $(list-deliverables --repos --team Oslo)
|
||||
|
||||
Print the list of changes in the ``stable/kilo`` branch of all Oslo
|
||||
libraries.
|
||||
|
@ -264,7 +264,7 @@ is equivalent to:
|
|||
|
||||
::
|
||||
|
||||
./list_unreleased_changes.sh stable/kilo $(list-repos --code-only --team Oslo)
|
||||
./list_unreleased_changes.sh stable/kilo $(list-deliverables --repos --code-only --team Oslo)
|
||||
|
||||
|
||||
list_library_unreleased_changes.sh
|
||||
|
@ -290,7 +290,7 @@ is equivalent to:
|
|||
|
||||
::
|
||||
|
||||
./list_unreleased_changes.sh stable/liberty $(list-repos --tag stable:follows-policy)
|
||||
./list_unreleased_changes.sh stable/liberty $(list-deliverables --repos --series liberty)
|
||||
|
||||
make_stable_branch.sh
|
||||
---------------------
|
||||
|
@ -335,17 +335,6 @@ created.
|
|||
|
||||
./make_feature_branch.sh keystoneauth_integration python-keystoneclient 4776495adfadbf5240a9e0f169990ce139af9549
|
||||
|
||||
list-repos
|
||||
----------
|
||||
|
||||
Read the project list from the governance repository and print a list
|
||||
of the repositories, filtered by team and/or tag.
|
||||
|
||||
::
|
||||
|
||||
list-repos --team oslo
|
||||
list-repos --tag release:managed --tag type:library
|
||||
|
||||
latest-deliverable-versions
|
||||
---------------------------
|
||||
|
||||
|
|
|
@ -1,76 +0,0 @@
|
|||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import argparse
|
||||
import operator
|
||||
|
||||
from releasetools import governance
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument(
|
||||
'--project-list',
|
||||
default=governance.PROJECTS_LIST,
|
||||
help='a URL pointing to a projects.yaml file, defaults to %(default)s',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--code-only',
|
||||
default=False,
|
||||
action='store_true',
|
||||
help='only show repositories containing code, not docs or templates',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--team',
|
||||
help='the name of the project team, such as "Nova" or "Oslo"',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--deliverable',
|
||||
help='the name of the deliverable, such as "nova" or "oslo.config"',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--tag',
|
||||
action='append',
|
||||
default=[],
|
||||
help='the name of a tag, such as "release:managed"',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--cycle-based',
|
||||
action='store_true',
|
||||
default=False,
|
||||
help='include all cycle-based code repositories',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--include-team',
|
||||
action='store_true',
|
||||
default=False,
|
||||
help='Also include the team name for each repository',
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
team_data = governance.get_team_data(url=args.project_list)
|
||||
repos = governance.get_repositories(
|
||||
team_data,
|
||||
args.team,
|
||||
args.deliverable,
|
||||
args.tag,
|
||||
code_only=args.code_only,
|
||||
cycle_based=args.cycle_based,
|
||||
)
|
||||
for repo in sorted(repos, key=operator.attrgetter('name')):
|
||||
if args.include_team:
|
||||
print("%s %s" % (governance.get_repo_owner(team_data, repo.name),
|
||||
repo.name))
|
||||
else:
|
||||
print(repo.name)
|
|
@ -25,7 +25,6 @@ packages =
|
|||
[entry_points]
|
||||
console_scripts =
|
||||
release-notes = releasetools.cmds.release_notes:main
|
||||
list-repos = releasetools.cmds.list_repos:main
|
||||
get-repo-owner = releasetools.cmds.get_repo_owner:main
|
||||
sanity-check-version = releasetools.cmds.sanity_check_version:main
|
||||
milestone-rename = releasetools.cmds.milestone_rename:main
|
||||
|
|
Loading…
Reference in New Issue