Skip to contentSkip to conversation

anyjson: Drop recipe

PATCH New Khem Raj 1 participant 3 messages Feb 24, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 anyjson: Drop recipe

anyjson is inactive [1] moreover does not have wheel support

there is drop-in replacement to use oslo.serialization if needed we can accept such a recipe if submitted

[1] https://snyk.io/advisor/python/anyjson

---
 .../packagegroups/packagegroup-meta-python.bb |  2 --
 .../python/python3-anyjson_0.3.3.bb           | 28 -------------------
 2 files changed, 30 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-anyjson_0.3.3.bb
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +0 -2
index d90e6551e7..2b20937f78 100644
@@ -26,7 +26,6 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-alembic \
     python3-ansi2html \
     python3-ansicolors \
-    python3-anyjson \
     python3-appdirs \
     python3-apply-defaults \
     python3-argcomplete \
@@ -485,7 +484,6 @@ RDEPENDS:packagegroup-meta-python3-ptest = "\
     python3-jinja2-ptest \
     python3-markupsafe-ptest \
     python3-ansicolors-ptest \
-    python3-anyjson-ptest \
     python3-appdirs-ptest \
     python3-backports-functools-lru-cache-ptest \
     python3-bcrypt-ptest \
meta-python/recipes-devtools/python/python3-anyjson_0.3.3.bb deleted +0 -28
deleted file mode 100644
index 2b8abb8b80..0000000000
@@ -1,28 +0,0 @@
-SUMMARY = "Wraps the best available JSON implementation available in a common interface"
-DESCRIPTION = "Anyjson loads whichever is the fastest JSON module installed and  \
-provides a uniform API regardless of which JSON implementation is used."
-HOMEPAGE = "https://bitbucket.org/runeh/anyjson"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=989aa97e73c912a83a3c873fa11deb08"
-
-inherit pypi setuptools3 ptest
-
-SRC_URI += " \
-	file://0001-setup.py-Do-not-use-2to3.patch \
-	file://run-ptest \
-"
-
-RDEPENDS:${PN}-ptest += " \
-	${PYTHON_PN}-pytest \
-	${PYTHON_PN}-nose \
-"
-
-do_install_ptest() {
-	install -d ${D}${PTEST_PATH}/tests
-	cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
-}
-
-SRC_URI[md5sum] = "2ea28d6ec311aeeebaf993cb3008b27c"
-SRC_URI[sha256sum] = "37812d863c9ad3e35c0734c42e0bf0320ce8c3bed82cd20ad54cb34d158157ba"
-
-RDEPENDS:${PN} += "${PYTHON_PN}-simplejson"
Signature · 1 line
2.35.1
author
#1 lore raw

PATCH 2/2 python3-blinker: Migrate to use pytest instead of nose for testing

Nose wont work well with python 3.9+ anyway

