nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: wizardsardine/liana
Pull request #1329 (2024-09-12 13:35:56)

liana: v7.0rc1


Patch:
diff --git a/contrib/release/release.sh b/contrib/release/release.sh
index 47af93c7..278e8795 100755
--- a/contrib/release/release.sh
+++ b/contrib/release/release.sh
@@ -7,7 +7,7 @@
 
 set -ex
 
-VERSION="${VERSION:-"7.0"}"
+VERSION="${VERSION:-"7.0rc1"}"
 LIANA_PREFIX="liana-$VERSION"
 LINUX_DIR_NAME="$LIANA_PREFIX-x86_64-linux-gnu"
 LINUX_ARCHIVE="$LINUX_DIR_NAME.tar.gz"
diff --git a/src/lib.rs b/src/lib.rs
index ea2f534d..467e67fe 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -81,7 +81,7 @@ pub struct Version {
 
 impl fmt::Display for Version {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
-        write!(f, "{}.{}.{}-dev", self.major, self.minor, self.patch)
+        write!(f, "{}.{}.{}-rc1", self.major, self.minor, self.patch)
     }
 }
 


Test patch:
diff --git a/tests/test_rpc.py b/tests/test_rpc.py
index 66c94d5a..b1b34bd4 100644
--- a/tests/test_rpc.py
+++ b/tests/test_rpc.py
@@ -24,7 +24,7 @@ from test_framework.utils import (
 def test_getinfo(lianad):
     res = lianad.rpc.getinfo()
     assert "timestamp" in res.keys()
-    assert res["version"] == "7.0.0-dev"
+    assert res["version"] == "7.0.0-rc1"
     assert res["network"] == "regtest"
     wait_for(lambda: lianad.rpc.getinfo()["block_height"] == 101)
     res = lianad.rpc.getinfo()