wutta-corepos/tasks.py
Lance Edgar 1b4ba2089a fix: format all code with black
and from now on should not deviate from that...
2025-08-31 13:05:00 -05:00

24 lines
388 B
Python

# -*- coding: utf-8; -*-
"""
Tasks for Wutta-COREPOS
"""
import os
import shutil
from invoke import task
@task
def release(c, skip_tests=False):
"""
Release a new version of Wutta-COREPOS
"""
if not skip_tests:
c.run("pytest")
if os.path.exists("dist"):
shutil.rmtree("dist")
c.run("python -m build --sdist")
c.run("twine upload dist/*")