def _getReleaseVersion():
    # Get current python version
    currentVersionStr = local('python setup.py --version', capture=True).strip()
    
    cvd = _validateVersion(currentVersionStr)
    if not currentVersionStr.endswith('-dev'):
        cvd['micro'] += 1

    nextVersionStr = '%d.%d.%d' % (cvd['major'], cvd['minor'], cvd['micro'])
    print 'You current version is %s.  You release version will be %s' % (currentVersionStr, nextVersionStr)

    return cvd
dataset/ETHPy150Open ooici/pyon/fabfile.py/_getReleaseVersion/original