Version: 0.1.0 | Version: 0.1.0 | ||||
Depends: neo-buffer 0.1.0 | Depends: neo-buffer 0.1.0 | ||||
Depends: taywee-args 0.0.0 | |||||
Depends: spdlog 1.4.2 | Depends: spdlog 1.4.2 | ||||
Depends: ms-wil 2019.11.10 | Depends: ms-wil 2019.11.10 | ||||
Depends: range-v3 0.9.1 | Depends: range-v3 0.9.1 |
Remote-Package: nlohmann-json 3.7.1; git url=https://github.com/vector-of-bool/json.git ref=dds/3.7.1 | |||||
Remote-Package: range-v3 0.9.1; git url=https://github.com/vector-of-bool/range-v3.git ref=dds/0.9.1 | |||||
Remote-Package: ms-wil 2019.11.10; git url=https://github.com/vector-of-bool/wil.git ref=dds/2019.11.10 | |||||
Remote-Package: spdlog 1.4.2; git url=https://github.com/vector-of-bool/spdlog.git ref=dds/1.4.2 | |||||
# XXX: Don't depend on a moving revision! | |||||
Remote-Package: neo-buffer 0.1.0; git url=https://github.com/vector-of-bool/neo-buffer.git ref=develop |
from argparse import ArgumentParser | from argparse import ArgumentParser | ||||
from dds_ci import paths | |||||
def add_tc_arg(parser: ArgumentParser, *, required=True) -> None: | def add_tc_arg(parser: ArgumentParser, *, required=True) -> None: | ||||
parser.add_argument( | parser.add_argument( | ||||
'--exe', | '--exe', | ||||
'-e', | '-e', | ||||
help='Path to a DDS executable to use', | help='Path to a DDS executable to use', | ||||
require=required) | |||||
required=required) |
import argparse | |||||
from pathlib import Path | |||||
from dds_ci import cli, proc, paths | |||||
def self_deps_build(exe: Path, toolchain: str, repo_dir: Path, | |||||
remote_list: Path) -> None: | |||||
proc.check_run( | |||||
exe, | |||||
'deps', | |||||
'build', | |||||
('--repo-dir', repo_dir), | |||||
('-T', toolchain), | |||||
) | |||||
def main(): | |||||
parser = argparse.ArgumentParser() | |||||
cli.add_dds_exe_arg(parser) | |||||
cli.add_tc_arg(parser) | |||||
parser.add_argument('--repo-dir', default=paths.SELF_TEST_REPO_DIR) | |||||
args = parser.parse_args() | |||||
self_deps_build( | |||||
Path(args.exe), args.toolchain, args.repo_dir, | |||||
paths.PROJECT_ROOT / 'remote.dds') | |||||
if __name__ == "__main__": | |||||
main() |
from pathlib import Path | from pathlib import Path | ||||
from dds_ci import proc | |||||
from dds_ci import proc, paths | |||||
PROJECT_ROOT = Path(__file__).absolute().parent.parent | PROJECT_ROOT = Path(__file__).absolute().parent.parent | ||||
if __name__ == "__main__": | if __name__ == "__main__": | ||||
self_deps_get(PROJECT_ROOT / '_build/dds', | |||||
PROJECT_ROOT / '_build/_self-repo') | |||||
self_deps_get(paths.CUR_BUILT_DDS, paths.SELF_TEST_REPO_DIR) |