wutta-corepos/tasks.py

25 lines
388 B
Python
Raw Normal View History

2025-01-12 00:22:08 -06:00
# -*- 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")
2025-01-12 00:22:08 -06:00
if os.path.exists("dist"):
shutil.rmtree("dist")
2025-01-12 00:22:08 -06:00
c.run("python -m build --sdist")
c.run("twine upload dist/*")