Skip to content

Commit

Permalink
Pass through index option for release task
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed May 15, 2018
1 parent 16d0d3a commit fbcee2a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def coverage(ctx, opts=""):
# TODO: would be nice to tie this into our own version of build() too, but
# still have publish() use that build()...really need to try out classes!
@task
def release(ctx, sdist=True, wheel=True, sign=True, dry_run=False):
def release(ctx, sdist=True, wheel=True, sign=True, dry_run=False, index=None):
"""
Wraps invocations.packaging.publish to add baked-in docs folder.
"""
Expand All @@ -93,7 +93,9 @@ def release(ctx, sdist=True, wheel=True, sign=True, dry_run=False):
# TODO: make it easier to yank out this config val from the docs coll
copytree('sites/docs/_build', target)
# Publish
publish(ctx, sdist=sdist, wheel=wheel, sign=sign, dry_run=dry_run)
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!")
Expand Down

0 comments on commit fbcee2a

Please sign in to comment.