From df128519c702dc10cbfe72a3d36994d5dbe7772f Mon Sep 17 00:00:00 2001 From: Drew Bednar Date: Sun, 10 Dec 2023 19:49:49 -0500 Subject: [PATCH] Adding build task --- {{cookiecutter.project_slug}}/tasks.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/{{cookiecutter.project_slug}}/tasks.py b/{{cookiecutter.project_slug}}/tasks.py index a12b43d..1c13d42 100644 --- a/{{cookiecutter.project_slug}}/tasks.py +++ b/{{cookiecutter.project_slug}}/tasks.py @@ -25,3 +25,9 @@ def delint(c): """Applies automated linters to project""" c.run("isort ./speech_collect ./tests ./tasks.py", pty=True) c.run("black ./speech_collect ./tests ./tasks.py", pty=True) + + +@task +def build(c): + """Builds the project as a Python package.""" + c.run("python3 -m build")