diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2021-10-09 13:35:19 -0400 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2021-10-09 13:35:19 -0400 |
commit | 6fe0db1f93e878d1b0bef29eef3666e0a51d5ec6 (patch) | |
tree | 27d6c80d832cb48cdb11799d177adaaf1c18884b | |
parent | 28571d8d7f7b1d10feeb0d120cd837a16d194ed6 (diff) |
Massage upstream 'release.all' task too re: custom publish
-rw-r--r-- | tasks.py | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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, |