Releases: grahampugh/plist-yaml-plist
Releases · grahampugh/plist-yaml-plist
0.6.4
- Fixed the installation of ruamel.yaml if not already present.
- Limit the ruamel.yaml version to less than 0.18.0, because newer versions are completely changed so will need more work to fix. Note that if you already have a newer version of ruamel.yaml in the python that you are using, it is advised to run the following command to remove it, after which running this script will reinstall a working version:
/path/to/your/python -m pip uninstall ruamel.yaml
0.6.3
- Fixed running on folders without a destination when converting from YAML to PLIST or vice versa.
- Adding
ParentRecipeTrustInfo
to thedesired_order
dict so that when autopkg recipes are converted or tidied, the Trust Info is retained. Also adding this to the processors which gain a new line before them for readability (#10 - thanks to @smithjw). - Shebangs changed to
#!/usr/bin/env python3
0.6
- When converting an AutoPkg recipe to
yaml
format, specific formatting is carried out:- The different process dictionaries are ordered by Processor, Comment, Arguments.
- The Input dictionary is ordered such that NAME is always at the top.
- The items are ordered thus: Comment, Description, Identifier, ParentRecipe, MinimumVersion, Input, Process
- Blank lines are added for human readability. Specifically these are added above Input and Process dictionaries, and between each Processor dictionary.
- You can use
yaml_tidy.py
to reformat existing.recipe.yaml
files as above. - An entire directory structure can have
.recipe.yaml
files reformatted as above using the commandplistyamlplist /path/to/YAML --tidy
. Any directory with aYAML
or_YAML
folder in it will be processed, including subdirectories.
0.5
- Switched from
pyyaml
toruamel
.
0.4
- You can now use this tool to convert
json
>plist
. Note that theplist
format do not acceptnull
/None
values, so this script will extract any keys withnull
/None
values before converting. - Add the ability to just reference a folder if
JSON
is in the path. - You can now use
_JSON
as well asJSON
for the folder. pyyaml
is installed automatically if not already installed.
0.3
-
Added the ability to convert an entire directory of
.yaml
files at once using the syntax:plistyamlplist /path/to/YAML/\*.yaml
0.2
- Merged in changes from @homebysix.
v0.1
Initial release as an installable package.