Add tagging config to pass params easier (#2234)

* Add tagging config to pass params easier

* Shorter function signatures
This commit is contained in:
Ayaz Salikhov
2025-02-22 01:05:54 +00:00
committed by GitHub
parent 18e09a7872
commit 8fc97cb36b
15 changed files with 148 additions and 205 deletions

22
tagging/utils/config.py Normal file
View File

@@ -0,0 +1,22 @@
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
from dataclasses import dataclass
from pathlib import Path
@dataclass(frozen=True)
class Config:
registry: str = ""
owner: str = ""
image: str = ""
variant: str = ""
platform: str = ""
tags_dir: Path = Path()
hist_lines_dir: Path = Path()
manifests_dir: Path = Path()
repository: str = ""
def full_image(self) -> str:
return f"{self.registry}/{self.owner}/{self.image}"