def copy_version_to_package(path):
init_file = os.path.join(path, "<STR_LIT>")<EOL>with open(init_file, "<STR_LIT:r>") as original_file:<EOL><INDENT>lines = original_file.readlines()<EOL><DEDENT>with open(init_file, "<STR_LIT:w>") as new_file:<EOL><INDENT>for line in lines:<EOL><INDENT>if "<STR_LIT>" not in line:<EOL><INDENT>new_file.write(line)<EOL><DEDENT>else:<EOL><INDENT>new_file.write("<STR_LIT>".format(VERSION))<EOL><DEDENT><DEDENT><DEDENT>
Copy the single source of truth version number into the package as well.