feat: basic support for WSGI app, views, templates
also docs + tests for what we have so far
This commit is contained in:
commit
977c196f47
49 changed files with 2805 additions and 0 deletions
28
tasks.py
Normal file
28
tasks.py
Normal file
|
@ -0,0 +1,28 @@
|
|||
# -*- coding: utf-8; -*-
|
||||
"""
|
||||
Tasks for wuttaweb
|
||||
"""
|
||||
|
||||
import os
|
||||
import shutil
|
||||
|
||||
from invoke import task
|
||||
|
||||
|
||||
@task
|
||||
def release(c, skip_tests=False):
|
||||
"""
|
||||
Release a new version of WuttJamaican
|
||||
"""
|
||||
if not skip_tests:
|
||||
c.run('tox')
|
||||
|
||||
# rebuild pkg
|
||||
if os.path.exists('dist'):
|
||||
shutil.rmtree('dist')
|
||||
if os.path.exists('WuttJamaican.egg-info'):
|
||||
shutil.rmtree('WuttJamaican.egg-info')
|
||||
c.run('python -m build --sdist')
|
||||
|
||||
# upload
|
||||
c.run('twine upload dist/*')
|
Loading…
Add table
Add a link
Reference in a new issue