Skip to content

Commit

Permalink
Update tasks.py for new doc format.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyue Ping Ong committed Aug 7, 2023
1 parent 107a609 commit 6df6600
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,10 @@ def setver(ctx):

@task
def release_github(ctx):
with open("docs_rst/changelog.md") as f:
with open("docs/changelog.md") as f:
contents = f.read()
toks = re.split(r"\-+", contents)
toks = re.split("##", contents)
desc = toks[1].strip()
toks = desc.split("\n")
desc = "\n".join(toks[:-1]).strip()
payload = {
"tag_name": "v" + NEW_VER,
"target_commitish": "master",
Expand Down Expand Up @@ -134,9 +132,10 @@ def set_ver(ctx):


@task
def release(ctx):
def release(ctx, notest=False):
set_ver(ctx)
test(ctx)
if not notest:
test(ctx)
update_doc(ctx)
commit(ctx)
release_github(ctx)
Expand Down

0 comments on commit 6df6600

Please sign in to comment.