()
| 231 | |
| 232 | |
| 233 | def main() -> int: |
| 234 | args = parse_args() |
| 235 | |
| 236 | # Need parent.parent cause script is in scripts/ directory |
| 237 | sf = SourceFiles(Path(__file__).parent.parent) |
| 238 | |
| 239 | if args.add_changes_template: |
| 240 | return sf.add_template_to_changes() |
| 241 | |
| 242 | LOG.info(f"Current version detected to be {sf.current_version}") |
| 243 | LOG.info(f"Next version will be {sf.next_version}") |
| 244 | return sf.update_repo_for_release() |
| 245 | |
| 246 | |
| 247 | if __name__ == "__main__": # pragma: no cover |
no test coverage detected