(ctx, version)
Finalise the release

    Running this task will:
     - commit the version changes to source control
     - tag the commit
     - push changes to master
Finalise the release
Finalise the release
def postrelease(ctx, version):
    '''
    Finalise the release

    Running this task will:
     - commit the version changes to source control
     - tag the commit
     - push changes to master
    '''
    run('git add gmaps/_version.py')
    run('git add js/package.json')
    run('git commit -m "Bump version to {}"'.format(version))
    run('git tag -a v{} -F changelog.tmp'.format(version))
    run('git push origin master --tags')
    new_version = semver.bump_patch(version) + '-dev'
    set_pyversion(new_version)
    set_jsversion(new_version)
    run('git add gmaps/_version.py')
    run('git add js/package.json')
    run('git commit -m "Back to dev"')
    run('git push origin master')
def postrelease ( ctx , version ) : run ( 'git add gmaps/_version.py' ) run ( 'git add js/package.json' ) run ( 'git commit -m "Bump version to {}"' . format ( version ) ) run ( 'git tag -a v{} -F changelog.tmp' . format ( version ) ) run ( 'git push origin master --tags' ) new_version = semver . bump_patch ( version ) + '-dev' set_pyversion ( new_version ) set_jsversion ( new_version ) run ( 'git add gmaps/_version.py' ) run ( 'git add js/package.json' ) run ( 'git commit -m "Back to dev"' ) run ( 'git push origin master' )