INNER CODE UNIT · Python
upload_all
ExplosionEngine/Explosion · ThirdParty/ConanRecipes/build_recipes.py:363
def upload_all(args: argparse.Namespace, recipes: list[Recipe]):
print("\n=== uploading packages ===", flush=True)
for recipe in recipes:
print(f"\n--- uploading {recipe.reference} ---", flush=True)
if run([args.conan, "upload", recipe.reference, "-r", args.remote, "--confirm"]) != 0:
sys.exit(f"error: failed to upload {recipe.reference}")
print(f"\nUploaded {len(recipes)} package(s) to '{args.remote}'.", flush=True)
def print_summary(built, skipped, local, present, failed: Recipe | None = None):
print("\n" + "=" * 60, flush=True)
print("SUMMARY", flush=True)
print("=" * 60, flush=True)
for recipe in built:
print(f" [OK] {recipe.reference}", flush=True)
for recipe in present:
print(f" [REMOTE] {recipe.reference} (already published)", flush=True)
for recipe in local: