fix: refactor config.get_model()
=> app.model
per rattail changes
This commit is contained in:
parent
4eb5866379
commit
ae8212069c
10 changed files with 54 additions and 40 deletions
6
tasks.py
6
tasks.py
|
@ -31,16 +31,18 @@ from invoke import task
|
|||
|
||||
|
||||
@task
|
||||
def release(c, tests=False):
|
||||
def release(c, skip_tests=False):
|
||||
"""
|
||||
Release a new version of 'Tailbone'.
|
||||
"""
|
||||
if tests:
|
||||
if not skip_tests:
|
||||
c.run('tox')
|
||||
|
||||
if os.path.exists('dist'):
|
||||
shutil.rmtree('dist')
|
||||
if os.path.exists('Tailbone.egg-info'):
|
||||
shutil.rmtree('Tailbone.egg-info')
|
||||
|
||||
c.run('python -m build --sdist')
|
||||
|
||||
c.run('twine upload dist/*')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue