mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-16 17:18:57 +00:00
Prepare for 1.0.2 release
This commit is contained in:
@@ -21,7 +21,7 @@ except ImportError:
|
||||
|
||||
|
||||
# TODO: find this automatically
|
||||
target_version = "1.0.1"
|
||||
target_version = "1.0.2"
|
||||
|
||||
# TODO: generate this by parsing toml files
|
||||
dep_graph = {
|
||||
@@ -95,20 +95,21 @@ def is_crate_already_published(crate_name: str) -> bool:
|
||||
return False
|
||||
|
||||
return target_version == found_string
|
||||
|
||||
|
||||
def publish_crate(crate: str):
|
||||
starting_dir = os.getcwd()
|
||||
os.chdir("lib/{}".format(location[crate]))
|
||||
|
||||
global no_dry_run
|
||||
if no_dry_run:
|
||||
output = subprocess.run(["cargo", "publish"], env={'WASMER_PUBLISH_SCRIPT_IS_RUNNING': '1'})
|
||||
output = subprocess.run(["cargo", "publish"])
|
||||
else:
|
||||
print("In dry-run: not publishing crate `{}`".format(crate))
|
||||
|
||||
os.chdir(starting_dir)
|
||||
|
||||
def main():
|
||||
os.environ['WASMER_PUBLISH_SCRIPT_IS_RUNNING'] = '1'
|
||||
parser = argparse.ArgumentParser(description='Publish the Wasmer crates to crates.io')
|
||||
parser.add_argument('--no-dry-run', default=False, action='store_true',
|
||||
help='Run the script without actually publishing anything to crates.io')
|
||||
|
||||
Reference in New Issue
Block a user