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.
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.
Timeline, Track and Clip traits -> a timeline namespace
LoatableContent -> a content namespace(?)
ACs
Uses PyPI OpenAssetIO-TraitGen
python -m pip install . installs an importable openassetio_mediacreation module in Python 3.7+
What
Once
openassetio-traitgen
is available in PyPI, convert the traits in the repo to.yml
definitions, and build withopenassetio-traitgen
as part ofsetup.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.
Timeline
,Track
andClip
traits -> atimeline
namespaceLoatableContent
-> acontent
namespace(?)ACs
python -m pip install .
installs an importableopenassetio_mediacreation
module in Python 3.7+yaml
.