|
11 | 11 |
|
12 | 12 | EPICS_REPO_URL = "https://github.com/ISISComputingGroup/EPICS.git" |
13 | 13 | IBEX_REPO_URL = "https://github.com/ISISComputingGroup/ibex_gui.git" |
14 | | -GENIE_PYTHON_URL = "https://github.com/ISISComputingGroup/genie_python.git" |
| 14 | +UKTENA_URL = "https://github.com/ISISComputingGroup/uktena.git" |
15 | 15 | JSON_BOURNE_URL = "https://github.com/ISISComputingGroup/JSON_bourne.git" |
16 | 16 |
|
17 | 17 | EPICS_DIR = "EPICS" |
18 | 18 | IBEX_DIR = "IBEX" |
19 | 19 | SCRIPT_GEN_DIR = "SCRIPT_GEN" |
20 | | -GENIE_PYTHON_DIR = "genie_python" |
| 20 | +UKTENA_DIR = "uktena" |
21 | 21 | JSON_BOURNE_DIR = "JSON_bourne" |
22 | 22 |
|
23 | 23 | INSTETC_TEMPLATE_LOCAL_PATH = os.path.join( |
|
45 | 45 | ) |
46 | 46 | SCRIPT_GENERATOR_POM_ABSOLUTE_PATH = os.path.join(SCRIPT_GEN_DIR, SCRIPT_GENERATOR_POM_LOCAL_PATH) |
47 | 47 |
|
48 | | -GENIE_PYTHON_VERSION_LOCAL_PATH = os.path.join("Lib", "site-packages", "genie_python", "version.py") |
49 | | -GENIE_PYTHON_VERSION_ABSOLUTE_PATH = os.path.join(GENIE_PYTHON_DIR, GENIE_PYTHON_VERSION_LOCAL_PATH) |
50 | | - |
51 | 48 |
|
52 | 49 | def write_instetc_version(version: str): |
53 | 50 | logging.info(f"Writing version '{version}' to '{INSTETC_TEMPLATE_ABSOLUTE_PATH}'.") |
@@ -97,13 +94,6 @@ def write_gui_version(manifest_path: str, pom_path: str, version: str): |
97 | 94 | tree.write(pom_path) |
98 | 95 |
|
99 | 96 |
|
100 | | -def write_genie_python_version(version: str): |
101 | | - logging.info(f"Writing version '{version}' to '{GENIE_PYTHON_VERSION_ABSOLUTE_PATH}'.") |
102 | | - |
103 | | - with open(GENIE_PYTHON_VERSION_ABSOLUTE_PATH, "w") as file: |
104 | | - file.write(f'VERSION = "{version}"\n') |
105 | | - |
106 | | - |
107 | 97 | class ReleaseBranch: |
108 | 98 | """Wrapper around a Repo object. Used to perform Git operations on a release branch.""" |
109 | 99 |
|
@@ -267,12 +257,10 @@ def push(self, submodules: bool = False): |
267 | 257 | ) |
268 | 258 | script_gen.push() |
269 | 259 |
|
270 | | - if os.getenv("GENIE_PYTHON") == "true": |
271 | | - genie_python = ReleaseBranch() |
272 | | - genie_python.create(GENIE_PYTHON_URL, GENIE_PYTHON_DIR, f"Release_{args.version}") |
273 | | - write_genie_python_version(args.version) |
274 | | - genie_python.commit([GENIE_PYTHON_VERSION_LOCAL_PATH], f"Update version to {args.version}.") |
275 | | - genie_python.push() |
| 260 | + if os.getenv("UKTENA") == "true": |
| 261 | + uktena = ReleaseBranch() |
| 262 | + uktena.create(UKTENA_URL, UKTENA_DIR, f"Release_{args.version}") |
| 263 | + uktena.push() |
276 | 264 |
|
277 | 265 | if os.getenv("JSON_BOURNE") == "true": |
278 | 266 | json_bourne = ReleaseBranch() |
|
0 commit comments