unitytk 0.5.0__tar.gz → 0.8.0__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 (157) hide show
  1. unitytk-0.8.0/MANIFEST.in +5 -0
  2. unitytk-0.8.0/PKG-INFO +46 -0
  3. unitytk-0.8.0/docs/README.md +27 -0
  4. unitytk-0.8.0/pyproject.toml +112 -0
  5. {unitytk-0.5.0/test → unitytk-0.8.0/tests}/test_articulated_rig_runtime.py +1009 -1156
  6. unitytk-0.8.0/tests/test_base_test.py +679 -0
  7. unitytk-0.8.0/tests/test_editor_catalog.py +107 -0
  8. unitytk-0.8.0/tests/test_generated_files_hook.py +101 -0
  9. {unitytk-0.5.0/test → unitytk-0.8.0/tests}/test_keyed_visibility.py +31 -91
  10. {unitytk-0.5.0/test → unitytk-0.8.0/tests}/test_package.py +13 -1
  11. unitytk-0.8.0/tests/test_project_builder.py +531 -0
  12. {unitytk-0.5.0/test → unitytk-0.8.0/tests}/test_run_tests.py +167 -160
  13. {unitytk-0.5.0/test → unitytk-0.8.0/tests}/test_shadow_plane_runtime_integration.py +311 -600
  14. {unitytk-0.5.0/test → unitytk-0.8.0/tests}/test_temp_projects.py +140 -5
  15. unitytk-0.8.0/tests/test_unity_cli.py +284 -0
  16. unitytk-0.8.0/tests/test_unity_compile.py +235 -0
  17. unitytk-0.8.0/tests/test_unity_host.py +375 -0
  18. unitytk-0.8.0/tests/test_unity_kernel_live.py +123 -0
  19. unitytk-0.8.0/unitytk/__init__.py +28 -0
  20. unitytk-0.8.0/unitytk/editor_operations.json +103 -0
  21. unitytk-0.8.0/unitytk/operations.json +158 -0
  22. unitytk-0.8.0/unitytk/operations.py +37 -0
  23. unitytk-0.8.0/unitytk/project_builder.py +609 -0
  24. unitytk-0.8.0/unitytk/unity_cli.py +316 -0
  25. unitytk-0.8.0/unitytk/unity_compile.py +482 -0
  26. unitytk-0.8.0/unitytk/unity_host.py +377 -0
  27. unitytk-0.8.0/unitytk/unity_project.py +284 -0
  28. unitytk-0.8.0/unitytk.egg-info/PKG-INFO +46 -0
  29. unitytk-0.8.0/unitytk.egg-info/SOURCES.txt +34 -0
  30. unitytk-0.8.0/unitytk.egg-info/entry_points.txt +6 -0
  31. unitytk-0.8.0/unitytk.egg-info/requires.txt +1 -0
  32. unitytk-0.5.0/MANIFEST.in +0 -5
  33. unitytk-0.5.0/PKG-INFO +0 -40
  34. unitytk-0.5.0/docs/README.md +0 -20
  35. unitytk-0.5.0/pyproject.toml +0 -71
  36. unitytk-0.5.0/test/test_asset_delivery.py +0 -506
  37. unitytk-0.5.0/test/test_audio_events_integration.py +0 -881
  38. unitytk-0.5.0/test/test_base_test.py +0 -899
  39. unitytk-0.5.0/test/test_blender_render_effects_e2e.py +0 -495
  40. unitytk-0.5.0/test/test_blender_shadow_plane_integration.py +0 -871
  41. unitytk-0.5.0/test/test_blender_shot_metadata_integration.py +0 -466
  42. unitytk-0.5.0/test/test_bool_to_fade_curve.py +0 -282
  43. unitytk-0.5.0/test/test_clip_name_contract_integration.py +0 -333
  44. unitytk-0.5.0/test/test_controller_runtime_integration.py +0 -315
  45. unitytk-0.5.0/test/test_deploy_templates.py +0 -1452
  46. unitytk-0.5.0/test/test_embedded_dependencies_integration.py +0 -1245
  47. unitytk-0.5.0/test/test_emissive_groups_integration.py +0 -411
  48. unitytk-0.5.0/test/test_fade_window_preservation.py +0 -319
  49. unitytk-0.5.0/test/test_launcher.py +0 -231
  50. unitytk-0.5.0/test/test_lightmap_metadata_integration.py +0 -2624
  51. unitytk-0.5.0/test/test_maya_surface_materials_integration.py +0 -2107
  52. unitytk-0.5.0/test/test_multi_section_audio_integration.py +0 -1309
  53. unitytk-0.5.0/test/test_render_effects_e2e.py +0 -1002
  54. unitytk-0.5.0/test/test_render_opacity_controller.py +0 -389
  55. unitytk-0.5.0/test/test_render_opacity_e2e.py +0 -676
  56. unitytk-0.5.0/test/test_render_opacity_integration.py +0 -585
  57. unitytk-0.5.0/test/test_scene_builder.py +0 -86
  58. unitytk-0.5.0/test/test_shadow_plane_integration.py +0 -821
  59. unitytk-0.5.0/test/test_shared_material_standalone.py +0 -668
  60. unitytk-0.5.0/test/test_shot_metadata_integration.py +0 -849
  61. unitytk-0.5.0/test/test_shots_audio_sidebyside_integration.py +0 -627
  62. unitytk-0.5.0/test/test_standalone_enduser.py +0 -1544
  63. unitytk-0.5.0/unitytk/__init__.py +0 -26
  64. unitytk-0.5.0/unitytk/asset_delivery.py +0 -351
  65. unitytk-0.5.0/unitytk/launcher.py +0 -338
  66. unitytk-0.5.0/unitytk/scene_builder.py +0 -131
  67. unitytk-0.5.0/unitytk/template_deployer.py +0 -1090
  68. unitytk-0.5.0/unitytk/templates/ArticulatedRig/ArticulatedRigController.cs +0 -1643
  69. unitytk-0.5.0/unitytk/templates/ArticulatedRig/ArticulatedRigController.cs.meta +0 -11
  70. unitytk-0.5.0/unitytk/templates/ArticulatedRig/ArticulatedRigPointerGrab.cs +0 -169
  71. unitytk-0.5.0/unitytk/templates/ArticulatedRig/ArticulatedRigPointerGrab.cs.meta +0 -11
  72. unitytk-0.5.0/unitytk/templates/ArticulatedRig/ArticulationRecord.g.cs +0 -330
  73. unitytk-0.5.0/unitytk/templates/ArticulatedRig/ArticulationRecord.g.cs.meta +0 -11
  74. unitytk-0.5.0/unitytk/templates/ArticulatedRig/XR/ArticulatedRigXRGrab.cs +0 -119
  75. unitytk-0.5.0/unitytk/templates/ArticulatedRig/XR/ArticulatedRigXRGrab.cs.meta +0 -11
  76. unitytk-0.5.0/unitytk/templates/ArticulatedRig/XR/ArticulatedRigXRSetup.cs +0 -79
  77. unitytk-0.5.0/unitytk/templates/ArticulatedRig/XR/ArticulatedRigXRSetup.cs.meta +0 -11
  78. unitytk-0.5.0/unitytk/templates/ArticulatedRig/XR/M3trik.Unitytk.XR.asmdef +0 -26
  79. unitytk-0.5.0/unitytk/templates/ArticulatedRig/XR/M3trik.Unitytk.XR.asmdef.meta +0 -7
  80. unitytk-0.5.0/unitytk/templates/ArticulatedRig/XR.meta +0 -8
  81. unitytk-0.5.0/unitytk/templates/ArticulatedRig.meta +0 -8
  82. unitytk-0.5.0/unitytk/templates/AudioEvent/AudioEventController.cs +0 -847
  83. unitytk-0.5.0/unitytk/templates/AudioEvent/AudioEventController.cs.meta +0 -11
  84. unitytk-0.5.0/unitytk/templates/AudioEvent/AudioRecord.g.cs +0 -270
  85. unitytk-0.5.0/unitytk/templates/AudioEvent/AudioRecord.g.cs.meta +0 -11
  86. unitytk-0.5.0/unitytk/templates/AudioEvent.meta +0 -8
  87. unitytk-0.5.0/unitytk/templates/EmissiveGroup/EmissiveGroupController.cs +0 -498
  88. unitytk-0.5.0/unitytk/templates/EmissiveGroup/EmissiveGroupController.cs.meta +0 -11
  89. unitytk-0.5.0/unitytk/templates/EmissiveGroup/EmissiveGroups.hlsl +0 -55
  90. unitytk-0.5.0/unitytk/templates/EmissiveGroup/EmissiveGroups.hlsl.meta +0 -7
  91. unitytk-0.5.0/unitytk/templates/EmissiveGroup/EmissiveGroupsLit.shader +0 -293
  92. unitytk-0.5.0/unitytk/templates/EmissiveGroup/EmissiveGroupsLit.shader.meta +0 -9
  93. unitytk-0.5.0/unitytk/templates/EmissiveGroup/EmissiveGroupsRecord.g.cs +0 -268
  94. unitytk-0.5.0/unitytk/templates/EmissiveGroup/EmissiveGroupsRecord.g.cs.meta +0 -11
  95. unitytk-0.5.0/unitytk/templates/EmissiveGroup.meta +0 -8
  96. unitytk-0.5.0/unitytk/templates/LightmapMetadata/DeliverableCubeUV.hlsl +0 -119
  97. unitytk-0.5.0/unitytk/templates/LightmapMetadata/DeliverableCubeUV.hlsl.meta +0 -7
  98. unitytk-0.5.0/unitytk/templates/LightmapMetadata/DeliverableLit.shader +0 -391
  99. unitytk-0.5.0/unitytk/templates/LightmapMetadata/DeliverableLit.shader.meta +0 -9
  100. unitytk-0.5.0/unitytk/templates/LightmapMetadata/DeliverablePmrem.cs +0 -307
  101. unitytk-0.5.0/unitytk/templates/LightmapMetadata/DeliverablePmrem.cs.meta +0 -11
  102. unitytk-0.5.0/unitytk/templates/LightmapMetadata/DeliverableShading.cs +0 -570
  103. unitytk-0.5.0/unitytk/templates/LightmapMetadata/DeliverableShading.cs.meta +0 -11
  104. unitytk-0.5.0/unitytk/templates/LightmapMetadata/DeliverableToneMap.shader +0 -65
  105. unitytk-0.5.0/unitytk/templates/LightmapMetadata/DeliverableToneMap.shader.meta +0 -9
  106. unitytk-0.5.0/unitytk/templates/LightmapMetadata/DeliverableToneMapFeature.cs +0 -53
  107. unitytk-0.5.0/unitytk/templates/LightmapMetadata/DeliverableToneMapFeature.cs.meta +0 -11
  108. unitytk-0.5.0/unitytk/templates/LightmapMetadata/HandoffBlock.g.cs +0 -303
  109. unitytk-0.5.0/unitytk/templates/LightmapMetadata/HandoffBlock.g.cs.meta +0 -11
  110. unitytk-0.5.0/unitytk/templates/LightmapMetadata/LightmapMetadataController.cs +0 -1880
  111. unitytk-0.5.0/unitytk/templates/LightmapMetadata/LightmapMetadataController.cs.meta +0 -11
  112. unitytk-0.5.0/unitytk/templates/LightmapMetadata/LightmapRecord.g.cs +0 -466
  113. unitytk-0.5.0/unitytk/templates/LightmapMetadata/LightmapRecord.g.cs.meta +0 -11
  114. unitytk-0.5.0/unitytk/templates/LightmapMetadata/RenderingPolicy.g.cs +0 -50
  115. unitytk-0.5.0/unitytk/templates/LightmapMetadata/RenderingPolicy.g.cs.meta +0 -11
  116. unitytk-0.5.0/unitytk/templates/LightmapMetadata.meta +0 -8
  117. unitytk-0.5.0/unitytk/templates/M3trik.Unitytk.asmdef +0 -29
  118. unitytk-0.5.0/unitytk/templates/M3trik.Unitytk.asmdef.meta +0 -7
  119. unitytk-0.5.0/unitytk/templates/MapAbsence.g.cs +0 -18
  120. unitytk-0.5.0/unitytk/templates/MapAbsence.g.cs.meta +0 -11
  121. unitytk-0.5.0/unitytk/templates/MaterialRecord.cs +0 -84
  122. unitytk-0.5.0/unitytk/templates/MaterialRecord.cs.meta +0 -11
  123. unitytk-0.5.0/unitytk/templates/MaterialRecord.g.cs +0 -291
  124. unitytk-0.5.0/unitytk/templates/MaterialRecord.g.cs.meta +0 -11
  125. unitytk-0.5.0/unitytk/templates/MayaSurface/MayaSurfaceMaterialImporter.cs +0 -1102
  126. unitytk-0.5.0/unitytk/templates/MayaSurface/MayaSurfaceMaterialImporter.cs.meta +0 -11
  127. unitytk-0.5.0/unitytk/templates/MayaSurface.meta +0 -8
  128. unitytk-0.5.0/unitytk/templates/README.md +0 -454
  129. unitytk-0.5.0/unitytk/templates/README.md.meta +0 -7
  130. unitytk-0.5.0/unitytk/templates/RenderEffects/RenderEffectsController.cs +0 -1178
  131. unitytk-0.5.0/unitytk/templates/RenderEffects/RenderEffectsController.cs.meta +0 -11
  132. unitytk-0.5.0/unitytk/templates/RenderEffects.meta +0 -8
  133. unitytk-0.5.0/unitytk/templates/ShadowPlane/ShadowPlane.shader +0 -326
  134. unitytk-0.5.0/unitytk/templates/ShadowPlane/ShadowPlane.shader.meta +0 -9
  135. unitytk-0.5.0/unitytk/templates/ShadowPlane/ShadowPlaneController.cs +0 -1950
  136. unitytk-0.5.0/unitytk/templates/ShadowPlane/ShadowPlaneController.cs.meta +0 -11
  137. unitytk-0.5.0/unitytk/templates/ShadowPlane/ShadowPlaneHorizon.hlsl +0 -440
  138. unitytk-0.5.0/unitytk/templates/ShadowPlane/ShadowPlaneHorizon.hlsl.meta +0 -7
  139. unitytk-0.5.0/unitytk/templates/ShadowPlane/ShadowRecord.g.cs +0 -419
  140. unitytk-0.5.0/unitytk/templates/ShadowPlane/ShadowRecord.g.cs.meta +0 -11
  141. unitytk-0.5.0/unitytk/templates/ShadowPlane.meta +0 -8
  142. unitytk-0.5.0/unitytk/templates/ShotMetadata/AnimationRecord.g.cs +0 -272
  143. unitytk-0.5.0/unitytk/templates/ShotMetadata/AnimationRecord.g.cs.meta +0 -11
  144. unitytk-0.5.0/unitytk/templates/ShotMetadata/ShotMetadataController.cs +0 -303
  145. unitytk-0.5.0/unitytk/templates/ShotMetadata/ShotMetadataController.cs.meta +0 -11
  146. unitytk-0.5.0/unitytk/templates/ShotMetadata.meta +0 -8
  147. unitytk-0.5.0/unitytk/templates/UnitytkSettings.cs +0 -1588
  148. unitytk-0.5.0/unitytk/templates/UnitytkSettings.cs.meta +0 -11
  149. unitytk-0.5.0/unitytk/templates/__init__.py +0 -2
  150. unitytk-0.5.0/unitytk.egg-info/PKG-INFO +0 -40
  151. unitytk-0.5.0/unitytk.egg-info/SOURCES.txt +0 -130
  152. unitytk-0.5.0/unitytk.egg-info/requires.txt +0 -1
  153. {unitytk-0.5.0 → unitytk-0.8.0}/COPYING +0 -0
  154. {unitytk-0.5.0 → unitytk-0.8.0}/COPYING.LESSER +0 -0
  155. {unitytk-0.5.0 → unitytk-0.8.0}/setup.cfg +0 -0
  156. {unitytk-0.5.0 → unitytk-0.8.0}/unitytk.egg-info/dependency_links.txt +0 -0
  157. {unitytk-0.5.0 → unitytk-0.8.0}/unitytk.egg-info/top_level.txt +0 -0
