From 173991f6abe4edd10be4ff6ef65fb674c39bd888 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Mon, 7 Jan 2019 10:13:32 +0100 Subject: [PATCH] Declare and improve invoke tasks --- tasks.py | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/tasks.py b/tasks.py index 02a36534645..c3d52e586c3 100644 --- a/tasks.py +++ b/tasks.py @@ -1,6 +1,4 @@ -""" -Read the Docs tasks -""" +"""Read the Docs tasks.""" from __future__ import division, print_function, unicode_literals @@ -14,15 +12,28 @@ ROOT_PATH = os.path.dirname(__file__) -# TODO make these tasks namespaced -# release = Collection(common.tasks.prepare, common.tasks.release) +namespace = Collection() +namespace.add_collection( + Collection( + common.tasks.prepare, + common.tasks.release, + ), + name='deploy', +) -namespace = Collection( - common.tasks.prepare, - common.tasks.release, - #release=release, +namespace.add_collection( + Collection( + common.tasks.setup_labels, + ), + name='github', ) +namespace.add_collection( + Collection( + common.tasks.upgrade_all_packages, + ), + name='packages', +) # Localization tasks @task