E3-1071: Update specifications
I have removed the partial specifications and have updated the full ones, which now only are called by the name of the release (i.e. without the -full
post-fix).
To create the updated specifications, I used the develop
version of the e3
package and the following script:
from pathlib import Path
import yaml
from e3.definition import BuildDefinition
from e3.fs.environment import InstalledEnvironment
from e3.module import ModuleSource
RELEASE = "2022q1"
BASE_VER = "7.0.6.1"
REQUIRE_VER = "4.0.0"
env = InstalledEnvironment(Path("/epics"), BASE_VER, REQUIRE_VER)
bdef = BuildDefinition(RELEASE, base_ref="", require_ref="")
mods = [mod for mod in env.modules_directory.iterdir() if mod.is_dir()]
for mod in env.modules_directory.iterdir():
if not mod.is_dir():
continue
versions = []
for ver in mod.iterdir():
if not ver.is_dir():
continue
meta_file = ver / f"{mod.name}_meta.yaml"
data = meta_file.read_text()
tag = yaml.safe_load(data)["wrapper_git_desc"]
versions.append(tag)
bdef.add_module(ModuleSource(mod.name, versions=versions))
bdef.to_specification(Path("/tmp/2022q1.yml"))