wuttasync/tasks.py
Lance Edgar e19eab418a feat: initial release
just the basics in place for an ad-hoc CSV -> Wutta import.  framework
API only at this point, no CLI yet
2024-12-05 07:57:51 -06:00

25 lines
380 B
Python

# -*- coding: utf-8; -*-
"""
Tasks for WuttaSync
"""
import os
import shutil
from invoke import task
@task
def release(c, skip_tests=False):
"""
Release a new version of WuttaSync
"""
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/*')