Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix(sandbox): align bump config with package version (#2792)

r33drichardsced266caa4c0
diff --git a/.github/scripts/tests/test_cua_sandbox_release_wiring.py b/.github/scripts/tests/test_cua_sandbox_release_wiring.py
new file mode 100644
index 0000000000..b9c6a64767
--- /dev/null
+++ b/.github/scripts/tests/test_cua_sandbox_release_wiring.py
@@ -0,0 +1,26 @@
+"""Regression tests for cua-sandbox release-bump wiring."""
+
+import configparser
+from pathlib import Path
+import tomllib
+import unittest
+
+
+REPO_ROOT = Path(__file__).resolve().parents[3]
+SANDBOX_ROOT = REPO_ROOT / "libs/python/cua-sandbox"
+
+
+class TestCuaSandboxReleaseWiring(unittest.TestCase):
+ """Keep the legacy bump configuration synchronized with package metadata."""
+
+ def test_bump_config_tracks_the_current_package_version(self) -> None:
+ config = configparser.ConfigParser()
+ config.read(SANDBOX_ROOT / ".bumpversion.cfg")
+ with (SANDBOX_ROOT / "pyproject.toml").open("rb") as pyproject_file:
+ project = tomllib.load(pyproject_file)["project"]
+
+ self.assertEqual(config["bumpversion"]["current_version"], project["version"])
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/libs/python/cua-sandbox/.bumpversion.cfg b/libs/python/cua-sandbox/.bumpversion.cfg
index b0c6be685b..6771277437 100644
--- a/libs/python/cua-sandbox/.bumpversion.cfg
+++ b/libs/python/cua-sandbox/.bumpversion.cfg
@@ -1,5 +1,5 @@
[bumpversion]
-current_version = 0.1.19
+current_version = 0.1.20
commit = True
tag = True
tag_name = sandbox-v{new_version}