def update_versions(package_name, new_version): # Update version print "Updating versions.cfg" path = os.path.join(os.getcwd(), '../../versions.cfg') versions = VersionsFile(path) versions.set(package_name, new_version)
def set_package_version(version_file_path, package_name, new_version): versions = VersionsFile(version_file_path) versions.set(package_name, new_version)