MCPcopy Create free account
hub / github.com/F-Stack/f-stack / __init__

Method __init__

dpdk/dts/framework/utils.py:145–164  ·  view source on GitHub ↗
(
        self,
        git_ref: str,
        output_dir: str,
        tar_compression_format: _TarCompressionFormat = _TarCompressionFormat.xz,
    )

Source from the content-addressed store, hash-verified

143 _tarball_path: Path | None
144
145 def __init__(
146 self,
147 git_ref: str,
148 output_dir: str,
149 tar_compression_format: _TarCompressionFormat = _TarCompressionFormat.xz,
150 ):
151 self._git_ref = git_ref
152 self._tar_compression_format = tar_compression_format
153
154 self._tarball_dir = Path(output_dir, "tarball")
155
156 self._get_commit_id()
157 self._create_tarball_dir()
158
159 self._tarball_name = (
160 f"dpdk-tarball-{self._git_ref}.tar.{self._tar_compression_format.value}"
161 )
162 self._tarball_path = self._check_tarball_path()
163 if not self._tarball_path:
164 self._create_tarball()
165
166 def _get_commit_id(self) -> None:
167 result = subprocess.run(

Callers

nothing calls this directly

Calls 4

_get_commit_idMethod · 0.95
_create_tarball_dirMethod · 0.95
_check_tarball_pathMethod · 0.95
_create_tarballMethod · 0.95

Tested by

no test coverage detected