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 cua-driver PyPI license metadata (#2129)

Francesco Bonacci08d611b9e689
diff --git a/libs/cua-driver/python/pyproject.toml b/libs/cua-driver/python/pyproject.toml
index eda96272ac..c5f69180b1 100644
--- a/libs/cua-driver/python/pyproject.toml
+++ b/libs/cua-driver/python/pyproject.toml
@@ -7,7 +7,7 @@ name = "cua-driver"
version = "0.7.0"
description = "Python wrapper for cua-driver - cross-platform MCP server for computer-use automation"
readme = "README.md"
-license = "MIT"
+license = { text = "MIT" }
authors = [
{ name = "TryCua", email = "[email protected]" }
]
diff --git a/libs/cua-driver/python/tests/test_build_wheel.py b/libs/cua-driver/python/tests/test_build_wheel.py
index 434e2077af..690b1954c3 100644
--- a/libs/cua-driver/python/tests/test_build_wheel.py
+++ b/libs/cua-driver/python/tests/test_build_wheel.py
@@ -21,3 +21,11 @@ def test_wheel_tags_are_platform_specific():
assert build_wheel.get_wheel_tag("linux", "arm64") == "py3-none-linux_aarch64"
assert build_wheel.get_wheel_tag("windows", "x86_64") == "py3-none-win_amd64"
assert build_wheel.get_wheel_tag("windows", "arm64") == "py3-none-win_arm64"
+
+
+def test_license_metadata_stays_legacy_upload_compatible():
+ pyproject = Path(__file__).resolve().parents[1] / "pyproject.toml"
+ pyproject_text = pyproject.read_text()
+
+ assert 'license = { text = "MIT" }' in pyproject_text
+ assert 'license = "MIT"' not in pyproject_text