added /resources to pyinstaller updated objdict_schema to YAML 1.2
Description
- Added resources folder to pyinstaller build
- Updated format of objdict_schema.yaml to YAML 1.2
What to focus on
- pyinstaller needs to be explicitly told about non-python data files, such as the schema and template files in the resources
folder. I added these with the handy
--add-data
flag in the Makefile - Changed all the bools in
objdict_generate/resources/objdict_schema.yaml
from yes/no to true/false. Our new locked version of PyKwalify (1.8.0) interprets .yaml files acording to YAML 1.2. This wouldn't be an issue, except thatobjdict_schema.yaml
uses the stringsyes
andno
to indicate boolian true/false, and support for that is dropped in 1.2. - Specified the default YAML loader when calling load on the input file. This used to be done as a default in older versions, but now needs to be declared explicitly in the version we're using now (6.0)
Resources
- https://pyinstaller.readthedocs.io/en/stable/spec-files.html#adding-data-files
- https://github.com/yaml/pyyaml/blob/6.0/lib/yaml/init.py#L74
- https://github.com/yaml/pyyaml/blob/4.1/lib/yaml/init.py#L64
- https://github.com/Grokzen/pykwalify#yaml-parser