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.

feat(cua-fleet): promote cua-train 0.1.4

r33drichards4ffdb0769030
diff --git a/libs/fleet/cua-fleet/cua_fleet/__init__.py b/libs/fleet/cua-fleet/cua_fleet/__init__.py
index 4f9ab36229..a67758502a 100644
--- a/libs/fleet/cua-fleet/cua_fleet/__init__.py
+++ b/libs/fleet/cua-fleet/cua_fleet/__init__.py
@@ -4,4 +4,4 @@ from cua_train import TrainClient
__all__ = ["TrainClient"]
-__version__ = "0.0.7"
+__version__ = "0.0.8"
diff --git a/libs/fleet/cua-fleet/pyproject.toml b/libs/fleet/cua-fleet/pyproject.toml
index f271a86270..0e4148b29b 100644
--- a/libs/fleet/cua-fleet/pyproject.toml
+++ b/libs/fleet/cua-fleet/pyproject.toml
@@ -1,9 +1,9 @@
[project]
name = "cua-fleet"
-version = "0.0.7"
+version = "0.0.8"
description = "Cua Fleet facade for the Cua Cloud Python SDK"
requires-python = ">=3.10"
-dependencies = ["cua-train==0.1.3"]
+dependencies = ["cua-train==0.1.4"]
[build-system]
requires = ["hatchling"]
diff --git a/libs/fleet/cua-fleet/scripts/repackage_cua_train_wheel.py b/libs/fleet/cua-fleet/scripts/repackage_cua_train_wheel.py
index 7a53889542..2c0ae16637 100644
--- a/libs/fleet/cua-fleet/scripts/repackage_cua_train_wheel.py
+++ b/libs/fleet/cua-fleet/scripts/repackage_cua_train_wheel.py
@@ -14,7 +14,7 @@ import sys
import zipfile
SOURCE_NAME = "cua-train"
-SOURCE_VERSION = "0.1.3"
+SOURCE_VERSION = "0.1.4"
DESTINATION_NAME = "cua-fleet"
WHEEL_FILENAME = re.compile(
r"^(?P<distribution>[A-Za-z0-9_]+)-(?P<version>[^-]+)-py3-none-(?P<platform>[^-]+)\.whl$"
@@ -126,7 +126,7 @@ def repack(
metadata = parse_metadata(entries[metadata_name])
if metadata.get("Name") != SOURCE_NAME or metadata.get("Version") != SOURCE_VERSION:
- raise WheelError("source METADATA does not identify cua-train==0.1.3")
+ raise WheelError("source METADATA does not identify cua-train==0.1.4")
wheel_metadata = entries[wheel_name].decode()
if (
"Root-Is-Purelib: false" not in wheel_metadata
@@ -186,7 +186,7 @@ def verify(path: Path, source: Path | None = None) -> None:
if metadata.get("Name") != DESTINATION_NAME or metadata.get("Version") != version:
raise WheelError("destination METADATA does not match the wheel filename")
if f"Requires-Dist: {SOURCE_NAME} == {SOURCE_VERSION}" not in metadata_text.splitlines():
- raise WheelError("destination METADATA must pin cua-train==0.1.3")
+ raise WheelError("destination METADATA must pin cua-train==0.1.4")
wheel_metadata = entries[wheel_name].decode()
if (
"Root-Is-Purelib: false" not in wheel_metadata
diff --git a/libs/fleet/cua-fleet/tests/test_metadata.py b/libs/fleet/cua-fleet/tests/test_metadata.py
index 41644c93a8..2954c4cfee 100644
--- a/libs/fleet/cua-fleet/tests/test_metadata.py
+++ b/libs/fleet/cua-fleet/tests/test_metadata.py
@@ -6,8 +6,8 @@ from pathlib import Path
def test_metadata_pins_published_cua_train() -> None:
project = tomllib.loads((Path(__file__).parents[1] / "pyproject.toml").read_text())["project"]
- assert project["version"] == "0.0.7"
- assert project["dependencies"] == ["cua-train==0.1.3"]
+ assert project["version"] == "0.0.8"
+ assert project["dependencies"] == ["cua-train==0.1.4"]
def test_publish_prepare_checks_out_canonical_metadata() -> None:
diff --git a/libs/fleet/cua-fleet/tests/test_repackage_cua_train_wheel.py b/libs/fleet/cua-fleet/tests/test_repackage_cua_train_wheel.py
index 63ff9abdf2..f898860382 100644
--- a/libs/fleet/cua-fleet/tests/test_repackage_cua_train_wheel.py
+++ b/libs/fleet/cua-fleet/tests/test_repackage_cua_train_wheel.py
@@ -26,12 +26,12 @@ def _csv(rows: list[list[str]]) -> bytes:
def _write_source_wheel(path: Path) -> dict[str, bytes]:
- dist_info = "cua_train-0.1.3.dist-info"
+ dist_info = "cua_train-0.1.4.dist-info"
entries = {
"cua_train/__init__.py": b"TrainClient = object\n",
"fleet_sdk/__init__.py": b"CyclopsClient = object\n",
"fleet_sdk/libcyclops_sdk.so": b"native payload",
- f"{dist_info}/METADATA": b"Metadata-Version: 2.4\nName: cua-train\nVersion: 0.1.3\nDescription-Content-Type: text/markdown\n\n",
+ f"{dist_info}/METADATA": b"Metadata-Version: 2.4\nName: cua-train\nVersion: 0.1.4\nDescription-Content-Type: text/markdown\n\n",
f"{dist_info}/WHEEL": b"Wheel-Version: 1.0\nRoot-Is-Purelib: false\nTag: py3-none-manylinux_2_34_x86_64\n",
}
record_name = f"{dist_info}/RECORD"
@@ -45,14 +45,14 @@ def _write_source_wheel(path: Path) -> dict[str, bytes]:
def test_repack_updates_distribution_metadata_and_pins_train(tmp_path: Path):
- source = tmp_path / "cua_train-0.1.3-py3-none-manylinux_2_34_x86_64.whl"
+ source = tmp_path / "cua_train-0.1.4-py3-none-manylinux_2_34_x86_64.whl"
source_entries = _write_source_wheel(source)
destination = repack(
- source, "0.0.7", tmp_path / "dist", hashlib.sha256(source.read_bytes()).hexdigest()
+ source, "0.0.8", tmp_path / "dist", hashlib.sha256(source.read_bytes()).hexdigest()
)
- assert destination.name == "cua_fleet-0.0.7-py3-none-manylinux_2_34_x86_64.whl"
+ assert destination.name == "cua_fleet-0.0.8-py3-none-manylinux_2_34_x86_64.whl"
verify(destination, source)
with zipfile.ZipFile(destination) as archive:
assert archive.read("cua_train/__init__.py") == source_entries["cua_train/__init__.py"]
@@ -60,16 +60,16 @@ def test_repack_updates_distribution_metadata_and_pins_train(tmp_path: Path):
archive.read("fleet_sdk/libcyclops_sdk.so")
== source_entries["fleet_sdk/libcyclops_sdk.so"]
)
- metadata = archive.read("cua_fleet-0.0.7.dist-info/METADATA").decode()
+ metadata = archive.read("cua_fleet-0.0.8.dist-info/METADATA").decode()
assert "Name: cua-fleet" in metadata
- assert "Version: 0.0.7" in metadata
+ assert "Version: 0.0.8" in metadata
assert "Description-Content-Type: text/plain" in metadata
- assert "Requires-Dist: cua-train == 0.1.3" in metadata
+ assert "Requires-Dist: cua-train == 0.1.4" in metadata
def test_repack_rejects_unpinned_source(tmp_path: Path):
- source = tmp_path / "cua_train-0.1.3-py3-none-manylinux_2_34_x86_64.whl"
+ source = tmp_path / "cua_train-0.1.4-py3-none-manylinux_2_34_x86_64.whl"
_write_source_wheel(source)
with pytest.raises(WheelError, match="SHA-256 mismatch"):
- repack(source, "0.0.7", tmp_path / "dist", "0" * 64)
+ repack(source, "0.0.8", tmp_path / "dist", "0" * 64)