Compare commits

...

2 commits

Author SHA1 Message Date
23b3fce7cb
functions 2025-05-12 22:39:12 +02:00
c9b019c017
profile 2025-05-12 22:26:06 +02:00

View file

@ -14,18 +14,59 @@ META = f"{ROOT}/meta"
STREAMS = f"{META}/simplestreams/v1"
WANTED = {
"architectures": [
"amd64",
"arm64",
],
"images": {
"debian",
"arm64",
},
TYPE = (
"default",
)
TYPES = (
"default",
"cloud",
)
ARCHITECTURES_TYPE = {
"amd64": TYPE,
"arm64": TYPE,
}
ARCHITECTURES_TYPES = {
"amd64": TYPES,
"arm64": TYPES,
}
EL = {
"9": ARCHITECTURES_TYPES,
"8": ARCHITECTURES_TYPES,
}
def architectures_type(*versions: str) -> dict:
return {version: ARCHITECTURES_TYPE for version in versions}
def architectures_types(*versions: str) -> dict:
return {version: ARCHITECTURES_TYPES for version in versions}
PROFILE = {
"nixos": architectures_type("24.11"),
# apk
"alpine": architectures_types("3.21", "3.20"),
# deb
"debian": architectures_types("bookworm", "bullseye"),
"ubuntu": architectures_types("noble", "jammy"),
# rpm
"almalinux": EL,
"fedora": architectures_types("42", "41"),
"opensuse": {
"15.6": ARCHITECTURES_TYPES,
"15.5": ARCHITECTURES_TYPE,
},
"rockylinux": EL,
# rolling
"archlinux": {
"current": {
"amd64": TYPES,
"arm64": TYPE,
},
},
}
def main() -> None:
root = Path(__file__).resolve().parent / "root"