testing release / branch

v5
Brett 2024-09-26 20:22:39 -04:00
parent 664376d9b1
commit a98755bd6c
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.25)
project(COSC-4P80-Assignment-1 VERSION 4.0.0)
project(COSC-4P80-Assignment-1 VERSION 5.0.0)
option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF)
option(ENABLE_UBSAN "Enable the ub sanitizer" OFF)

View File

@ -173,7 +173,7 @@ def make_release(env: EnvData, name):
repos_v = open_process(["git", "remote", "-v"])[0].splitlines()
urls = []
for line in repos_v:
origin = ''.join(itertools.takewhile(not str.isspace, line))
origin = ''.join(itertools.takewhile(str.isalpha, line))
print(f"Origin: {origin}")
urls.append(open_process(["git", "remote", "get-url", origin])[0])
urls = set(urls)
@ -263,6 +263,7 @@ def main():
subprocess.call(["git", "add", "*"])
subprocess.call(["git", "commit"])
cmake_text = load_cmake()
if args.major:
version_parts = split_version(cmake_text)[0]
if config.branch_on_major: