INNER CODE UNIT · Python
configure_remote
ExplosionEngine/Explosion · ThirdParty/ConanRecipes/build_recipes.py:348
def configure_remote(args: argparse.Namespace):
if args.remote_url:
if run([args.conan, "remote", "add", "--force", args.remote, args.remote_url]) != 0:
sys.exit("error: failed to register remote")
if args.remote_user is not None:
login = [args.conan, "remote", "login", args.remote, args.remote_user]
redact: set[str] = set()
if args.remote_password is not None:
login += ["-p", args.remote_password]
redact.add(args.remote_password)
if run(login, redact=redact) != 0:
sys.exit("error: failed to log in to remote")
def upload_all(args: argparse.Namespace, recipes: list[Recipe]):
print("\n=== uploading packages ===", flush=True)
for recipe in recipes: