Skip to content

Commit 983270e

Browse files
committed
Add build and release tasks; update lockfile
1 parent 9241283 commit 983270e

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

package-lock.json

+15-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tasks.py

+8
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,11 @@ def readme(ctx, browse=False):
6262
ctx.run("rst2html.py README.rst > README.html")
6363
if browse:
6464
webbrowser.open_new_tab('README.html')
65+
66+
@task(clean, install)
67+
def build(ctx):
68+
ctx.run('python3 -m build')
69+
70+
@task(build)
71+
def release(ctx):
72+
ctx.run("python3 -m twine upload dist/*")

0 commit comments

Comments
 (0)