Skip to content

Commit

Permalink
Merge pull request #443 from Chia-Network/bump-version-0.6.0
Browse files Browse the repository at this point in the history
Bump version 0.6.0
  • Loading branch information
arvidn committed Mar 21, 2024
2 parents 132b469 + 8838b99 commit 2a123c4
Show file tree
Hide file tree
Showing 20 changed files with 110 additions and 106 deletions.
80 changes: 40 additions & 40 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ members = [

[package]
name = "chia"
version = "0.5.2"
version = "0.6.0"
edition = "2021"
license = "Apache-2.0"
description = "A meta-crate that exports all of the Chia crates in the workspace."
Expand Down
18 changes: 11 additions & 7 deletions bump-version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import os
import re
import sys
from pathlib import Path
from typing import Callable, Set

v = sys.argv[1]
Expand All @@ -24,7 +25,8 @@
"crates/chia-wallet",
"crates/chia-client",
"crates/chia-ssl",
"crates/fuzz",
"crates/chia-consensus",
"crates/chia-consensus/fuzz",
"crates/chia-wallet/fuzz",
"crates/clvm-utils/fuzz",
]
Expand All @@ -51,8 +53,8 @@ def update_cargo(name: str, crates: Set[str]) -> None:

if split[0] == "version" and name in crates:
line = f'version = "{v}"\n'
elif split[0] in crates:
line = re.sub('version = "(>?=?)\d+\.\d+\.\d+"', f'version = "\\g<1>{v}"', line)
elif split[0] in crates and line.startswith(split[0] + " = "):
line = re.sub('version = "([>=^]?)\d+\.\d+\.\d+"', f'version = "\\g<1>{v}"', line)
subst += line

with open(f"{name}/Cargo.toml", "w") as f:
Expand All @@ -64,12 +66,14 @@ def update_cargo(name: str, crates: Set[str]) -> None:
crates.add(".")
crates.add("chia")

crate_names = set([Path(n).name for n in crates])

print("bumping version of crates:")
for c in crates:
for c in crate_names:
print(f" - {c}")

for c in our_crates:
update_cargo(c, crates)
update_cargo(c, crate_names)

update_cargo(".", crates)
update_cargo("wheel", crates)
update_cargo(".", crate_names)
update_cargo("wheel", crate_names)
6 changes: 3 additions & 3 deletions crates/chia-bls/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "chia-bls"
version = "0.5.1"
version = "0.6.0"
edition = "2021"
license = "Apache-2.0"
description = "BLS signature, verification and aggregation funcions for the Chia blockchain"
Expand All @@ -12,8 +12,8 @@ repository = "https://github.com/Chia-Network/chia_rs"
py-bindings = ["dep:pyo3", "chia_py_streamable_macro", "chia-traits/py-bindings"]

[dependencies]
chia-traits = { version = "0.5.1", path = "../chia-traits" }
chia_py_streamable_macro = { version = "0.5.1", path = "../chia_py_streamable_macro", optional = true }
chia-traits = { version = "0.6.0", path = "../chia-traits" }
chia_py_streamable_macro = { version = "0.6.0", path = "../chia_py_streamable_macro", optional = true }
tiny-bip39 = "1.0.0"
anyhow = "1.0.71"
sha2 = "0.10.8"
Expand Down
6 changes: 3 additions & 3 deletions crates/chia-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "chia-client"
version = "0.5.1"
version = "0.6.0"
edition = "2021"
license = "Apache-2.0"
description = "Chia light client and async peer connections."
Expand All @@ -9,8 +9,8 @@ homepage = "https://github.com/Chia-Network/chia_rs"
repository = "https://github.com/Chia-Network/chia_rs"

[dependencies]
chia-protocol = { version = "0.5.1", path = "../chia-protocol" }
chia-traits = { version = "0.5.1", path = "../chia-traits" }
chia-protocol = { version = "0.6.0", path = "../chia-protocol" }
chia-traits = { version = "0.6.0", path = "../chia-traits" }
tokio = { version = "1.32.0", features = ["rt", "sync"] }
tokio-tungstenite = "0.21.0"
futures-util = "0.3.28"
Expand Down
14 changes: 7 additions & 7 deletions crates/chia-consensus/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "chia-consensus"
version = "0.5.2"
version = "0.6.0"
edition = "2021"
license = "Apache-2.0"
description = "Utility functions and types used by the Chia blockchain full node"
Expand All @@ -15,12 +15,12 @@ py-bindings = ["dep:pyo3"]
clvmr = "0.6.1"
hex = "0.4.3"
pyo3 = { version = ">=0.19.0", optional = true }
clvm-utils = { version = "0.5.1", path = "../clvm-utils" }
chia-traits = { version = "0.5.2", path = "../chia-traits" }
clvm-traits = { version = "0.5.2", path = "../clvm-traits" }
clvm-derive = { version = "0.5.2", path = "../clvm-derive" }
chia-protocol = { version = "0.5.1", path = "../chia-protocol" }
chia-wallet = { version = "0.5.1", path = "../chia-wallet" }
clvm-utils = { version = "0.6.0", path = "../clvm-utils" }
chia-traits = { version = "0.6.0", path = "../chia-traits" }
clvm-traits = { version = "0.6.0", path = "../clvm-traits" }
clvm-derive = { version = "0.6.0", path = "../clvm-derive" }
chia-protocol = { version = "0.6.0", path = "../chia-protocol" }
chia-wallet = { version = "0.6.0", path = "../chia-wallet" }
hex-literal = "0.4.1"
thiserror = "1.0.44"

Expand Down
2 changes: 1 addition & 1 deletion crates/chia-consensus/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "chia-fuzz"
version = "0.5.1"
version = "0.6.0"
authors = ["Automatically generated"]
publish = false
edition = "2021"
Expand Down

0 comments on commit 2a123c4

Please sign in to comment.