@@ -0,0 +1,5 @@
1
+ include COPYING
2
+ include COPYING.LESSER
3
+ include docs/README.md
4
+ include pyproject.toml
5
+ recursive-include unitytk *.json
unitytk-0.8.0/PKG-INFO ADDED
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.4
2
+ Name: unitytk
3
+ Version: 0.8.0
4
+ Summary: The automation beside the unitytk Unity package: an owned editor for agents, the test and demo project, a compile check.
5
+ Author-email: Ryan Simpson <m3trik@outlook.com>
6
+ License: LGPL-3.0-or-later
7
+ Project-URL: Homepage, https://github.com/m3trik/unitytk
8
+ Project-URL: Repository, https://github.com/m3trik/unitytk
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
11
+ Classifier: Operating System :: Microsoft :: Windows
12
+ Classifier: Operating System :: POSIX :: Linux
13
+ Requires-Python: >=3.9
14
+ Description-Content-Type: text/markdown
15
+ License-File: COPYING
16
+ License-File: COPYING.LESSER
17
+ Requires-Dist: pythontk>=0.21.0
18
+ Dynamic: license-file
19
+
20
+ [![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0.en.html)
21
+ [![Tests](https://img.shields.io/badge/Tests-146%20passed-brightgreen.svg)](../tests/)
22
+ ![Platform](https://img.shields.io/badge/Platform-Windows%2C%20Linux-lightgrey.svg)
23
+
24
+ # unitytk
25
+
26
+ The automation beside the unitytk Unity package ([`com.m3trik.unitytk/`](../com.m3trik.unitytk/README.md), installed into a project by Unity's Package Manager, never by pip).
27
+
28
+ The Python side drives Unity from outside, with Unity's own tools: `UnityHost` (the `unity` operation host: calls in an editor this tooling starts and owns, never one a person opened; `install` writes the one manifest line that installs the package), `ProjectBuilder` (the test and demo project, made on demand by Unity's CLI and linked to this checkout) and `UnityCompile` (the package's C# compiled in seconds, no editor running).
29
+
30
+ <!-- diagram:ecosystem/unitytk -->
31
+ <!-- Generated by m3trik/scripts/generate_readme_diagrams.py from the workspace's declarations: change those and re-run it, never this block. -->
32
+ <p align="center">
33
+ <a href="https://github.com/m3trik/m3trik#readme"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/m3trik/m3trik/main/docs/diagrams/ecosystem-unitytk-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/m3trik/m3trik/main/docs/diagrams/ecosystem-unitytk-light.svg"><img alt="unitytk (highlighted) in the ecosystem: uitk requires pythontk; unitytk requires pythontk; mayatk requires uitk; blendertk requires uitk; tentacle requires uitk; extapps requires uitk; tentacle installs mayatk as its [maya] extra; tentacle installs blendertk as its [blender] extra; tentacle opens extapps by name (its [apps] extra) and never imports it; mayatk and blendertk share a mirrored API. tentacle and extapps are products, which nothing imports." src="https://raw.githubusercontent.com/m3trik/m3trik/main/docs/diagrams/ecosystem-unitytk-light.svg" width="781"></picture></a>
34
+ </p>
35
+ <!-- /diagram:ecosystem/unitytk -->
36
+
37
+ ## More
38
+
39
+ - [The Unity package's README](../com.m3trik.unitytk/README.md) — the package's catalog, the FBX import contract, and installing it (one Package Manager line)
40
+ - [pythontk's `DELIVERABLE_FORMAT.md`](https://github.com/m3trik/pythontk/blob/main/pythontk/core_utils/engines/scene_export/DELIVERABLE_FORMAT.md) — the data a deliverable carries, which the package reads (the `data_export` carrier and every scene record's block)
41
+ - [`CHANGELOG.md`](../CHANGELOG.md) — notable changes
42
+ - [`AGENTS.md`](../AGENTS.md) — contributor / agent conventions
43
+
44
+ ## License
45
+
46
+ LGPL-3.0-or-later — see [COPYING.LESSER](../COPYING.LESSER) and [COPYING](../COPYING), except the Unity package's C# ([`com.m3trik.unitytk/`](../com.m3trik.unitytk/LICENSE.md)), which is MIT so it can ship inside Unity player builds.
@@ -0,0 +1,27 @@
1
+ [![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0.en.html)
2
+ [![Tests](https://img.shields.io/badge/Tests-146%20passed-brightgreen.svg)](../tests/)
3
+ ![Platform](https://img.shields.io/badge/Platform-Windows%2C%20Linux-lightgrey.svg)
4
+
5
+ # unitytk
6
+
7
+ The automation beside the unitytk Unity package ([`com.m3trik.unitytk/`](../com.m3trik.unitytk/README.md), installed into a project by Unity's Package Manager, never by pip).
8
+
9
+ The Python side drives Unity from outside, with Unity's own tools: `UnityHost` (the `unity` operation host: calls in an editor this tooling starts and owns, never one a person opened; `install` writes the one manifest line that installs the package), `ProjectBuilder` (the test and demo project, made on demand by Unity's CLI and linked to this checkout) and `UnityCompile` (the package's C# compiled in seconds, no editor running).
10
+
11
+ <!-- diagram:ecosystem/unitytk -->
12
+ <!-- Generated by m3trik/scripts/generate_readme_diagrams.py from the workspace's declarations: change those and re-run it, never this block. -->
13
+ <p align="center">
14
+ <a href="https://github.com/m3trik/m3trik#readme"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/m3trik/m3trik/main/docs/diagrams/ecosystem-unitytk-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/m3trik/m3trik/main/docs/diagrams/ecosystem-unitytk-light.svg"><img alt="unitytk (highlighted) in the ecosystem: uitk requires pythontk; unitytk requires pythontk; mayatk requires uitk; blendertk requires uitk; tentacle requires uitk; extapps requires uitk; tentacle installs mayatk as its [maya] extra; tentacle installs blendertk as its [blender] extra; tentacle opens extapps by name (its [apps] extra) and never imports it; mayatk and blendertk share a mirrored API. tentacle and extapps are products, which nothing imports." src="https://raw.githubusercontent.com/m3trik/m3trik/main/docs/diagrams/ecosystem-unitytk-light.svg" width="781"></picture></a>
15
+ </p>
16
+ <!-- /diagram:ecosystem/unitytk -->
17
+
18
+ ## More
19
+
20
+ - [The Unity package's README](../com.m3trik.unitytk/README.md) — the package's catalog, the FBX import contract, and installing it (one Package Manager line)
21
+ - [pythontk's `DELIVERABLE_FORMAT.md`](https://github.com/m3trik/pythontk/blob/main/pythontk/core_utils/engines/scene_export/DELIVERABLE_FORMAT.md) — the data a deliverable carries, which the package reads (the `data_export` carrier and every scene record's block)
22
+ - [`CHANGELOG.md`](../CHANGELOG.md) — notable changes
23
+ - [`AGENTS.md`](../AGENTS.md) — contributor / agent conventions
24
+
25
+ ## License
26
+
27
+ LGPL-3.0-or-later — see [COPYING.LESSER](../COPYING.LESSER) and [COPYING](../COPYING), except the Unity package's C# ([`com.m3trik.unitytk/`](../com.m3trik.unitytk/LICENSE.md)), which is MIT so it can ship inside Unity player builds.
@@ -0,0 +1,112 @@
1
+ [build-system]
2
+ requires = ["setuptools>=62.3", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "unitytk"
7
+ dynamic = ["version", "readme"]
8
+ description = "The automation beside the unitytk Unity package: an owned editor for agents, the test and demo project, a compile check."
9
+ authors = [{name = "Ryan Simpson", email = "m3trik@outlook.com"}]
10
+ license = {text = "LGPL-3.0-or-later"}
11
+ requires-python = ">=3.9"
12
+ classifiers = [
13
+ "Programming Language :: Python :: 3",
14
+ "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
15
+ "Operating System :: Microsoft :: Windows",
16
+ "Operating System :: POSIX :: Linux",
17
+ ]
18
+ # The floor is HAND-RATCHETED: unitytk is off-chain from m3trik/push.ps1, so no
19
+ # release cascade bumps it; m3trik's `check_api_surface.py unitytk --floors`
20
+ # holds it to every pythontk name the automation calls. 0.21.0: the project
21
+ # builder delivers each sample through `ptk.FolderDeliverer` and
22
+ # `ptk.FileDeliveryBridge`, new in it. Unity's CLI is unitytk's own
23
+ # (`unitytk.UnityCli`, standard library only). The Unity package itself needs
24
+ # no Python at all.
25
+ dependencies = ["pythontk>=0.21.0"]
26
+
27
+ # Operations (``python -m pythontk ops``): unitytk's declarations, and the
28
+ # editor's C# operations as the kernel's catalog run wrote them.
29
+ [project.entry-points."pythontk.operations"]
30
+ unitytk = "unitytk.operations"
31
+ unitytk_editor = "unitytk.editor_operations"
32
+
33
+ # The ``unity`` host: calls in a Unity editor this tooling starts (C# kernel).
34
+ [project.entry-points."pythontk.operation_hosts"]
35
+ unity = "unitytk:UnityHost.operation_host"
36
+
37
+ [project.urls]
38
+ Homepage = "https://github.com/m3trik/unitytk"
39
+ Repository = "https://github.com/m3trik/unitytk"
40
+
41
+ [tool.setuptools.dynamic]
42
+ version = {attr = "unitytk.__version__"}
43
+ readme = {file = "docs/README.md", content-type = "text/markdown"}
44
+
45
+ [tool.setuptools]
46
+ # The Python toolkit alone: the Unity package (com.m3trik.unitytk/, beside it)
47
+ # is installed into a project by Unity's Package Manager, never by pip.
48
+ packages = ["unitytk"]
49
+
50
+ [tool.setuptools.package-data]
51
+ "unitytk" = ["*.json"]
52
+
53
+ [tool.m3trik.layers.csharp]
54
+ # CODE_STANDARD section 0 (Parts): the Unity package's assemblies, top first. An
55
+ # asmdef's part is the most specific folder pattern it lies in ("." is the root;
56
+ # "*" any one folder, and two folders one "*" binds to different names are
57
+ # peers at every rank). A reference points to its own part or one below; an
58
+ # outside package is a door's alone. Checked by m3trik/scripts/check_layers.py
59
+ # (references) and check_csharp.py (the kernel bypass below "kernel", prior art,
60
+ # the generated *.g.cs) against frozen baselines of today's exceptions.
61
+ root = "com.m3trik.unitytk"
62
+ order = [
63
+ # Tools: menus and windows over the features' actions.
64
+ "Tools/*",
65
+ # Each feature's assemblies, peers of every other feature's: its tests,
66
+ # its doors (ArticulatedRig/XRI, ArticulatedRig/InputSystem), its editor half,
67
+ # its runtime half, its model.
68
+ "Features/*/Tests",
69
+ "Features/*/*",
70
+ "Features/*/Editor",
71
+ "Features/*/Runtime",
72
+ "Features/*/Model",
73
+ "Contracts/Editor",
74
+ "Contracts",
75
+ # The kernel's Edit Mode tests, over what they test.
76
+ "Kernel/Tests",
77
+ # The kernel's door: the render-pipeline host URP serves.
78
+ "Kernel/URP",
79
+ "Kernel/Editor",
80
+ # The kernel's runtime half: the render-pipeline host and its registry, the
81
+ # one material writer, its pipeline table and Unity's mask layout.
82
+ "Kernel/Runtime",
83
+ "Core",
84
+ ]
85
+ kernel = "Kernel/Editor"
86
+
87
+ [tool.pytest.ini_options]
88
+ testpaths = ["tests"]
89
+ pythonpath = [".", "tests"]
90
+ addopts = "--ignore=tests/temp_tests"
91
+
92
+ [tool.ruff]
93
+ # House formatter/linter - rule set, exemptions and gate status: m3trik/docs/CODE_STANDARD.md section 1.
94
+ line-length = 88
95
+ target-version = "py39"
96
+
97
+ [tool.ruff.lint]
98
+ select = ["E4", "E7", "E9", "F"]
99
+ ignore = ["E402"] # house pattern: try-guarded DCC imports precede the other imports
100
+
101
+
102
+ [tool.m3trik.names]
103
+ # What produces unitytk's assets: it reads what is handed to it and names none
104
+ # of them (CODE_STANDARD section 0, Parts; check_layers.py rule 6).
105
+ forbid = ["Maya", "Blender", "mayapy", "bpy", "Arnold"]
106
+
107
+ [tool.m3trik.api]
108
+ # The maintainer's standing call (CODE_STANDARD section 5): no deprecation
109
+ # window holds a removal, none owes a MOVED_NAMES row, and a notice is due by
110
+ # its version alone; a removal still owes its minor bump. Read by
111
+ # m3trik/scripts/check_api_surface.py (--check, --semver, --changes).
112
+ no_back_compat = "no project uses unitytk"