Add release
task
This commit is contained in:
parent
b60009fd5b
commit
853c77415a
25
tasks.py
Normal file
25
tasks.py
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# -*- coding: utf-8; -*-
|
||||||
|
|
||||||
|
from __future__ import unicode_literals, absolute_import
|
||||||
|
|
||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
|
||||||
|
from invoke import task
|
||||||
|
|
||||||
|
|
||||||
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
exec(open(os.path.join(here, 'appy', '_version.py')).read())
|
||||||
|
|
||||||
|
|
||||||
|
@task
|
||||||
|
def release(ctx):
|
||||||
|
"""
|
||||||
|
Release a new version of 'appypod-rattail'.
|
||||||
|
"""
|
||||||
|
shutil.rmtree('appypod_rattail.egg-info')
|
||||||
|
ctx.run("python setup.py egg_info --tag-build='' sdist --formats=gztar")
|
||||||
|
|
||||||
|
filename = 'appypod-rattail-{}.tar.gz'.format(__version__)
|
||||||
|
ctx.run('scp dist/{} rattail@pypi.rattailproject.org:/srv/pypi/'.format(filename))
|
||||||
|
ctx.run("ssh rattail@pypi.rattailproject.org 'cd /srv/pypi; rm -rf simple; compoze index'")
|
Loading…
Reference in a new issue