scripts/gen_changelog.py
def generate():
    """Generate changelog."""
    old_dir = os.getcwd()
    proj_dir = os.path.join(os.path.dirname(__file__), os.pardir)
    os.chdir(proj_dir)
    version = validate_version()
    if not version:
        os.chdir(old_dir)
        return
    print('Generating changelog for version {}'.format(version))
    options = [
        '--user', 'arve0', '--project', 'leicacam', '-v', '--with-unreleased',
        '--future-release', version]
    generator = ChangelogGenerator(options)
    generator.run()
    os.chdir(old_dir)
def generate():
    """Generate changelog."""
    old_dir = os.getcwd()
    proj_dir = os.path.join(os.path.dirname(__file__), os.pardir)
    os.chdir(proj_dir)
    version = validate_version()
    if not version:
        os.chdir(old_dir)
        return
    print('Generating changelog for version {}'.format(version))
    options = [
        '--user', 'arve0', '--project', 'leicacam', '-v', '--with-unreleased',
        '--future-release', version]
    generator = ChangelogGenerator(options)
    generator.run()
    os.chdir(old_dir)
def generate ( ) : old_dir = os . getcwd ( ) proj_dir = os . path . join ( os . path . dirname ( __file__ ) , os . pardir ) os . chdir ( proj_dir ) version = validate_version ( ) if not version : os . chdir ( old_dir ) return print ( 'Generating changelog for version {}' . format ( version ) ) options = [ '--user' , 'arve0' , '--project' , 'leicacam' , '-v' , '--with-unreleased' , '--future-release' , version ] generator = ChangelogGenerator ( options ) generator . run ( ) os . chdir ( old_dir )
Generate changelog.
Generate changelog .