(ctx, version)
Open a PR for the new release in conda-forge.
Open a PR for the new release in conda-forge.
Open a PR for the new release in conda - forge .
def release_conda(ctx, version):
    """
    Open a PR for the new release in conda-forge.
    """
    sha256 = get_file_sha256('dist/gmaps-{}.tar.gz'.format(version))
    print('Release SHA256 hash: {}'.format(sha256))
    tempdir = tempfile.mkdtemp()
    try:
        print('Cloning gmaps-feedstock to {}'.format(tempdir))
        os.chdir(tempdir)
        run('git clone git@github.com:pbugnion/gmaps-feedstock.git')
        os.chdir('gmaps-feedstock')
        run('git remote add upstream git@github.com:conda-forge/gmaps-feedstock.git')
        run('git pull --rebase upstream master')
        branch_name = 'release-version-{}'.format(version)
        run('git checkout -b {}'.format(branch_name))
        update_conda_recipe(version, sha256)
        run('git add recipe/meta.yaml')
        run('git commit -m "Release version {}"'.format(version))
        run('git push origin {}'.format(branch_name))
        print('URL: https://github.com/conda-forge/gmaps-feedstock')
    finally:
        print('Deleting temporary directory {}'.format(tempdir))
        shutil.rmtree(tempdir)
def release_conda ( ctx , version ) : sha256 = get_file_sha256 ( 'dist/gmaps-{}.tar.gz' . format ( version ) ) print ( 'Release SHA256 hash: {}' . format ( sha256 ) ) tempdir = tempfile . mkdtemp ( ) try : print ( 'Cloning gmaps-feedstock to {}' . format ( tempdir ) ) os . chdir ( tempdir ) run ( 'git clone git@github.com:pbugnion/gmaps-feedstock.git' ) os . chdir ( 'gmaps-feedstock' ) run ( 'git remote add upstream git@github.com:conda-forge/gmaps-feedstock.git' ) run ( 'git pull --rebase upstream master' ) branch_name = 'release-version-{}' . format ( version ) run ( 'git checkout -b {}' . format ( branch_name ) ) update_conda_recipe ( version , sha256 ) run ( 'git add recipe/meta.yaml' ) run ( 'git commit -m "Release version {}"' . format ( version ) ) run ( 'git push origin {}' . format ( branch_name ) ) print ( 'URL: https://github.com/conda-forge/gmaps-feedstock' ) finally : print ( 'Deleting temporary directory {}' . format ( tempdir ) ) shutil . rmtree ( tempdir )