view fabfile.py @ 14:6f54302a31d2

version 0.4.0 Ignore-this: cae031e827bacc73fa8e49b7d5b2fd0d
author Drew Perttula <drewp@bigasterisk.com>
date Thu, 26 Apr 2018 07:50:56 +0000
parents 85873cde659b
children
line wrap: on
line source

from subprocess import check_call, check_output, CalledProcessError

def release():
    try:
        check_call(['darcs', 'wh', 'rdfdb/patch.py'])
        raise SystemExit("\n^^ record these changes first")
    except CalledProcessError: # nothing new
        pass
    ver = check_output(['env/bin/bump', '-qm', 'setup.py']).strip()
    check_call(['darcs', 'rec', '--all', '--name', "version %s" % ver, '.'])
    check_call(['python', 'setup.py', 'sdist'])
    check_call(['cp', 'dist/rdfdb-%s.tar.gz' % ver, '/my/site/projects/rdfdb/'])