From 60804048943ff51185aecbf807dcf0b52210133f Mon Sep 17 00:00:00 2001 From: dorimedini-starkware Date: Wed, 23 Oct 2024 10:10:18 +0300 Subject: [PATCH] feat(ci): small QoL improvements to publish_crates.py (#1542) Signed-off-by: Dori Medini --- scripts/publish_crates.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) mode change 100644 => 100755 scripts/publish_crates.py diff --git a/scripts/publish_crates.py b/scripts/publish_crates.py old mode 100644 new mode 100755 index 1111181561..43f3e7756c --- a/scripts/publish_crates.py +++ b/scripts/publish_crates.py @@ -1,7 +1,9 @@ +#!/usr/bin/env python3.9 + import argparse import subprocess import sys -from typing import List, Tuple +from typing import List import toml import json import asyncio @@ -103,7 +105,10 @@ async def main(): description="Publish a crate and it's dependencies in the local workspace." ) parser.add_argument( - "--crate", type=str, help="Crate to publish (dependencies will also be published)." + "--crate", + required=True, + type=str, + help="Crate to publish (dependencies will also be published).", ) parser.add_argument("--dry_run", required=False, action="store_true", help="Dry run.") args = parser.parse_args()