Ejemplo n.º 1
0
 def __init__(self):
     path = importlib_resources.files("aswfdocker.data").joinpath(
         "versions.yaml")
     if not path.exists():
         raise RuntimeError(
             f"versions.yaml file does not exist at path {path}")
     logger.debug("version path: %s (%s)", path, type(path))
     with path.open() as f:
         self._versions = yaml.load(f, Loader=yaml.FullLoader)
     self.groups = {
         constants.ImageType.IMAGE: self._versions["groups"]["image"],
         constants.ImageType.PACKAGE: self._versions["groups"]["package"],
     }
     self._version_infos = {}
     for version, v in self._versions["versions"].items():
         self._version_infos[version] = versioninfo.VersionInfo(
             version=version,
             major_version=v.get("major_version"),
             tags=v.get("tags", []),
             ci_common_version=v.get("ci_common_version"),
             package_versions=v.get("package_versions", {}),
             parent_versions=v.get("parent_versions", []),
             use_major_version_as_tag=v.get("use_major_version_as_tag",
                                            False),
         )
     for vi in self._version_infos.values():
         vi.all_package_versions = vi.package_versions.copy()
         for parent in vi.parent_versions:
             vi.all_package_versions.update(
                 self._version_infos[parent].package_versions)
Ejemplo n.º 2
0
 def __init__(self):
     with importlib_resources.files("aswfdocker.data").joinpath(
             "versions.yaml").open() as f:
         self._versions = yaml.load(f, Loader=yaml.FullLoader)
     self.groups = {
         constants.ImageType.IMAGE: self._versions["groups"]["image"],
         constants.ImageType.PACKAGE: self._versions["groups"]["package"],
     }
     self._version_infos = {}
     for version, v in self._versions["versions"].items():
         self._version_infos[version] = versioninfo.VersionInfo(
             version=version,
             major_version=v.get("major_version"),
             tags=v.get("tags", []),
             ci_common_version=v.get("ci_common_version"),
             package_versions=v.get("package_versions", {}),
             parent_versions=v.get("parent_versions", []),
             use_major_version_as_tag=v.get("use_major_version_as_tag",
                                            False),
         )
     for vi in self._version_infos.values():
         vi.all_package_versions = vi.package_versions.copy()
         for parent in vi.parent_versions:
             vi.all_package_versions.update(
                 self._version_infos[parent].package_versions)
Ejemplo n.º 3
0
    },
    ImageType.IMAGE: {
        "common": ["common"],
        "base": ["base"],
        "vfx1": ["openexr", "openvdb", "opencue"],
        "vfx2": ["ocio", "osl", "otio"],
        "usd": ["usd"],
        "vfxall": ["vfxall"],
    },
}

VERSION_INFO = {
    "1": versioninfo.VersionInfo(
        major_version="1",
        label="latest",
        ci_common_version="1",
        python_version="2.7",
        dts_version="6",
    ),
    "2": versioninfo.VersionInfo(
        major_version="2",
        label="preview",
        ci_common_version="2",
        python_version="3.7",
        dts_version="9",
    ),
    "2018": versioninfo.VersionInfo(
        major_version="2018",
        label=None,
        ci_common_version="1",
        python_version="2.7",
Ejemplo n.º 4
0
        ],
    },
    ImageType.IMAGE: {
        "common": ["common"],
        "base": ["base"],
        "vfx1": ["openexr", "openvdb", "ocio"],
        "vfx2": ["opencue", "usd"],
        "vfxall": ["vfxall"],
    },
}

VERSION_INFO = {
    "1":
    versioninfo.VersionInfo(
        major_version="1",
        label="latest",
        ci_common_version="1",
        python_version="2.7",
    ),
    "2018":
    versioninfo.VersionInfo(
        major_version="2018",
        label=None,
        ci_common_version="1",
        python_version="2.7",
    ),
    "2019":
    versioninfo.VersionInfo(
        major_version="2019",
        label="latest",
        ci_common_version="1",
        python_version="2.7",