3
0
Fork 0

First commit, basic config (with db) and app handler

this has 100% test coverage and i intend to keep it that way.  api
docs have a good start but still need narrative.  several more things
must be added before i can seriously consider incorporating into
rattail but this seemed a good save point
This commit is contained in:
Lance Edgar 2023-10-28 17:48:37 -05:00
commit 5c3c42d6b3
36 changed files with 3322 additions and 0 deletions

28
tasks.py Normal file
View file

@ -0,0 +1,28 @@
# -*- coding: utf-8; -*-
"""
Tasks for WuttJamaican
"""
import os
import shutil
from invoke import task
here = os.path.abspath(os.path.dirname(__file__))
exec(open(os.path.join(here, 'wuttjamaican', '_version.py')).read())
@task
def release(c):
"""
Release a new version of WuttJamaican
"""
# rebuild local tar.gz file for distribution
if os.path.exists('WuttJamaican.egg-info'):
shutil.rmtree('WuttJamaican.egg-info')
c.run('python -m build --sdist')
# upload to PyPI
filename = f'WuttJamaican-{__version__}.tar.gz'
c.run(f'twine upload dist/{filename}')