Use pydantic #23

Merged
muellerr merged 4 commits from use-pydantic-for-python-serialization into main 2024-04-29 15:24:49 +02:00
Showing only changes of commit c184a5f0b3 - Show all commits

View File

@ -5,11 +5,12 @@ import argparse
import os import os
import sys import sys
import time import time
import platform
from typing import Final from typing import Final
# TODO: Should we make this configurable?
BUILDER = "cross" BUILDER = "cross"
USE_SSHPASS = False
# This script can easily be adapted to other remote machines, Linux boards and # This script can easily be adapted to other remote machines, Linux boards and
# remote configurations by tweaking / hardcoding these parameter, which generally are constant # remote configurations by tweaking / hardcoding these parameter, which generally are constant
@ -142,8 +143,8 @@ def bld_deploy_run(args):
# ssh_target_ident = f"{args.user}@{args.address}" # ssh_target_ident = f"{args.user}@{args.address}"
ssh_target_ident = "small_flatsat" ssh_target_ident = "small_flatsat"
sshpass_cmd = "" sshpass_cmd = ""
# if platform.system() != "Windows": if USE_SSHPASS and platform.system() != "Windows":
# sshpass_cmd = f"sshpass {sshpass_args}" sshpass_cmd = f"sshpass {sshpass_args}"
dest_path = f"{args.dest}/{args.app}" dest_path = f"{args.dest}/{args.app}"
if not args.source: if not args.source:
source_path = f"{os.getcwd()}/target/{args.tc}/{build_folder}/{args.app}" source_path = f"{os.getcwd()}/target/{args.tc}/{build_folder}/{args.app}"