unity-devkit 0.1.22__tar.gz → 0.1.23__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/PKG-INFO +1 -1
  2. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/pyproject.toml +1 -1
  3. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/src/unity_devkit/player_build.py +5 -0
  4. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/tests/test_run_unity_batchmode.py +20 -0
  5. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/.gitignore +0 -0
  6. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/src/unity_devkit/__init__.py +0 -0
  7. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/src/unity_devkit/build_unity.py +0 -0
  8. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/src/unity_devkit/ci_build_unity.py +0 -0
  9. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/src/unity_devkit/compile_check_unity.py +0 -0
  10. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/src/unity_devkit/install.py +0 -0
  11. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/src/unity_devkit/license.py +0 -0
  12. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/src/unity_devkit/license_restore.py +0 -0
  13. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/src/unity_devkit/lock_unity.py +0 -0
  14. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/src/unity_devkit/matrix.py +0 -0
  15. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/src/unity_devkit/projects.py +0 -0
  16. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/src/unity_devkit/py.typed +0 -0
  17. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/src/unity_devkit/test_unity.py +0 -0
  18. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/src/unity_devkit/upm_cache.py +0 -0
  19. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/tests/fixtures/environment-dump.json +0 -0
  20. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/tests/test_build_player.py +0 -0
  21. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/tests/test_matrix.py +0 -0
  22. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/tests/test_prepare.py +0 -0
  23. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/tests/test_projects.py +0 -0
  24. {unity_devkit-0.1.22 → unity_devkit-0.1.23}/tests/test_upm_cache.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: unity-devkit
3
- Version: 0.1.22
3
+ Version: 0.1.23
4
4
  Summary: Unity build, license, and CI tooling
5
5
  Requires-Python: >=3.13
6
6
  Requires-Dist: bashrun>=0.1.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "unity-devkit"
3
- version = "0.1.22"
3
+ version = "0.1.23"
4
4
  description = "Unity build, license, and CI tooling"
5
5
  requires-python = ">=3.13"
6
6
  dependencies = [
@@ -84,6 +84,11 @@ def run_unity_batchmode(
84
84
  lines = log_path.read_text(encoding="utf-8", errors="replace").splitlines()
85
85
  failure_block = None
86
86
  for index, line in enumerate(lines):
87
+ # The API-updater side-pass parses candidate scripts without honoring #if guards or
88
+ # asmdef references, so it reports CS errors against code excluded from compilation;
89
+ # the compiler itself logs real errors unprefixed.
90
+ if line.startswith("[Script Updater]"):
91
+ continue
87
92
  if not any(signature in line for signature in signatures):
88
93
  continue
89
94
  block: list[str] = []
@@ -33,6 +33,26 @@ def test_compile_error_fails_despite_zero_exit(tmp_path: Path, monkeypatch: pyte
33
33
  player_build.run_unity_batchmode(tmp_path, extra_failure_signatures=("error CS",))
34
34
 
35
35
 
36
+ def test_script_updater_noise_ignored(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
37
+ noise = (
38
+ "[Script Updater] Library/PackageCache/com.cysharp.r3/Runtime/UnityXR.cs(9,89): error CS0246: type not found"
39
+ )
40
+ patch_editor(monkeypatch, write_fake_editor(tmp_path, noise, 0))
41
+
42
+ player_build.run_unity_batchmode(tmp_path, extra_failure_signatures=("error CS",))
43
+
44
+
45
+ def test_compile_error_after_script_updater_noise_fails(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
46
+ noise = (
47
+ "[Script Updater] Library/PackageCache/com.cysharp.r3/Runtime/UnityXR.cs(9,89): error CS0246: type not found"
48
+ )
49
+ real_error = "Assets/Foo.cs(1,1): error CS1002: ; expected"
50
+ patch_editor(monkeypatch, write_fake_editor(tmp_path, f"{noise}\n{real_error}", 0))
51
+
52
+ with pytest.raises(SystemExit, match="silent failure"):
53
+ player_build.run_unity_batchmode(tmp_path, extra_failure_signatures=("error CS",))
54
+
55
+
36
56
  def test_clean_log_passes(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
37
57
  patch_editor(monkeypatch, write_fake_editor(tmp_path, "DisplayProgressbar: renewal", 0))
38
58
 
File without changes