summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2021-10-09 13:35:19 -0400
committerJeff Forcier <jeff@bitprophet.org>2021-10-09 13:35:19 -0400
commit6fe0db1f93e878d1b0bef29eef3666e0a51d5ec6 (patch)
tree27d6c80d832cb48cdb11799d177adaaf1c18884b
parent28571d8d7f7b1d10feeb0d120cd837a16d194ed6 (diff)
downloadparamiko-6fe0db1f93e878d1b0bef29eef3666e0a51d5ec6.tar.gz
Massage upstream 'release.all' task too re: custom publish
-rw-r--r--tasks.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/tasks.py b/tasks.py
index 06cba017..362384fa 100644
--- a/tasks.py
+++ b/tasks.py
@@ -116,17 +116,22 @@ def publish_(ctx, sdist=True, wheel=True, sign=True, dry_run=False, index=None):
publish(
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 "
- "releases!"
- )
+
+
+# Also have to hack up the newly enhanced all_() so it uses our publish
+@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
# using unpublished internals & skips all the stuff add_task() does re:
# aliasing, defaults etc.
release_coll.tasks["publish"] = publish_
+release_coll.tasks["all"] = all_
ns = Collection(
test,