Prepare for 1.0.2 release

This commit is contained in:
Nick Lewycky
2021-02-04 19:03:53 -08:00
parent 77f2e85473
commit 9e1cec01be
30 changed files with 175 additions and 164 deletions

View File

@@ -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')