OpenAssetIO / OpenAssetIO-MediaCreation

OpenAssetIO extensions for use in the Media Creation industry.
Apache License 2.0
12 stars 10 forks source link

Switch MC to using `openassetio-traitgen` #10

Closed foundrytom closed 1 year ago

foundrytom commented 2 years ago

What

Once openassetio-traitgen is available in PyPI, convert the traits in the repo to .yml definitions, and build with openassetio-traitgen as part of setup.py.

Why

Manual authoring of Trait/Specification code is deprecated as it is prohibitively slow.

Notes

Requires https://github.com/OpenAssetIO/OpenAssetIO-TraitGen/issues/2

We currently have the strategy that we "trust" traitgen code through its own testing, so there isn't need to write extensive tests for autogenerated classes.

It's to be expected that the resulting Python namespace will change.

Be good to hard code the yaml hints to the JSON schema in github for traitgen.

ACs