diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-07-09 19:21:57 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-07-09 19:21:57 +0100 |
| commit | f0f886e9e932af2a6550c1ffcc9ebb3a0d0dfa10 (patch) | |
| tree | 302b8020c0a7aa7e5f943882a36e2abaa537f21a | |
| parent | 55d6b07934b19f48dc41f24faba690fd91a42d85 (diff) | |
Update to jq 1.8.2
| -rw-r--r-- | CHANGELOG.rst | 5 | ||||
| -rw-r--r-- | README.rst | 4 | ||||
| -rw-r--r-- | deps/jq-1.8.1.tar.gz | bin | 2026798 -> 0 bytes | |||
| -rw-r--r-- | deps/jq-1.8.2.tar.gz | bin | 0 -> 1959950 bytes | |||
| -rw-r--r-- | setup.py | 4 | ||||
| -rw-r--r-- | tests/jq_old_tests.py | 9 | ||||
| -rw-r--r-- | tests/jq_tests.py | 9 |
7 files changed, 23 insertions, 8 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 5ee54ec..d11db4f 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,11 @@ Changelog ========= +1.12.0 +------ + +* Update to jq 1.8.2. + 1.11.0 ------ @@ -2,7 +2,7 @@ jq.py: a lightweight and flexible JSON processor ================================================ This project contains Python bindings for -`jq <https://jqlang.github.io/jq/>`_ 1.8.1. +`jq <https://jqlang.github.io/jq/>`_ 1.8.2. Installation ------------ @@ -15,7 +15,7 @@ On these platforms, you should be able to install jq with a normal pip install: pip install jq If a wheel is not available, -the source for jq 1.8.1 is built. +the source for jq 1.8.2 is built. This requires: * Autoreconf diff --git a/deps/jq-1.8.1.tar.gz b/deps/jq-1.8.1.tar.gz Binary files differdeleted file mode 100644 index 7c1bcf0..0000000 --- a/deps/jq-1.8.1.tar.gz +++ /dev/null diff --git a/deps/jq-1.8.2.tar.gz b/deps/jq-1.8.2.tar.gz Binary files differnew file mode 100644 index 0000000..272f976 --- /dev/null +++ b/deps/jq-1.8.2.tar.gz @@ -27,8 +27,8 @@ def _read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() -jq_lib_tarball_path = _dep_source_path("jq-1.8.1.tar.gz") -jq_lib_dir = _dep_build_path("jq-1.8.1") +jq_lib_tarball_path = _dep_source_path("jq-1.8.2.tar.gz") +jq_lib_dir = _dep_build_path("jq-1.8.2") class jq_with_deps_build_ext(build_ext): def finalize_options(self): diff --git a/tests/jq_old_tests.py b/tests/jq_old_tests.py index 794eed3..b2411c3 100644 --- a/tests/jq_old_tests.py +++ b/tests/jq_old_tests.py @@ -95,8 +95,13 @@ def test_value_error_is_raised_if_input_cannot_be_processed_by_program(): program.transform(1) assert False, "Expected error" except ValueError as error: - expected_error_str = "Cannot index number with string \"x\"" - assert_equal(str(error), expected_error_str) + expected_error_strs = [ + # jq 1.8.1 and earlier + "Cannot index number with string \"x\"", + # jq 1.8.2 and later + "Cannot index number with string (\"x\")", + ] + str(error) in expected_error_strs def test_errors_do_not_leak_between_transformations(): diff --git a/tests/jq_tests.py b/tests/jq_tests.py index 1c45472..69eccb2 100644 --- a/tests/jq_tests.py +++ b/tests/jq_tests.py @@ -215,8 +215,13 @@ def test_value_error_is_raised_if_input_cannot_be_processed_by_program(): program.input(1).all() assert False, "Expected error" except ValueError as error: - expected_error_str = "Cannot index number with string \"x\"" - assert_equal(str(error), expected_error_str) + expected_error_strs = [ + # jq 1.8.1 and earlier + "Cannot index number with string \"x\"", + # jq 1.8.2 and later + "Cannot index number with string (\"x\")", + ] + str(error) in expected_error_strs def test_non_string_error_is_converted_to_json_text(): |
