* [Buildroot] [PATCH 1/2] support/testing: add new test for python-jmespath
@ 2022-06-14 16:47 Raphaël Mélotte
2022-06-14 16:47 ` [Buildroot] [PATCH 2/2] package/python-jmespath: bump to version 1.0.0 Raphaël Mélotte
2022-07-22 21:22 ` [Buildroot] [PATCH 1/2] support/testing: add new test for python-jmespath Thomas Petazzoni via buildroot
0 siblings, 2 replies; 3+ messages in thread
From: Raphaël Mélotte @ 2022-06-14 16:47 UTC (permalink / raw)
To: buildroot; +Cc: Raphaël Mélotte, Ricardo Martincoski
Add a new rudimentary test inspired by the examples from jmespath's
README file ([1]).
[1]: https://github.com/jmespath/jmespath.py/blob/develop/README.rst
Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
---
.../testing/tests/package/sample_python_jmespath.py | 4 ++++
.../testing/tests/package/test_python_jmespath.py | 12 ++++++++++++
2 files changed, 16 insertions(+)
create mode 100644 support/testing/tests/package/sample_python_jmespath.py
create mode 100644 support/testing/tests/package/test_python_jmespath.py
diff --git a/support/testing/tests/package/sample_python_jmespath.py b/support/testing/tests/package/sample_python_jmespath.py
new file mode 100644
index 0000000000..aefccd4fd8
--- /dev/null
+++ b/support/testing/tests/package/sample_python_jmespath.py
@@ -0,0 +1,4 @@
+import jmespath
+expression = jmespath.compile('foo.bar')
+res = expression.search({'foo': {'bar': 'baz'}})
+assert res == "baz", "expression.search failed"
diff --git a/support/testing/tests/package/test_python_jmespath.py b/support/testing/tests/package/test_python_jmespath.py
new file mode 100644
index 0000000000..80fd09fdde
--- /dev/null
+++ b/support/testing/tests/package/test_python_jmespath.py
@@ -0,0 +1,12 @@
+from tests.package.test_python import TestPythonPackageBase
+
+
+class TestPythonPy3Jmespath(TestPythonPackageBase):
+ __test__ = True
+ config = TestPythonPackageBase.config + \
+ """
+ BR2_PACKAGE_PYTHON3=y
+ BR2_PACKAGE_PYTHON_JMESPATH=y
+ """
+ sample_scripts = ["tests/package/sample_python_jmespath.py"]
+ timeout = 10
--
2.35.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 2/2] package/python-jmespath: bump to version 1.0.0
2022-06-14 16:47 [Buildroot] [PATCH 1/2] support/testing: add new test for python-jmespath Raphaël Mélotte
@ 2022-06-14 16:47 ` Raphaël Mélotte
2022-07-22 21:22 ` [Buildroot] [PATCH 1/2] support/testing: add new test for python-jmespath Thomas Petazzoni via buildroot
1 sibling, 0 replies; 3+ messages in thread
From: Raphaël Mélotte @ 2022-06-14 16:47 UTC (permalink / raw)
To: buildroot; +Cc: Raphaël Mélotte, Asaf Kahlon
While at it, remove the md5 hash as there is already a sha256 hash.
Changelog: https://github.com/jmespath/jmespath.py/blob/develop/CHANGELOG.rst
Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
---
package/python-jmespath/python-jmespath.hash | 5 ++---
package/python-jmespath/python-jmespath.mk | 4 ++--
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/package/python-jmespath/python-jmespath.hash b/package/python-jmespath/python-jmespath.hash
index 986db2e002..a1c64a121e 100644
--- a/package/python-jmespath/python-jmespath.hash
+++ b/package/python-jmespath/python-jmespath.hash
@@ -1,5 +1,4 @@
-# md5, sha256 from https://pypi.org/pypi/jmespath/json
-md5 65bdcb5fa5bcf1cc710ffa508e78e408 jmespath-0.10.0.tar.gz
-sha256 b85d0567b8666149a93172712e68920734333c0ce7e89b78b3e987f71e5ed4f9 jmespath-0.10.0.tar.gz
+# sha256 from https://pypi.org/pypi/jmespath/json
+sha256 a490e280edd1f57d6de88636992d05b71e97d69a26a19f058ecf7d304474bf5e jmespath-1.0.0.tar.gz
# Locally computed sha256 checksums
sha256 66b313cce80ed0623fc7db3f24863a0c80fd83eb341a46b57864158ae74faa56 LICENSE.txt
diff --git a/package/python-jmespath/python-jmespath.mk b/package/python-jmespath/python-jmespath.mk
index cf11dedb60..48b19e8494 100644
--- a/package/python-jmespath/python-jmespath.mk
+++ b/package/python-jmespath/python-jmespath.mk
@@ -4,9 +4,9 @@
#
################################################################################
-PYTHON_JMESPATH_VERSION = 0.10.0
+PYTHON_JMESPATH_VERSION = 1.0.0
PYTHON_JMESPATH_SOURCE = jmespath-$(PYTHON_JMESPATH_VERSION).tar.gz
-PYTHON_JMESPATH_SITE = https://files.pythonhosted.org/packages/3c/56/3f325b1eef9791759784aa5046a8f6a1aff8f7c898a2e34506771d3b99d8
+PYTHON_JMESPATH_SITE = https://files.pythonhosted.org/packages/06/7e/44686b986ef9ca6069db224651baaa8300b93af2a085a5b135997bf659b3
PYTHON_JMESPATH_SETUP_TYPE = setuptools
PYTHON_JMESPATH_LICENSE = MIT
PYTHON_JMESPATH_LICENSE_FILES = LICENSE.txt
--
2.35.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/2] support/testing: add new test for python-jmespath
2022-06-14 16:47 [Buildroot] [PATCH 1/2] support/testing: add new test for python-jmespath Raphaël Mélotte
2022-06-14 16:47 ` [Buildroot] [PATCH 2/2] package/python-jmespath: bump to version 1.0.0 Raphaël Mélotte
@ 2022-07-22 21:22 ` Thomas Petazzoni via buildroot
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-07-22 21:22 UTC (permalink / raw)
To: Raphaël Mélotte; +Cc: Ricardo Martincoski, buildroot
On Tue, 14 Jun 2022 18:47:53 +0200
Raphaël Mélotte <raphael.melotte@mind.be> wrote:
> Add a new rudimentary test inspired by the examples from jmespath's
> README file ([1]).
>
> [1]: https://github.com/jmespath/jmespath.py/blob/develop/README.rst
>
> Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
> ---
> .../testing/tests/package/sample_python_jmespath.py | 4 ++++
> .../testing/tests/package/test_python_jmespath.py | 12 ++++++++++++
> 2 files changed, 16 insertions(+)
> create mode 100644 support/testing/tests/package/sample_python_jmespath.py
> create mode 100644 support/testing/tests/package/test_python_jmespath.py
Thanks, both applied to master. On the first patch, I also added you to
the DEVELOPERS file for the new test case (thanks for adding it!).
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-07-22 21:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-14 16:47 [Buildroot] [PATCH 1/2] support/testing: add new test for python-jmespath Raphaël Mélotte
2022-06-14 16:47 ` [Buildroot] [PATCH 2/2] package/python-jmespath: bump to version 1.0.0 Raphaël Mélotte
2022-07-22 21:22 ` [Buildroot] [PATCH 1/2] support/testing: add new test for python-jmespath Thomas Petazzoni via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.