From 629a6e52410f97edb386e59c48b7a7c28b3bf30a Mon Sep 17 00:00:00 2001 From: Chandan Singh Date: Fri, 7 Dec 2018 17:36:00 +0000 Subject: Introduce new "source" command group Following the message thread https://mail.gnome.org/archives/buildstream-list/2018-November/msg00106.html, implement a new command group called `source`. Move existing `track`, `fetch`, and the recently added `source-checkout` commands under this group. For `track` and `fetch`, this is a BREAKING change, as the old commands have been marked as obsolete. Using them will result in an error message that refers people to use the new versions, like `bst source fetch` instead of old `bst fetch`. `source-checkout` will now become `source checkout` (the dash has turned into a space), and is not a breaking change as it was added in the current development cycle. Note that the functionality to hide commands from help output was added only recently in Click, so the minimum version of Click that we now require is 7.0. Summary of changes: * _frontend/cli.py: Add `source` command group, mark previous versions as obsolete and hide them from the help output. * _frontend/complete.py: Fix completion for hidden commands. * setup.py: Bump Click minimum version to 7.0. * tests: Update to cope with the new command names. Fixes #814. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index c51e6d5bf..872e7da4e 100755 --- a/setup.py +++ b/setup.py @@ -346,7 +346,7 @@ setup(name='BuildStream', # See issues #571 and #790. 'ruamel.yaml >= 0.15.41, < 0.15.52', 'pluginbase', - 'Click', + 'Click >= 7.0', 'jinja2 >= 2.10', 'protobuf >= 3.5', 'grpcio >= 1.10', -- cgit v1.2.1