tasks.py
def release(c, upload=False):
    """
        create new tag and push to git and PyPI
    Args:
        c (Context):
    """
    notes = c.run(
        'git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%h %s"',
        hide=True,
    )  # type: Result
    from pipm import __version__

    c.run('git tag -a {0} -m "{1}"'.format(__version__, notes.stdout))
    c.run("git push --follow-tags")

    # dont forget to have this file
    # ~/.pypirc
    # [distutils]
    # index-servers =
    #  pypi
    if upload:
        pkg_release(c)

        create new tag and push to git and PyPI
    Args:
        c (Context):
    
create new tag and push to git and PyPI
create new tag and push to git and PyPI
def release(c, upload=False):
    notes = c.run(
        'git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%h %s"',
        hide=True,
    )  
    from pipm import __version__
    c.run('git tag -a {0} -m "{1}"'.format(__version__, notes.stdout))
    c.run("git push --follow-tags")
    if upload:
        pkg_release(c)
def release ( c , upload = False ) : notes = c . run ( 'git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%h %s"' , hide = True , ) from pipm import __version__ c . run ( 'git tag -a {0} -m "{1}"' . format ( __version__ , notes . stdout ) ) c . run ( "git push --follow-tags" ) if upload : pkg_release ( c )
create new tag and push to git and PyPI
create new tag and push to git and PyPI
"""
        create new tag and push to git and PyPI
    Args:
        c (Context):
    """ # type: Result # dont forget to have this file # ~/.pypirc # [distutils] # index-servers = #  pypi
c
None
upload