Skip to content
Snippets Groups Projects
Commit 91ee52c85b06 authored by Jeff Forcier's avatar Jeff Forcier
Browse files

Massage upstream 'release.all' task too re: custom publish

parent 5420c61f3fa2
Branches
No related tags found
No related merge requests found
...@@ -116,14 +116,18 @@ ...@@ -116,14 +116,18 @@
publish( publish(
ctx, sdist=sdist, wheel=wheel, sign=sign, dry_run=dry_run, index=index ctx, sdist=sdist, wheel=wheel, sign=sign, dry_run=dry_run, index=index
) )
# Remind
print(
"\n\nDon't forget to update RTD's versions page for new minor " # Also have to hack up the newly enhanced all_() so it uses our publish
"releases!" @task(name="all", default=True)
) def all_(c, dry_run=False):
release_coll["prepare"](c, dry_run=dry_run)
publish_(c, dry_run=dry_run)
release_coll["push"](c, dry_run=dry_run)
release_coll["tidelift"](c, dry_run=dry_run)
# TODO: "replace one task with another" needs a better public API, this is # TODO: "replace one task with another" needs a better public API, this is
# using unpublished internals & skips all the stuff add_task() does re: # using unpublished internals & skips all the stuff add_task() does re:
# aliasing, defaults etc. # aliasing, defaults etc.
release_coll.tasks["publish"] = publish_ release_coll.tasks["publish"] = publish_
...@@ -124,9 +128,10 @@ ...@@ -124,9 +128,10 @@
# TODO: "replace one task with another" needs a better public API, this is # TODO: "replace one task with another" needs a better public API, this is
# using unpublished internals & skips all the stuff add_task() does re: # using unpublished internals & skips all the stuff add_task() does re:
# aliasing, defaults etc. # aliasing, defaults etc.
release_coll.tasks["publish"] = publish_ release_coll.tasks["publish"] = publish_
release_coll.tasks["all"] = all_
ns = Collection( ns = Collection(
test, test,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment