13 Commits

Author SHA1 Message Date
kn
85426096ad Update to yq 2.14.0
-  Support binary and set tags. Fixes #140
2022-02-21 16:48:03 +00:00
kn
e3d65d33c6 Update to yq 2.13.0
- Armor against entity expansion attacks
- Improve YAML loading performance by using CSafeLoader where available
- Require PyYAML 5.3.1 or newer
- Test and release infrastructure improvements
2021-12-03 11:00:12 +00:00
sthen
384d97056e bump REVISION for switch from Python 3.8 -> 3.9 2021-11-02 00:02:32 +00:00
kn
755ebfaabd Update to yq 2.12.2
- Handle -n correctly
- Do not close fds on child process (2.12.1)
2021-06-19 12:09:54 +00:00
sthen
3cbe1c2f30 Reverse the polarity of MODPY_VERSION; default is now 3.x,
if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}.

This commit doesn't change any versions currently used; it may be that
some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those
should be cleaned up in the course of updating ports where possible.

Python module ports providing py3-* packages should still use
FLAVOR=python3 so that we don't have a mixture of dependencies some
using ${MODPY_FLAVOR} and others not.
2021-02-23 19:39:08 +00:00
kn
c8bd13ca39 Update to yq 2.12.0
- Add TOML support and the tomlq CLI utility to access it
- Drop Python 2.7 support
2021-02-08 20:36:56 +00:00
kn
3b400aa2d4 Update to yq 2.11.1 2020-10-10 18:34:06 +00:00
sthen
d9cfe4113e bump REVISION; python 3 default changed to 3.8 2020-07-03 21:12:24 +00:00
kn
3d22e04929 Update to yq 2.10.1
- Add support for xmltodict force_list definition for xq CLI (#95)
- Support explicit doc markers (#93)
- Ensure proper ordering of help messages (#90)
2020-05-14 19:05:57 +00:00
kn
4bee18f88d Update to yq 2.10.0
- Add support for in-place editing (yq -yi)
- Add argcomplete integration
2019-12-24 19:24:31 +00:00
kmos
184417b1a5 Move tests to MODPY_PYTEST and make results more legible 2019-11-23 23:49:17 +00:00
kn
1aee005170 Update to yq 2.9.2
- Fix interrupted release
- Fix documentation build
- Add -Y/–yaml-roundtrip for preserving YAML styles and tags
- Filter out -C and separate commingled yq and jq short options
- Set default block sequence indentation to 2 spaces, –indentless for 0
- Make main body of yq callable as a library function
- Test and release infrastructure updates
2019-11-09 17:41:10 +00:00
kn
ea5ce27483 Import yq
yq takes YAML input, converts it to JSON, and filters it through jq(1).

No output conversion is done by default.  Command line arguments are forwarded.
yq exits 1 on YAML parsing errors, otherwise jq's exit code is forwarded.

YAML tags in the input are ignored (any nested data is treated as untagged).
Key order is preserved.

xq behaves like yq but takes XML input.  Multiple XML documents can be passed
in separate files/streams.  Entity expansion and DTD resolution is disabled to
avoid XML parsing vulnerabilities.

Feedback rsadowski kmos
OK kmos
2019-11-05 18:01:02 +00:00