Skip to content

Commit

Permalink
Fix publish.py script
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Jan 23, 2023
1 parent 6d539e0 commit 5a05b75
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions scripts/publish.py
Expand Up @@ -46,6 +46,7 @@
# compiler by default otherwise it won't work standalone
"publish_features": {
"wasmer-cli": "default,cranelift",
"wasmer-wasi": "sys",
},
# workspace members we want to publish but whose path doesn't start by
# "./lib/"
Expand Down Expand Up @@ -173,21 +174,6 @@ def return_dependencies(toml) -> typing.List[str]:
dependencies = return_dependencies(member_data)
crates.append(Crate(dependencies, member_data, cargo_file_path=member))

invalids: typing.List[str] = []
for crate in crates:
if crate.version != self.version:
print(
f"Crate {crate.name} is version {crate.version} but"
f" we're publishing for version {self.version}"
)
invalids.append(crate.name)

if len(invalids) > 0:
raise Exception(
f"Some crates have a different version than the"
f" one we're publishing ({self.version}): {invalids}"
)

self.crates = crates
self.crate_index: typing.Dict[str, Crate] = {c.name: c for c in crates}

Expand Down

0 comments on commit 5a05b75

Please sign in to comment.