Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)
raises the version

        def raise_version(version):
    """raises the version"""

    # check version.txt
    for root, dirs, files in os.walk(os.getcwd()):
        for dirname in dirs:
            if os.path.isdir(os.path.join(root, dirname, 'tests')):
                filename = os.path.join(root, dirname, 'version.txt')
                if os.path.isfile(filename):
                    f = open(filename, 'wb')
                    f.write(version)
                    f.close()

    # check setup.py
    new_setup = re_version.sub("version = '%s'" % version, _get_setup())
    setup_py = os.path.join(os.getcwd(), 'setup.py') 
    f = open(setup_py, 'wb')
    try:
        f.write(new_setup)
    finally:
        f.close()
        


src/i/w/iw.releaser-0.4.1/iw/releaser/commands.py   iw.releaser(Download)
from iw.releaser.packet import get_version
from iw.releaser.packet import get_name
from iw.releaser.packet import raise_version
from iw.releaser.packet import check_tests
from iw.releaser.packet import increment_changes
                                         version)
            if version != new_version:
                raise_version(new_version)
        else:
            if not new_version:
                new_version = str(float(version)+.1)
            display('Raising the version...')
            raise_version(new_version)