---
 ...se-pytest-instead-of-deprecated-nose.patch | 36 +++++++++++++++++++
 .../python/python3-blinker_1.4.bb             |  2 +-
 2 files changed, 37 insertions(+), 1 deletion(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-blinker/0001-use-pytest-instead-of-deprecated-nose.patch
meta-python/recipes-devtools/python/python3-blinker/0001-use-pytest-instead-of-deprecated-nose.patch new file +36 -0
new file mode 100644
index 0000000000..a04c79b1e0
@@ -0,0 +1,36 @@
+From 9750d01118ee59ab174525e30d987065b69c0538 Mon Sep 17 00:00:00 2001
+From: pgajdos <[email protected]>
+Date: Wed, 8 Jul 2020 15:22:19 +0200
+Subject: [PATCH] use pytest instead of deprecated nose
+
+Upstream-Status: Submitted [https://github.com/jek/blinker/pull/60]
+Signed-off-by: Khem Raj <[email protected]>
+---
+ tests/test_signals.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tests/test_signals.py b/tests/test_signals.py
+index 9771e40..ccbc35b 100644
+--- a/tests/test_signals.py
++++ b/tests/test_signals.py
+@@ -4,7 +4,7 @@ import time
+ 
+ import blinker
+ 
+-from nose.tools import assert_raises
++import pytest
+ 
+ 
+ jython = sys.platform.startswith('java')
+@@ -232,7 +232,7 @@ def test_meta_connect_failure():
+         pass
+     sig = blinker.Signal()
+ 
+-    assert_raises(TypeError, sig.connect, receiver)
++    pytest.raises(TypeError, sig.connect, receiver)
+     assert not sig.receivers
+     assert not sig._by_receiver
+     assert sig._by_sender == {blinker.base.ANY_ID: set()}
+-- 
+2.35.1
+
meta-python/recipes-devtools/python/python3-blinker_1.4.bb +1 -1
index 397fdcfb05..08a961f938 100644
@@ -8,12 +8,12 @@ SRC_URI[sha256sum] = "471aee25f3992bd325afa3772f1063dbdbbca947a041b8b89466dc00d6
 inherit pypi setuptools3 ptest
 
 SRC_URI += " \
+	file://0001-use-pytest-instead-of-deprecated-nose.patch \
 	file://run-ptest \
 "
 
 RDEPENDS:${PN}-ptest += " \
 	${PYTHON_PN}-pytest \
-	${PYTHON_PN}-nose \
 "
 
 do_install_ptest() {
Signature · 1 line
2.35.1
author
#2 lore raw

PATCH 1/3 python3-dt-schema: remove recipe

In reply to Khem Raj

From: Christian Eggers <[email protected]>

Since 2021-11-23 this is on oe-core:
d56fcb5806 ("python: introduce python3-dtschema")

The recipe in oe-core is named python3-dtschema (without dash between 'dt' and 'schema'). It points to the correct GIT repository and uses a much more recent version.

---
 .../packagegroups/packagegroup-meta-python.bb     |  1 -
 .../python/python3-dt-schema_git.bb               | 15 ---------------
 2 files changed, 16 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-dt-schema_git.bb
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +0 -1
index 1c1ded7181a..319d49267cc 100644
@@ -113,7 +113,6 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-docopt \
     python3-docutils \
     python3-dominate \
-    python3-dt-schema \
     python3-dynamic-dispatch \
     python3-ecdsa \
     python3-editor \
meta-python/recipes-devtools/python/python3-dt-schema_git.bb deleted +0 -15
deleted file mode 100644
index 305cfa6b0f2..00000000000
@@ -1,15 +0,0 @@
-SUMMARY = "Tooling for devicetree validation using YAML and jsonschema"
-AUTHOR = "Rob Herring"
-
-LICENSE = "BSD-2-Clause"
-LIC_FILES_CHKSUM = "file://setup.py;beginline=2;endline=3;md5=c795d4924c5f739424fa8d9b569c6659"
-
-inherit setuptools3
-
-SRC_URI = "git://github.com/robherring/dt-schema.git;branch=master;protocol=https"
-SRCREV = "5009e47c1c76e48871f5988e08dad61f3c91196b"
-PV = "0.1+git${SRCPV}"
-
-S = "${WORKDIR}/git"
-
-RDEPENDS:${PN} = "python3-jsonschema python3-ruamel-yaml"

From fee18fc3a33afa461ae31606c2966487e4cd45ac Mon Sep 17 00:00:00 2001
From: Leon Anavi <[email protected]>
Date: Mon, 21 Feb 2022 21:22:55 +0200
Subject: [PATCH 2/3] python3-itsdangerous: Upgrade 2.0.1 -> 2.1.0

Upgrade to release 2.1.0:

- Drop support for Python 3.6
- Remove previously deprecated code

---
 ...hon3-itsdangerous_2.0.1.bb => python3-itsdangerous_2.1.0.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-itsdangerous_2.0.1.bb => python3-itsdangerous_2.1.0.bb} (82%)
meta-python/recipes-devtools/python/python3-itsdangerous_2.1.0.bb renamed from meta-python/recipes-devtools/python/python3-itsdangerous_2.0.1.bb +1 -1
similarity index 82%
rename from meta-python/recipes-devtools/python/python3-itsdangerous_2.0.1.bb
rename to meta-python/recipes-devtools/python/python3-itsdangerous_2.1.0.bb
index 48a77dc8f88..30d23c65696 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "http://github.com/mitsuhiko/itsdangerous"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=4cda9a0ebd516714f360b0e9418cfb37"
 
-SRC_URI[sha256sum] = "9e724d68fc22902a1435351f84c3fb8623f303fffcc566a4cb952df8c572cff0"
+SRC_URI[sha256sum] = "d848fcb8bc7d507c4546b448574e8a44fc4ea2ba84ebf8d783290d53e81992f5"
 
 inherit pypi setuptools3
 

From 52fbba2c3c15f9522ed66c0ba2baff9a36698489 Mon Sep 17 00:00:00 2001
From: Leon Anavi <[email protected]>
Date: Mon, 21 Feb 2022 21:22:56 +0200
Subject: [PATCH 3/3] python3-croniter: Upgrade 1.2.0 -> 1.3.4

Upgrade to release 1.3.4:

- Add a way to make next() easier to use
- Restore compat with python2
- Fix regressions with set_current
- Fix compat for tests under py27

---
 .../{python3-croniter_1.2.0.bb => python3-croniter_1.3.4.bb}    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-croniter_1.2.0.bb => python3-croniter_1.3.4.bb} (78%)
meta-python/recipes-devtools/python/python3-croniter_1.3.4.bb renamed from meta-python/recipes-devtools/python/python3-croniter_1.2.0.bb +1 -1
similarity index 78%
rename from meta-python/recipes-devtools/python/python3-croniter_1.2.0.bb
rename to meta-python/recipes-devtools/python/python3-croniter_1.3.4.bb
index 13dbf155c78..4158dbe7c46 100644
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://docs/LICENSE;md5=b8ee59850b882cbf623188489ea748e2"
 
 PYPI_PACKAGE = "croniter"
 
-SRC_URI[sha256sum] = "094422f6aeb9ed646714393503fa388afe4f846e110e1997fea5794e2085c2d7"
+SRC_URI[sha256sum] = "3169365916834be654c2cac57ea14d710e742f8eb8a5fce804f6ce548da80bf2"
 
 inherit pypi setuptools3