diff mbox series

[meta-python,3/3] python3-fastjsonschema: Upgrade 2.18.0 -> 2.20.0

Message ID 20240814115435.808089-3-leon.anavi@konsulko.com
State Accepted
Headers show
Series [meta-python,1/3] python3-watchdog: Upgrade 4.0.1 -> 4.0.2 | expand

Commit Message

Leon Anavi Aug. 14, 2024, 11:54 a.m. UTC
Upgrade to release 2.20.0. Added validations at compile time:

- required must have unique items
- checking if schema is not allowing required items (item is
  required, but is not listed in properties)

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
 ...jsonschema_2.18.0.bb => python3-fastjsonschema_2.20.0.bb} | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-fastjsonschema_2.18.0.bb => python3-fastjsonschema_2.20.0.bb} (84%)

Comments

Tim Orling Aug. 15, 2024, 1:59 a.m. UTC | #1
Did you double check the tests are included in the sdist tarball? That is
why it was git fetcher.

In other words did you build meta-Python-image-ptest-python3-fastjson and
run -c testimage?

On Wed, Aug 14, 2024 at 4:54 AM Leon Anavi via lists.openembedded.org
<leon.anavi=konsulko.com@lists.openembedded.org> wrote:

> Upgrade to release 2.20.0. Added validations at compile time:
>
> - required must have unique items
> - checking if schema is not allowing required items (item is
>   required, but is not listed in properties)
>
> Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
> ---
>  ...jsonschema_2.18.0.bb => python3-fastjsonschema_2.20.0.bb} | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
>  rename meta-python/recipes-devtools/python/{
> python3-fastjsonschema_2.18.0.bb => python3-fastjsonschema_2.20.0.bb}
> (84%)
>
> diff --git a/meta-python/recipes-devtools/python/
> python3-fastjsonschema_2.18.0.bb b/meta-python/recipes-devtools/python/
> python3-fastjsonschema_2.20.0.bb
> similarity index 84%
> rename from meta-python/recipes-devtools/python/
> python3-fastjsonschema_2.18.0.bb
> rename to meta-python/recipes-devtools/python/
> python3-fastjsonschema_2.20.0.bb
> index b2e969c5c..0524a73b6 100644
> --- a/meta-python/recipes-devtools/python/python3-fastjsonschema_2.18.0.bb
> +++ b/meta-python/recipes-devtools/python/python3-fastjsonschema_2.20.0.bb
> @@ -6,15 +6,12 @@ HOMEPAGE = "
> https://github.com/seznam/python-fastjsonschema"
>  LICENSE = "BSD-3-Clause"
>  LIC_FILES_CHKSUM = "file://LICENSE;md5=18950e8362b69c0c617b42b8bd8e7532"
>
> -SRCREV = "756540088687cda351390f687b92e602feaa7dc6"
> -PYPI_SRC_URI = "git://
> github.com/horejsek/python-fastjsonschema;protocol=https;branch=master"
> +SRC_URI[sha256sum] =
> "3d48fc5300ee96f5d116f10fe6f28d938e6008f59a6a025c2649475b87f76a23"
>
>  SRC_URI += "file://run-ptest"
>
>  inherit ptest pypi setuptools3
>
> -S = "${WORKDIR}/git"
> -
>  do_install_ptest() {
>         install -d ${D}${PTEST_PATH}/tests
>         cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
> --
> 2.39.2
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#111803):
> https://lists.openembedded.org/g/openembedded-devel/message/111803
> Mute This Topic: https://lists.openembedded.org/mt/107893158/924729
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> ticotimo@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
Leon Anavi Aug. 15, 2024, 9:17 a.m. UTC | #2
Hi Tim,

On 15.08.24 г. 4:59 ч., Tim Orling wrote:
> Did you double check the tests are included in the sdist tarball? That 
> is why it was git fetcher.

Yes, fastjsonschema-2.20.0.tar.gz includes directory "tests".
>
> In other words did you build meta-Python-image-ptest-python3-fastjson 
> and run -c testimage?
No, but I tested manually with core-image-minimal that includes 
python3-fastjsonschema.

Best regards,
Leon

>
> On Wed, Aug 14, 2024 at 4:54 AM Leon Anavi via lists.openembedded.org 
> <http://lists.openembedded.org> 
> <leon.anavi=konsulko.com@lists.openembedded.org> wrote:
>
>     Upgrade to release 2.20.0. Added validations at compile time:
>
>     - required must have unique items
>     - checking if schema is not allowing required items (item is
>       required, but is not listed in properties)
>
>     Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
>     ---
>      ...jsonschema_2.18.0.bb <http://jsonschema_2.18.0.bb> =>
>     python3-fastjsonschema_2.20.0.bb
>     <http://python3-fastjsonschema_2.20.0.bb>} | 5 +----
>      1 file changed, 1 insertion(+), 4 deletions(-)
>      rename
>     meta-python/recipes-devtools/python/{python3-fastjsonschema_2.18.0.bb
>     <http://python3-fastjsonschema_2.18.0.bb> =>
>     python3-fastjsonschema_2.20.0.bb
>     <http://python3-fastjsonschema_2.20.0.bb>} (84%)
>
>     diff --git
>     a/meta-python/recipes-devtools/python/python3-fastjsonschema_2.18.0.bb
>     <http://python3-fastjsonschema_2.18.0.bb>
>     b/meta-python/recipes-devtools/python/python3-fastjsonschema_2.20.0.bb
>     <http://python3-fastjsonschema_2.20.0.bb>
>     similarity index 84%
>     rename from
>     meta-python/recipes-devtools/python/python3-fastjsonschema_2.18.0.bb
>     <http://python3-fastjsonschema_2.18.0.bb>
>     rename to
>     meta-python/recipes-devtools/python/python3-fastjsonschema_2.20.0.bb
>     <http://python3-fastjsonschema_2.20.0.bb>
>     index b2e969c5c..0524a73b6 100644
>     ---
>     a/meta-python/recipes-devtools/python/python3-fastjsonschema_2.18.0.bb
>     <http://python3-fastjsonschema_2.18.0.bb>
>     +++
>     b/meta-python/recipes-devtools/python/python3-fastjsonschema_2.20.0.bb
>     <http://python3-fastjsonschema_2.20.0.bb>
>     @@ -6,15 +6,12 @@ HOMEPAGE =
>     "https://github.com/seznam/python-fastjsonschema"
>      LICENSE = "BSD-3-Clause"
>      LIC_FILES_CHKSUM =
>     "file://LICENSE;md5=18950e8362b69c0c617b42b8bd8e7532"
>
>     -SRCREV = "756540088687cda351390f687b92e602feaa7dc6"
>     -PYPI_SRC_URI =
>     "git://github.com/horejsek/python-fastjsonschema;protocol=https;branch=master
>     <http://github.com/horejsek/python-fastjsonschema;protocol=https;branch=master>"
>     +SRC_URI[sha256sum] =
>     "3d48fc5300ee96f5d116f10fe6f28d938e6008f59a6a025c2649475b87f76a23"
>
>      SRC_URI += "file://run-ptest"
>
>      inherit ptest pypi setuptools3
>
>     -S = "${WORKDIR}/git"
>     -
>      do_install_ptest() {
>             install -d ${D}${PTEST_PATH}/tests
>             cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
>     -- 
>     2.39.2
>
>
>     -=-=-=-=-=-=-=-=-=-=-=-
>     Links: You receive all messages sent to this group.
>     View/Reply Online (#111803):
>     https://lists.openembedded.org/g/openembedded-devel/message/111803
>     Mute This Topic: https://lists.openembedded.org/mt/107893158/924729
>     Group Owner: openembedded-devel+owner@lists.openembedded.org
>     <mailto:openembedded-devel%2Bowner@lists.openembedded.org>
>     Unsubscribe:
>     https://lists.openembedded.org/g/openembedded-devel/unsub
>     [ticotimo@gmail.com]
>     -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-fastjsonschema_2.18.0.bb b/meta-python/recipes-devtools/python/python3-fastjsonschema_2.20.0.bb
similarity index 84%
rename from meta-python/recipes-devtools/python/python3-fastjsonschema_2.18.0.bb
rename to meta-python/recipes-devtools/python/python3-fastjsonschema_2.20.0.bb
index b2e969c5c..0524a73b6 100644
--- a/meta-python/recipes-devtools/python/python3-fastjsonschema_2.18.0.bb
+++ b/meta-python/recipes-devtools/python/python3-fastjsonschema_2.20.0.bb
@@ -6,15 +6,12 @@  HOMEPAGE = "https://github.com/seznam/python-fastjsonschema"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=18950e8362b69c0c617b42b8bd8e7532"
 
-SRCREV = "756540088687cda351390f687b92e602feaa7dc6"
-PYPI_SRC_URI = "git://github.com/horejsek/python-fastjsonschema;protocol=https;branch=master"
+SRC_URI[sha256sum] = "3d48fc5300ee96f5d116f10fe6f28d938e6008f59a6a025c2649475b87f76a23"
 
 SRC_URI += "file://run-ptest"
 
 inherit ptest pypi setuptools3
 
-S = "${WORKDIR}/git"
-
 do_install_ptest() {
 	install -d ${D}${PTEST_PATH}/tests
 	cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/