From 47715b46e0082663604b2ba9fa144263dc960f8c845966a144f14b5634bc7993 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 22 Jan 2024 23:46:32 +0000 Subject: [PATCH] - update to 1.6.1: * Fix issue with lambda based updates * Remove unused code from the test suite * De-duplicate the parser test cases * Remove a test that merely checks exception inheritance * Add pytest-randomly to shake out auto_id side effects * Include the test suite in coverage reports * Remove tests that don't affect coverage and contribute nothing * Reformat `tests/test_create.py` * Remove `test_doctests`, which is a no-op * Demonstrate that there are no doctests * Remove the `coveralls` dependency * Migrate `tests/bin/test_jsonpath.py` to use pytest * remove Python2 crumbs * Add CodeQL analysis * Remove the `oslotest` dependency * Fix running CI against incoming PRs * Support, and test against, Python 3.12 * Update the currently-tested CPython versions in the README * Remove an unused Travis CI config file * Add a Dependabot config to keep GitHub action versions updated * add a test for the case when root element is a list * Fix issue with assignment in case root element is a list. * Fix typo in README * Fix test commands in Makefile * Fix .coveragerc path * Simplify clean in Makefile * Refactor unit tests for better errors OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpath-ng?expand=0&rev=6 --- jsonpath-ng-1.6.0.tar.gz | 3 --- jsonpath-ng-1.6.1.tar.gz | 3 +++ python-jsonpath-ng.changes | 39 ++++++++++++++++++++++++++++++++++++++ python-jsonpath-ng.spec | 14 ++++++++------ 4 files changed, 50 insertions(+), 9 deletions(-) delete mode 100644 jsonpath-ng-1.6.0.tar.gz create mode 100644 jsonpath-ng-1.6.1.tar.gz diff --git a/jsonpath-ng-1.6.0.tar.gz b/jsonpath-ng-1.6.0.tar.gz deleted file mode 100644 index 15049a1..0000000 --- a/jsonpath-ng-1.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0673ae52a7bb29c3836b95770f137903649b0aa6c6e7173095037b30860dba79 -size 33974 diff --git a/jsonpath-ng-1.6.1.tar.gz b/jsonpath-ng-1.6.1.tar.gz new file mode 100644 index 0000000..42f5fe3 --- /dev/null +++ b/jsonpath-ng-1.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ff39f87b5a43a284306e6839de9122c1d4d586d0deaa262ea95018c530f3956 +size 33427 diff --git a/python-jsonpath-ng.changes b/python-jsonpath-ng.changes index 613820d..f089d22 100644 --- a/python-jsonpath-ng.changes +++ b/python-jsonpath-ng.changes @@ -1,3 +1,42 @@ +------------------------------------------------------------------- +Mon Jan 22 23:44:48 UTC 2024 - Dirk Müller + +- update to 1.6.1: + * Fix issue with lambda based updates + * Remove unused code from the test suite + * De-duplicate the parser test cases + * Remove a test that merely checks exception inheritance + * Add pytest-randomly to shake out auto_id side effects + * Include the test suite in coverage reports + * Remove tests that don't affect coverage and contribute + nothing + * Reformat `tests/test_create.py` + * Remove `test_doctests`, which is a no-op + * Demonstrate that there are no doctests + * Remove the `coveralls` dependency + * Migrate `tests/bin/test_jsonpath.py` to use pytest + * remove Python2 crumbs + * Add CodeQL analysis + * Remove the `oslotest` dependency + * Fix running CI against incoming PRs + * Support, and test against, Python 3.12 + * Update the currently-tested CPython versions in the README + * Remove an unused Travis CI config file + * Add a Dependabot config to keep GitHub action versions + updated + * add a test for the case when root element is a list + * Fix issue with assignment in case root element is a list. + * Fix typo in README + * Fix test commands in Makefile + * Fix .coveragerc path + * Simplify clean in Makefile + * Refactor unit tests for better errors + * test case for existing auto id + * Add more examples to README (thanks @baynes) + * Don't fail when regex match is attempted on non-strings + * Add additional tests + * Add `keys` keyword + ------------------------------------------------------------------- Fri Sep 15 08:51:59 UTC 2023 - pgajdos@suse.com diff --git a/python-jsonpath-ng.spec b/python-jsonpath-ng.spec index 4fb1218..f7b6032 100644 --- a/python-jsonpath-ng.spec +++ b/python-jsonpath-ng.spec @@ -1,7 +1,7 @@ # # spec file for package python-jsonpath-ng # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,19 +17,20 @@ Name: python-jsonpath-ng -Version: 1.6.0 +Version: 1.6.1 Release: 0 Summary: JSONPath for Python License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/h2non/jsonpath-ng Source: https://github.com/h2non/jsonpath-ng/archive/refs/tags/v%{version}.tar.gz#/jsonpath-ng-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-decorator Requires: python-ply -Requires: python-six Requires(post): update-alternatives Requires(postun):update-alternatives BuildArch: noarch @@ -52,10 +53,10 @@ sed -i '1{/^#!/d}' jsonpath_ng/bin/jsonpath.py cp tests/test_jsonpath_rw_ext.py /tmp %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/jsonpath_ng %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -78,6 +79,7 @@ $python -m pytest %license LICENSE %doc README.rst History.md %python_alternative %{_bindir}/jsonpath_ng -%{python_sitelib}/jsonpath_ng* +%{python_sitelib}/jsonpath_ng +%{python_sitelib}/jsonpath_ng-%{version}.dist-info %changelog