(ctx, version)
Release a pre-release version

    Running this task will:
     - Bump the version number
     - Push a release to pypi and npm
Release a pre-release version
Release a pre - release version
def prerelease(ctx, version):
    '''
    Release a pre-release version

    Running this task will:
     - Bump the version number
     - Push a release to pypi and npm
    '''
    set_pyversion(version)
    set_jsversion(version)
    release_python_sdist()
    os.chdir(os.path.join(GMAPS_DIR, 'js'))
    try:
        run('npm publish')
    finally:
        os.chdir(GMAPS_DIR)
def prerelease ( ctx , version ) : set_pyversion ( version ) set_jsversion ( version ) release_python_sdist ( ) os . chdir ( os . path . join ( GMAPS_DIR , 'js' ) ) try : run ( 'npm publish' ) finally : os . chdir ( GMAPS_DIR )