INNER CODE UNIT · Python

supports

ExplosionEngine/Explosion · ThirdParty/ConanRecipes/build_recipes.py:73

    def supports(self, host: str) -> bool:
        return host in self.platforms

    @property
    def reference(self) -> str:
        return f"{self.name}/{self.version}"


def list_versions(data: dict) -> list[str]:
    sources = data.get("sources")
    if isinstance(sources, dict) and sources:
        return [str(v) for v in sources]
    versions = data.get("versions")
    if isinstance(versions, list) and versions:
        return [str(v) for v in versions]
    return []

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…