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.

release(cua-fleet): 0.0.9 — repin to cua-train 0.1.5 (native-CRD fleet_sdk) (#6352)

r33drichards65d74968e68d
diff --git a/libs/fleet/cua-fleet/pyproject.toml b/libs/fleet/cua-fleet/pyproject.toml
index 0e4148b29b..cc5a13bb08 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.8"
+version = "0.0.9"
description = "Cua Fleet facade for the Cua Cloud Python SDK"
requires-python = ">=3.10"
-dependencies = ["cua-train==0.1.4"]
+dependencies = ["cua-train==0.1.5"]
[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 2c0ae16637..fe57f36086 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.4"
+SOURCE_VERSION = "0.1.5"
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.4")
+ raise WheelError("source METADATA does not identify cua-train==0.1.5")
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.4")
+ raise WheelError("destination METADATA must pin cua-train==0.1.5")
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 4064763fc0..214ba6489e 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.8"
- assert project["dependencies"] == ["cua-train==0.1.4"]
+ assert project["version"] == "0.0.9"
+ assert project["dependencies"] == ["cua-train==0.1.5"]
def test_publish_prepare_checks_out_canonical_metadata() -> None:
@@ -22,14 +22,14 @@ def test_publish_prepare_checks_out_canonical_metadata() -> None:
assert "@v" not in workflow.read_text()
-def test_publish_repackages_the_published_cua_train_0_1_4_wheels() -> None:
+def test_publish_repackages_the_published_cua_train_0_1_5_wheels() -> None:
workflow = (Path(__file__).parents[3] / ".github/workflows/cua-fleet-publish.yml").read_text()
expected_sources = {
- "cua_train-0.1.4-py3-none-manylinux_2_34_x86_64.whl": "8b2c20a603772408ad25629e5fa16bfc36bb81ed6a876fd99f1ccfab5c242252",
- "cua_train-0.1.4-py3-none-manylinux_2_34_aarch64.whl": "d0ea3e67a67c394ca05fad227ddd53987b53fbfbff907e43aa2ac6476f941df4",
- "cua_train-0.1.4-py3-none-macosx_10_12_x86_64.whl": "20e59a46ae5bc20bc48e34bc8b0c8b623682068be5c31b430477bdf57e946745",
- "cua_train-0.1.4-py3-none-macosx_11_0_arm64.whl": "cf5f4e26f77b4438849b5e6216829422980150439a88aa9a62a78dab74a95eb6",
+ "cua_train-0.1.5-py3-none-manylinux_2_34_x86_64.whl": "72824b317888d1bbf21585907c8291ce648007e052e92c1e4cd8d475750b57a5",
+ "cua_train-0.1.5-py3-none-manylinux_2_34_aarch64.whl": "d6adca168fbd9777ef3fccf21f0d39b180cde440494f8f0ff7d47a46de2e6d5a",
+ "cua_train-0.1.5-py3-none-macosx_10_12_x86_64.whl": "605cdd794edbd04a88f5a99f3713fd5b87fa8c634285839015a61894544cd1d1",
+ "cua_train-0.1.5-py3-none-macosx_11_0_arm64.whl": "82ec2795fad892dc6238fcbcabb861e78d214f6603d765419a2b10fddef05fda",
}
for wheel, digest in expected_sources.items():
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 f898860382..9235eafeaf 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.4.dist-info"
+ dist_info = "cua_train-0.1.5.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.4\nDescription-Content-Type: text/markdown\n\n",
+ f"{dist_info}/METADATA": b"Metadata-Version: 2.4\nName: cua-train\nVersion: 0.1.5\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,7 +45,7 @@ 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.4-py3-none-manylinux_2_34_x86_64.whl"
+ source = tmp_path / "cua_train-0.1.5-py3-none-manylinux_2_34_x86_64.whl"
source_entries = _write_source_wheel(source)
destination = repack(
@@ -64,11 +64,11 @@ def test_repack_updates_distribution_metadata_and_pins_train(tmp_path: Path):
assert "Name: cua-fleet" in metadata
assert "Version: 0.0.8" in metadata
assert "Description-Content-Type: text/plain" in metadata
- assert "Requires-Dist: cua-train == 0.1.4" in metadata
+ assert "Requires-Dist: cua-train == 0.1.5" in metadata
def test_repack_rejects_unpinned_source(tmp_path: Path):
- source = tmp_path / "cua_train-0.1.4-py3-none-manylinux_2_34_x86_64.whl"
+ source = tmp_path / "cua_train-0.1.5-py3-none-manylinux_2_34_x86_64.whl"
_write_source_wheel(source)
with pytest.raises(WheelError, match="SHA-256 mismatch"):