Compare commits
No commits in common. "master" and "v0.2.4" have entirely different histories.
23
tasks.py
23
tasks.py
|
@ -1,23 +0,0 @@
|
||||||
# -*- coding: utf-8; -*-
|
|
||||||
"""
|
|
||||||
Tasks for rattail-demo
|
|
||||||
"""
|
|
||||||
|
|
||||||
import os
|
|
||||||
import shutil
|
|
||||||
|
|
||||||
from invoke import task
|
|
||||||
|
|
||||||
|
|
||||||
@task
|
|
||||||
def release(c):
|
|
||||||
"""
|
|
||||||
Release a new version of 'rattail-demo'
|
|
||||||
"""
|
|
||||||
if os.path.exists('dist'):
|
|
||||||
shutil.rmtree('dist')
|
|
||||||
if os.path.exists('rattail_demo.egg-info'):
|
|
||||||
shutil.rmtree('rattail_demo.egg-info')
|
|
||||||
|
|
||||||
c.run('python -m build --sdist')
|
|
||||||
c.run('twine upload dist/*')
|
|
Loading…
Reference in a new issue