Skip to content

Declare and improve invoke tasks #5075

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 20 additions & 9 deletions tasks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
"""
Read the Docs tasks
"""
"""Read the Docs tasks."""

from __future__ import division, print_function, unicode_literals

Expand All @@ -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',
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this will change the docs for deploying no? So it swill be invoke deploy.release instead of invoke release?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


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
Expand Down