Skip to contentSkip to conversation

python3: improve run-time dependencies situation

PATCH Superseded Bartosz Golaszewski 3 participants 99 messages May 31, 2023 – Jun 6, 2023 Arm STM32

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover python3: improve run-time dependencies situation

From: Bartosz Golaszewski <[email protected]>

A significant number of python recipes don't specify all the run-time dependencies required to at least be able to import all the installed modules. This series is the result of a semi-automated run through all python recipes in meta-python, building minimal images and verifying that there are no import exceptions.

Most patches just add missing RDEPENDS entries where needed. Some tweak the coding style if it's inconsistent. There are a few new packages on which existing recipes depend at run-time but which were not provided in meta-python previously.

This probably doesn't cover all the corner cases. Ptest packages were not tested with the assumption that they are being run somewhere and verified already.

There are also other run-time dependencies that may fail - like python code executing external programs that may be missing or ctypes opening shared objects at run-time later than at import-time but in general this series should at least improve the situation significantly.

There's some space for QA improvement in OE-core - like maybe raising a warning if a python recipe doesn't specify any RDEPENDS which usually means they are missing (but the module can also be very simple so this cannot be a hard fail).

Bartosz Golaszewski (149):
python3-pyparted: add missing run-time dependencies
python3-send2trash: add missing run-time dependencies
python3-pywbem: drop unneeded class from RDEPENDS
python3-pywbem: don't use PYTHON_PN
python3-pywbem: order RDEPENDS alphabetically
python3-pywbem: add missing run-time dependencies
python3-mock: cleanup RDEPENDS
python3-mock: add missing run-time dependencies
python3-cson: fix run-time dependencies
python3-ldap: don't use PYTHON_PN
python3-ldap: add missing run-time dependencies
python3-pyrad: add missing run-time dependencies
python3-html2text: add missing run-time dependencies
python3-parse: don't use PYTHON_PN and improve coding style
python3-parse: add missing run-time dependencies
python3-meld3: add missing run-time dependencies
python3-pyiface: add missing run-time dependencies
python3-mpmath: add missing run-time dependencies
python3-uswid: add missing run-time dependencies
python3-xmlrunner: add missing run-time dependencies
python3-editor: add missing run-time dependencies
python3-pykwalify: don't use PYTHON_PN and improve coding style
python3-pykwalify: add missing run-time dependencies
python3-iperf: add missing run-time dependencies
python3-sdnotify: add missing run-time dependencies
python3-service-identity: add missing run-time dependencies
python3-sqlsoup: add missing run-time dependencies
python3-sqlalchemy: don't use PYTHON_PN and improve coding style
python3-sqlalchemy: add missing run-time dependencies
python3-pure-eval: add missing run-time dependencies
python3-stack-data: fix coding style
python3-stack-data: add missing run-time dependencies
python3-sympy: add missing run-time dependencies
python3-thrift: don't use PYTHON_PN and improve coding style
python3-thrift: add missing run-time dependencies
python3-tomlkit: add missing run-time dependencies
python3-tornado: drop ${PN} from RDEPENDS
python3-tornado: fix coding style
python3-tornado: remove the testing submodule from FILES:${PN}-test
python3-tornado: add missing run-time dependencies
python3-trustme: add missing run-time dependencies
python3-twofish: add missing run-time dependencies
python3-txws: add missing run-time dependencies
python3-web3: add missing run-time dependencies
python3-uefi-firmware: add missing run-time dependencies
python3-websockets: fix coding style
python3-websockets: add missing run-time dependencies
python3-xlrd: fix coding style
python3-xlrd: add missing run-time dependencies
python3-versiontools: add missing run-time dependencies
python3-typeguard: add missing run-time dependencies
python3-process-tests: add missing run-time dependencies
python3-pyatspi: add missing run-time dependencies
python3-pydantic: don't use PYTHON_PN and improve coding style
python3-pydantic: add missing run-time dependencies
python3-python-vlc: add missing run-time dependencies
python3-redis: fix coding style
python3-redis: add missing run-time dependencies
python3-raven: add missing run-time dependencies
python3-pypng: new package
python3-qrcode: add missing run-time dependencies
python3-pyusb: fix run-time dependencies
python3-pytest-mock: add missing run-time dependencies
python3-pyroute2: fix coding style
python3-fcntl: add missing run-time dependencies python3-pyproject-metadata: add missing run-time dependencies
python3-pyproj: don't use PYTHON_PN
python3-pyproj: drop unnecessary run-time dependency
python3-pyproj: add missing run-time dependencies
python3-classes: new package
python3-pylyrics: add missing run-time dependencies
python3-pyjwt: stop using PYTHON_PN
python3-pyjwt: add missing run-time dependencies
python3-javaobj-py3: add missing run-time dependencies
python3-pyjks: stop using PYTHON_PN
python3-pyjks: fix run-time dependencies
python3-pyexpect: add missing run-time dependencies
python3-pynetlinux: fix relative imports
python3-pynetlinux: add missing run-time dependencies
python3-pickleshare: add missing run-time dependencies
python3-petact: add missing run-time dependencies
python3-pefile: add missing run-time dependencies
python3-jsonpath-rw: add missing run-time dependencies
python3-jsonrpcclient: add missing run-time dependencies
python3-jstyleson: add missing run-time dependencies
python3-kconfiglib: add missing run-time dependencies
python3-libevdev: add missing run-time dependencies
python3-linux-procfs: add missing run-time dependencies
python3-lockfile: add missing run-time dependencies
python3-msm: fix coding style
python3-lazy: new recipe
python3-msm: add missing run-time dependencies
python3-netaddr: stop using PYTHON_PN
python3-netaddr: add missing run-time dependencies
python3-ninja-syntax: new package
python3-ninja: add missing run-time dependencies
python3-nmap: add missing run-time dependencies
python3-oslash: add missing run-time dependencies
python3-padaos: add missing run-time dependencies
python3-padatious: add missing run-time dependencies
python3-pako: add missing run-time dependencies
python3-paramiko: stop using PYTHON_PN
python3-paramiko: add missing run-time dependencies
python3-path: fix coding style
python3-path: add missing run-time dependencies
python3-ecdsa: don't install tests
python3-et-xmlfile: fix coding style
python3-et-xmlfile: add missing run-time dependencies
python3-flask-user: fix coding style
python3-flask-user: add missing run-time dependencies
python3-isort: fix coding style
python3-isort: add missing run-time dependencies
python3-isodate: stop using PYTHON_PN
python3-isodate: add missing run-time dependencies
python-idna-ssl: add missing run-time dependencies
python3-hpack: add missing run-time dependencies
python3-h11: add missing run-time dependencies
python3-gsocketpool: drop unneeded DEPENDS
python3-gsocketpool: stop using PYTHON_PN
python3-gsocketpool: add missing run-time dependencies
python3-flask-mail: stop using PYTHON_PN
python3-flask-mail: add missing run-time dependencies
python3-flask-sijax: stop using PYTHON_PN
python3-flask-sijax: add missing run-time dependencies
python3-flask-script: remove recipe
python3-aioserial: fix coding style
python3-aioserial: add missing run-time dependencies
python3-aspectlib: add missing run-time dependencies
python3-asyncio-throttle: add missing run-time dependencies
python3-attrdict3: add missing run-time dependencies
python3-betamax: add missing run-time dependencies
python3-binwalk: add missing run-time dependencies
python3-can: fix coding style
python3-can: add missing run-time dependencies
python3-click-spinner: add missing run-time dependencies
python3-colorlog: add missing run-time dependencies
python3-colorzero: add missing run-time dependencies
python3-configobj: fix coding style
python3-configobj: add missing run-time dependencies
python3-configshell-fb: add missing run-time dependencies
python3-coverage: fix coding style and RDEPENDS
python3-custom-inherit: add missing run-time dependencies
python3-dateparser: fix coding style
python3-dateparser: add missing run-time dependencies
python3-tzlocal: fix coding style
python3-tzlocal: add missing run-time dependencies
python3-dbus-next: add missing run-time dependencies
python3-defusedxml: add missing run-time dependencies python3-setuptools-scm-git-archive: add missing run-time dependencies

 meta-oe/recipes-security/nmap/nmap_7.80.bb    |  6 +-
 .../python3-gsocketpool_0.1.6.bb              |  7 ++-
 .../python-hpack/python3-hpack_4.0.0.bb       |  2 +
 .../python-thrift/python3-thrift_0.16.0.bb    |  9 +--
 .../python-txws/python3-txws_0.9.1.bb         |  5 ++
 .../packagegroups/packagegroup-meta-python.bb |  1 -
 .../python/python-flask-script.inc            | 12 ----
 .../python/python-flask-sijax.inc             |  6 +-
 .../python/python-idna-ssl.inc                |  5 ++
 .../python/python3-aioserial_1.3.1.bb         |  6 +-
 .../python/python3-aspectlib_2.0.0.bb         |  5 +-
 .../python/python3-asyncio-throttle_1.0.2.bb  |  2 +
 .../python/python3-betamax_0.8.1.bb           |  6 +-
 .../python/python3-binwalk_2.3.3.bb           |  8 ++-
 .../python/python3-can_4.2.1.bb               | 28 +++++----
 .../python/python3-classes_0.4.1.bb           | 10 ++++
 .../python/python3-click-spinner_0.1.10.bb    |  2 +
 .../python/python3-colorlog_6.7.0.bb          |  2 +
 .../python/python3-colorzero_2.0.bb           |  5 +-
 .../python/python3-configobj_5.0.8.bb         |  5 +-
 .../python/python3-configshell-fb_1.1.29.bb   |  7 ++-
 .../python/python3-coverage_7.2.6.bb          | 19 +++---
 .../python/python3-custom-inherit_2.3.1.bb    |  5 ++
 .../python/python3-dateparser_1.1.8.bb        | 11 ++--
 .../python/python3-dbus-next_0.2.3.bb         |  5 ++
 .../python/python3-defusedxml_0.7.1.bb        |  2 +
 .../python/python3-ecdsa_0.18.0.bb            |  4 ++
 .../python/python3-editor_1.0.4.bb            |  5 ++
 .../python/python3-et-xmlfile_1.1.0.bb        |  8 ++-
 .../python/python3-flask-mail_0.9.1.bb        |  5 +-
 .../python/python3-flask-script_2.0.6.bb      |  2 -
 .../python/python3-flask-user_0.6.19.bb       | 13 ++--
 .../python/python3-h11_0.14.0.bb              |  2 +
 .../python/python3-html2text_2020.1.16.bb     |  2 +
 .../python/python3-iperf_0.1.11.bb            |  6 ++
 .../python/python3-isodate_0.6.1.bb           |  3 +-
 .../python/python3-isort_5.12.0.bb            | 16 ++---
 .../python/python3-javaobj-py3_0.4.3.bb       |  5 ++
 .../python/python3-jsonpath-rw_1.4.0.bb       |  7 ++-
 .../python/python3-jsonrpcclient_4.0.2.bb     |  4 +-
 .../python/python3-jstyleson_0.0.2.bb         |  2 +
 .../python/python3-kconfiglib_14.1.0.bb       |  6 ++
 .../python/python3-lazy_1.5.bb                |  8 +++
 .../python/python3-libevdev_0.11.bb           |  5 ++
 .../python/python3-linux-procfs_0.7.1.bb      |  2 +
 .../python/python3-lockfile_0.12.2.bb         |  5 +-
 .../python/python3-meld3_2.0.1.bb             |  6 ++
 .../python/python3-mock_5.0.2.bb              | 15 +++--
 .../python/python3-mpmath_1.3.0.bb            |  5 +-
 .../python/python3-msm_0.8.8.bb               | 14 ++++-
 .../python/python3-netaddr_0.8.0.bb           |  5 +-
 .../python/python3-ninja-syntax_1.7.2.bb      | 10 ++++
 .../python/python3-ninja_1.11.1.bb            |  7 ++-
 .../python/python3-oslash_0.6.3.bb            |  5 +-
 .../python/python3-padaos_0.1.10.bb           |  2 +
 .../python/python3-padatious_0.4.8.bb         |  8 +++
 .../python/python3-pako_0.3.1.bb              |  7 +++
 .../python/python3-paramiko_3.1.0.bb          | 11 ++--
 .../python/python3-parse_1.19.0.bb            | 13 ++--
 .../python/python3-path_16.6.0.bb             | 12 ++--
 .../python/python3-pefile_2023.2.7.bb         |  6 ++
 .../python/python3-petact_0.1.2.bb            |  6 ++
 .../python/python3-pickleshare_0.7.5.bb       |  2 +
 .../python/python3-process-tests_2.1.2.bb     |  6 ++
 .../python/python3-pure-eval_0.2.2.bb         |  5 ++
 .../python/python3-pyatspi_2.46.0.bb          |  2 +
 .../python/python3-pydantic_1.10.7.bb         | 19 +++---
 .../python/python3-pyexpect_1.0.22.bb         |  2 +
 .../python/python3-pyiface_git.bb             |  6 ++
 .../python/python3-pyjks_20.0.0.bb            | 12 ++--
 .../python/python3-pyjwt_2.7.0.bb             |  5 +-
 .../python/python3-pykwalify_1.8.0.bb         |  7 ++-
 .../python/python3-pylyrics_1.1.0.bb          |  8 ++-
 .../0002-Fixed-relative-imports.patch         | 60 +++++++++++++++++++
 .../python/python3-pynetlinux_1.1.bb          | 11 +++-
 .../python/python3-pypng_0.20220715.0.bb      |  8 +++
 .../python/python3-pyproj_3.5.0.bb            |  8 ++-
 .../python3-pyproject-metadata_0.7.1.bb       |  6 ++
 .../python/python3-pyrad_2.4.bb               |  8 +++
 .../python/python3-pyroute2_0.5.19.bb         | 33 +++++-----
 .../python/python3-pytest-mock_3.10.0.bb      |  6 ++
 .../python/python3-python-vlc_3.0.18122.bb    |  5 ++
 .../python/python3-pyusb_1.2.1.bb             |  2 +-
 .../python/python3-qrcode_7.4.2.bb            |  7 ++-
 .../python/python3-raven_6.10.0.bb            |  5 ++
 .../python/python3-redis_4.5.5.bb             | 12 ++--
 .../python/python3-sdnotify_0.3.2.bb          |  2 +
 .../python/python3-service-identity_21.1.0.bb |  6 ++
 .../python3-setuptools-scm-git-archive_1.1.bb |  1 +
 .../python/python3-sqlalchemy_2.0.15.bb       | 18 +++---
 .../python/python3-sqlsoup_0.9.1.bb           |  2 +
 .../python/python3-stack-data_0.6.2.bb        |  8 ++-
 .../python/python3-sympy_1.12.bb              |  5 +-
 .../python/python3-tomlkit_0.11.8.bb          |  6 ++
 .../python/python3-tornado_6.3.bb             | 22 +++++--
 .../python/python3-trustme_0.9.0.bb           |  7 +++
 .../python/python3-twofish_0.3.0.bb           |  2 +
 .../python/python3-typeguard_4.0.0.bb         |  5 ++
 .../python/python3-tzlocal_5.0.1.bb           |  7 ++-
 .../python/python3-uefi-firmware_1.10.bb      |  5 ++
 .../python/python3-uswid_git.bb               |  6 ++
 .../python/python3-versiontools_1.9.1.bb      |  2 +
 .../python/python3-web3_6.3.0.bb              |  2 +
 .../python/python3-websockets_11.0.3.bb       |  5 +-
 .../python/python3-xlrd_2.0.1.bb              | 10 +++-
 .../python/python3-xmlrunner_1.7.7.bb         |  2 +
 .../python3-attrdict3_2.0.2.bb                |  2 +
 .../python-cson/python3-cson_git.bb           |  3 +-
 .../python3-pyparted_3.12.0.bb                |  5 +-
 .../pywbem/python3-pywbem_1.6.1.bb            | 38 ++++++------
 .../send2trash/python3-send2trash_1.8.0.bb    |  2 +
 .../python/python3-ldap_3.4.3.bb              |  9 +--
 112 files changed, 649 insertions(+), 201 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python-flask-script.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-classes_0.4.1.bb
 delete mode 100644 meta-python/recipes-devtools/python/python3-flask-script_2.0.6.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-lazy_1.5.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-ninja-syntax_1.7.2.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-pynetlinux/0002-Fixed-relative-imports.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-pypng_0.20220715.0.bb
Signature · 1 line
2.39.2
#1 lore raw

PATCH 1/149 python3-pyparted: add missing run-time dependencies

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../python-pyparted/python3-pyparted_3.12.0.bb               | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta-python/recipes-extended/python-pyparted/python3-pyparted_3.12.0.bb +4 -1
index 9dd362766..7a0d3987d 100644
@@ -17,7 +17,10 @@ DEPENDS += "parted"
 
 RDEPENDS:${PN}:class-target += " \
     parted (>= 2.3) \
-    python3-stringold python3-codecs python3-math \
+    python3-codecs \
+    python3-math \
+    python3-numbers \
+    python3-stringold \
 "
 RDEPENDS:${PN}:class-native = ""
 
Signature · 1 line
2.39.2
#2 lore raw

PATCH 2/149 python3-send2trash: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-extended/send2trash/python3-send2trash_1.8.0.bb     | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-extended/send2trash/python3-send2trash_1.8.0.bb +2 -0
index 963351a2e..a20b0194f 100644
@@ -7,3 +7,5 @@ inherit pypi setuptools3
 SRC_URI[sha256sum] = "d2c24762fd3759860a0aff155e45871447ea58d2be6bdd39b5c8f966a0c99c2d"
 
 PYPI_PACKAGE = "Send2Trash"
+
+RDEPENDS:${PN} += "python3-datetime"
Signature · 1 line
2.39.2
#3 lore raw

PATCH 3/149 python3-pywbem: drop unneeded class from RDEPENDS

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

The native package has the same dependencies. Even if normally they are satisfied by python3-native, we should still use a global RDEPENDS.

---
 meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb +1 -1
index 71af06881..8b0383cf6 100644
@@ -27,7 +27,7 @@ DEPENDS += " \
     ${PYTHON_PN}-wheel-native \
 "
 
-RDEPENDS:${PN}:class-target += "\
+RDEPENDS:${PN} += "\
     ${PYTHON_PN}-datetime \
     ${PYTHON_PN}-io \
     ${PYTHON_PN}-netclient \
Signature · 1 line
2.39.2
#4 lore raw

PATCH 4/149 python3-pywbem: don't use PYTHON_PN

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

We no longer support python2. Drop PYTHON_PN and use python3 explicitly.

---
 .../pywbem/python3-pywbem_1.6.1.bb            | 34 +++++++++----------
 1 file changed, 17 insertions(+), 17 deletions(-)
meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb +17 -17
index 8b0383cf6..c84576382 100644
@@ -21,26 +21,26 @@ SRC_URI[sha256sum] = "abdbd6ce08b6c597cdd6c7730e6b49a842d913f2f6b3cc62b585c58ec3
 inherit pypi setuptools3 update-alternatives
 
 DEPENDS += " \
-    ${PYTHON_PN}-ply-native \
-    ${PYTHON_PN}-pyyaml-native \
-    ${PYTHON_PN}-six-native \
-    ${PYTHON_PN}-wheel-native \
+    python3-ply-native \
+    python3-pyyaml-native \
+    python3-six-native \
+    python3-wheel-native \
 "
 
 RDEPENDS:${PN} += "\
-    ${PYTHON_PN}-datetime \
-    ${PYTHON_PN}-io \
-    ${PYTHON_PN}-netclient \
-    ${PYTHON_PN}-ply \
-    ${PYTHON_PN}-pyyaml \
-    ${PYTHON_PN}-six \
-    ${PYTHON_PN}-stringold \
-    ${PYTHON_PN}-threading \
-    ${PYTHON_PN}-unixadmin \
-    ${PYTHON_PN}-xml \
-    ${PYTHON_PN}-nocasedict \
-    ${PYTHON_PN}-nocaselist \
-    ${PYTHON_PN}-yamlloader \
+    python3-datetime \
+    python3-io \
+    python3-netclient \
+    python3-ply \
+    python3-pyyaml \
+    python3-six \
+    python3-stringold \
+    python3-threading \
+    python3-unixadmin \
+    python3-xml \
+    python3-nocasedict \
+    python3-nocaselist \
+    python3-yamlloader \
 "
 
 ALTERNATIVE:${PN} = "mof_compiler"
Signature · 1 line
2.39.2
#7 lore raw

PATCH 5/149 python3-pywbem: order RDEPENDS alphabetically

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Order run-time dependencies for clarity.

---
 meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb +2 -2
index c84576382..6bff9844d 100644
@@ -31,6 +31,8 @@ RDEPENDS:${PN} += "\
     python3-datetime \
     python3-io \
     python3-netclient \
+    python3-nocasedict \
+    python3-nocaselist \
     python3-ply \
     python3-pyyaml \
     python3-six \
@@ -38,8 +40,6 @@ RDEPENDS:${PN} += "\
     python3-threading \
     python3-unixadmin \
     python3-xml \
-    python3-nocasedict \
-    python3-nocaselist \
     python3-yamlloader \
 "
 
Signature · 1 line
2.39.2
#8 lore raw

PATCH 6/149 python3-pywbem: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb +2 -0
index 6bff9844d..1ab1bde44 100644
@@ -30,11 +30,13 @@ DEPENDS += " \
 RDEPENDS:${PN} += "\
     python3-datetime \
     python3-io \
+    python3-logging \
     python3-netclient \
     python3-nocasedict \
     python3-nocaselist \
     python3-ply \
     python3-pyyaml \
+    python3-requests \
     python3-six \
     python3-stringold \
     python3-threading \
Signature · 1 line
2.39.2
#9 lore raw

PATCH 7/149 python3-mock: cleanup RDEPENDS

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Drop PYTHON_PN, improve coding-style and order the dependencies alphabetically.

---
 .../recipes-devtools/python/python3-mock_5.0.2.bb  | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
meta-python/recipes-devtools/python/python3-mock_5.0.2.bb +8 -6
index 633b6f277..6753d2cbf 100644
@@ -6,11 +6,13 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=de9dfbf780446b18aab11f00baaf5b7e"
 
 inherit pypi setuptools3
 
-RDEPENDS:${PN} += "${PYTHON_PN}-prettytable \
-            ${PYTHON_PN}-cmd2 \
-            ${PYTHON_PN}-pyparsing \
-            ${PYTHON_PN}-mccabe \
-            ${PYTHON_PN}-pep8 \
-            ${PYTHON_PN}-pyflakes"
+RDEPENDS:${PN} += " \
+    python3-cmd2 \
+    python3-mccabe \
+    python3-pep8 \
+    python3-prettytable \
+    python3-pyflakes \
+    python3-pyparsing \
+"
 
 SRC_URI[sha256sum] = "06f18d7d65b44428202b145a9a36e99c2ee00d1eb992df0caf881d4664377891"
Signature · 1 line
2.39.2
#10 lore raw

PATCH 8/149 python3-mock: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-mock_5.0.2.bb | 1 +
 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python3-mock_5.0.2.bb +1 -0
index 6753d2cbf..6b511d82f 100644
@@ -13,6 +13,7 @@ RDEPENDS:${PN} += " \
     python3-prettytable \
     python3-pyflakes \
     python3-pyparsing \
+    python3-unittest \
 "
 
 SRC_URI[sha256sum] = "06f18d7d65b44428202b145a9a36e99c2ee00d1eb992df0caf881d4664377891"
Signature · 1 line
2.39.2
#11 lore raw

PATCH 9/149 python3-cson: fix run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add the missing run-time dependency on python3-json. As a result we no longer need to pull python3 native and can drop other *DEPENDS.

---
 meta-python/recipes-extended/python-cson/python3-cson_git.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta-python/recipes-extended/python-cson/python3-cson_git.bb +1 -2
index f9b4b64a5..aba1d8fff 100644
@@ -14,8 +14,7 @@ SRC_URI = "git://github.com/gt3389b/python-cson.git;branch=master;protocol=https
 
 S = "${WORKDIR}/git"
 
-RDEPENDS:${PN}:class-native = ""
-DEPENDS:append:class-native = " python-native "
+RDEPENDS:${PN} = "python3-json"
 
 inherit setuptools3
 
Signature · 1 line
2.39.2
#12 lore raw

PATCH 10/149 python3-ldap: don't use PYTHON_PN

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

We no longer support python2. Drop PYTHON_PN and use python3 explicitly.

---
 .../recipes-networking/python/python3-ldap_3.4.3.bb       | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
meta-python/recipes-networking/python/python3-ldap_3.4.3.bb +4 -4
index f2c0d2ee1..2091f63a9 100644
@@ -22,8 +22,8 @@ do_configure:prepend() {
 }
 
 RDEPENDS:${PN} = " \
-    ${PYTHON_PN}-pprint \
-    ${PYTHON_PN}-threading \
-    ${PYTHON_PN}-pyasn1 \
-    ${PYTHON_PN}-pyasn1-modules \
+    python3-pprint \
+    python3-pyasn1 \
+    python3-pyasn1-modules \
+    python3-threading \
 "
Signature · 1 line
2.39.2
#13 lore raw

PATCH 11/149 python3-ldap: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-networking/python/python3-ldap_3.4.3.bb | 1 +
 1 file changed, 1 insertion(+)
meta-python/recipes-networking/python/python3-ldap_3.4.3.bb +1 -0
index 2091f63a9..0bf1ff14a 100644
@@ -26,4 +26,5 @@ RDEPENDS:${PN} = " \
     python3-pyasn1 \
     python3-pyasn1-modules \
     python3-threading \
+    python3-unittest \
 "
Signature · 1 line
2.39.2
#14 lore raw

PATCH 12/149 python3-pyrad: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-pyrad_2.4.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
meta-python/recipes-devtools/python/python3-pyrad_2.4.bb +8 -0
index bce1e2fd1..801233a02 100644
@@ -9,3 +9,11 @@ SRC_URI[sha256sum] = "057de4b7e89d8da57ba782c1bde45c63ebee720ae2c0b0a69beaff15c4
 SRC_URI += "file://use-poetry-core.patch"
 
 inherit pypi python_poetry_core
+
+RDEPENDS:${PN} += " \
+    python3-crypt \
+    python3-io \
+    python3-logging \
+    python3-netaddr \
+    python3-six \
+"
Signature · 1 line
2.39.2
#15 lore raw

PATCH 13/149 python3-html2text: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-html2text_2020.1.16.bb      | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-html2text_2020.1.16.bb +2 -0
index 64873d246..5b6d04036 100644
@@ -17,6 +17,8 @@ RDEPENDS:${PN}-ptest += " \
 	${PYTHON_PN}-pytest \
 "
 
+RDEPENDS:${PN} += "python3-cgitb"
+
 do_install_ptest() {
 	install -d ${D}${PTEST_PATH}/test
 	cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
Signature · 1 line
2.39.2
#16 lore raw

PATCH 14/149 python3-parse: don't use PYTHON_PN and improve coding style

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

We no longer support python2. Drop PYTHON_PN and use python3 explicitly. While at it: make indentation consistent.

---
 .../recipes-devtools/python/python3-parse_1.19.0.bb  | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
meta-python/recipes-devtools/python/python3-parse_1.19.0.bb +6 -6
index 2bf55cbaf..8db482e14 100644
@@ -8,18 +8,18 @@ SRC_URI[sha256sum] = "9ff82852bcb65d139813e2a5197627a94966245c897796760a3a2a8eb6
 inherit pypi setuptools3 ptest
 
 RDEPENDS:${PN} += "\
-    ${PYTHON_PN}-datetime \
-    ${PYTHON_PN}-logging \
-    "
+    python3-datetime \
+    python3-logging \
+"
 
 SRC_URI += " \
-	file://run-ptest \
+    file://run-ptest \
 "
 
 RDEPENDS:${PN}-ptest += " \
-	${PYTHON_PN}-pytest \
+    python3-pytest \
 "
 
 do_install_ptest() {
-	cp -f ${S}/test_parse.py ${D}${PTEST_PATH}/
+    cp -f ${S}/test_parse.py ${D}${PTEST_PATH}/
 }
Signature · 1 line
2.39.2
#17 lore raw

PATCH 15/149 python3-parse: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-parse_1.19.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python3-parse_1.19.0.bb +1 -0
index 8db482e14..94c1b53c9 100644
@@ -10,6 +10,7 @@ inherit pypi setuptools3 ptest
 RDEPENDS:${PN} += "\
     python3-datetime \
     python3-logging \
+    python3-numbers \
 "
 
 SRC_URI += " \
Signature · 1 line
2.39.2
#18 lore raw

PATCH 16/149 python3-meld3: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-meld3_2.0.1.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta-python/recipes-devtools/python/python3-meld3_2.0.1.bb +6 -0
index 1223ae953..1be3fa5ad 100644
@@ -12,3 +12,9 @@ SRC_URI[md5sum] = "1add16caefc9e6b82ef4f40532cb4918"
 SRC_URI[sha256sum] = "3ea266994f1aa83507679a67b493b852c232a7905e29440a6b868558cad5e775"
 
 inherit pypi setuptools3
+
+RDEPENDS:${PN} += " \
+    python3-cgitb \
+    python3-smtpd \
+    python3-xml \
+"
Signature · 1 line
2.39.2
#19 lore raw

PATCH 17/149 python3-pyiface: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-pyiface_git.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta-python/recipes-devtools/python/python3-pyiface_git.bb +6 -0
index 5e0d2de91..29a0bc86c 100644
@@ -7,6 +7,12 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4fe869ee987a340198fb0d54c55c47f1"
 
 DEPENDS += "python3-setuptools-scm-native"
 
+RDEPENDS:${PN} += " \
+    python3-ctypes \
+    python3-fcntl \
+    python3-io \
+"
+
 inherit setuptools3
 
 SRC_URI = "git://github.com/bat-serjo/PyIface.git;protocol=https;branch=master"
Signature · 1 line
2.39.2
#20 lore raw

PATCH 18/149 python3-mpmath: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-mpmath_1.3.0.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-mpmath_1.3.0.bb +4 -1
index 4ac9e2192..01dd8bfb4 100644
@@ -11,6 +11,9 @@ SRC_URI[sha256sum] = "7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a
 inherit pypi setuptools3
 
 DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
-RDEPENDS:${PN} += "python3-image"
+RDEPENDS:${PN} += " \
+    python3-image \
+    python3-math \
+"
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.2
#21 lore raw

PATCH 19/149 python3-uswid: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-uswid_git.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta-python/recipes-devtools/python/python3-uswid_git.bb +6 -0
index 6b2089893..40adc34c1 100644
@@ -4,6 +4,12 @@ SECTION = "devel/python"
 LICENSE = "LGPL-2.1-or-later"
 
 DEPENDS += " python3-cbor2 python3-lxml python3-pefile"
+RDEPENDS:${PN} += " \
+    python3-cbor2 \
+    python3-json \
+    python3-lxml \
+    python3-netclient \
+"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=40d2542b8c43a3ec2b7f5da31a697b88"
 
 SRC_URI = "git://github.com/hughsie/python-uswid.git;branch=main;protocol=https"
Signature · 1 line
2.39.2
#22 lore raw

PATCH 20/149 python3-xmlrunner: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-xmlrunner_1.7.7.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-xmlrunner_1.7.7.bb +2 -0
index e81e4dabe..7259c3fad 100644
@@ -7,3 +7,5 @@ SRC_URI[md5sum] = "7b0b152ed2d278516aedbc0cac22dfb3"
 SRC_URI[sha256sum] = "5a6113d049eca7646111ee657266966e5bbfb0b5ceb2e83ee0772e16d7110f39"
 
 inherit pypi setuptools3
+
+RDEPENDS:${PN} += "python3-unittest"
Signature · 1 line
2.39.2
#23 lore raw

PATCH 21/149 python3-editor: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-editor_1.0.4.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-python/recipes-devtools/python/python3-editor_1.0.4.bb +5 -0
index dffc36169..335461c43 100644
@@ -10,3 +10,8 @@ PYPI_PACKAGE = "python-editor"
 inherit pypi setuptools3
 
 BBCLASSEXTEND = "native nativesdk"
+
+RDEPENDS:${PN} += " \
+    python3-io \
+    python3-setuptools \
+"
Signature · 1 line
2.39.2
#24 lore raw

PATCH 22/149 python3-pykwalify: don't use PYTHON_PN and improve coding style

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

We no longer support python2. Drop PYTHON_PN and use python3 explicitly. While at it: make indentation consistent

---
 .../recipes-devtools/python/python3-pykwalify_1.8.0.bb      | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta-python/recipes-devtools/python/python3-pykwalify_1.8.0.bb +3 -3
index 6d93f384e..01196d864 100644
@@ -11,9 +11,9 @@ PYPI_PACKAGE = "pykwalify"
 inherit setuptools3 pypi
 
 RDEPENDS:${PN} = "\
-    ${PYTHON_PN}-docopt \
-    ${PYTHON_PN}-dateutil \
-    ${PYTHON_PN}-ruamel-yaml \
+    python3-dateutil \
+    python3-docopt \
+    python3-ruamel-yaml \
 "
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.2
#25 lore raw

PATCH 23/149 python3-pykwalify: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-pykwalify_1.8.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python3-pykwalify_1.8.0.bb +1 -0
index 01196d864..d94051df8 100644
@@ -13,6 +13,7 @@ inherit setuptools3 pypi
 RDEPENDS:${PN} = "\
     python3-dateutil \
     python3-docopt \
+    python3-logging \
     python3-ruamel-yaml \
 "
 
Signature · 1 line
2.39.2
#26 lore raw

PATCH 24/149 python3-iperf: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-iperf_0.1.11.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta-python/recipes-devtools/python/python3-iperf_0.1.11.bb +6 -0
index 36d646305..9a8e6f7da 100644
@@ -9,3 +9,9 @@ PYPI_PACKAGE = "iperf3"
 SRC_URI[sha256sum] = "d50eebbf2dcf445a173f98a82f9c433e0302d3dfb7987e1f21b86b35ef63ce26"
 
 inherit setuptools3 pypi
+
+RDEPENDS:${PN} += " \
+    python3-ctypes \
+    python3-json \
+    python3-threading \
+"
Signature · 1 line
2.39.2
#27 lore raw

PATCH 25/149 python3-sdnotify: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-sdnotify_0.3.2.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-sdnotify_0.3.2.bb +2 -0
index dc1961ac3..ebf000135 100644
@@ -17,3 +17,5 @@ SRC_URI[sha256sum] = "73977fc746b36cc41184dd43c3fe81323e7b8b06c2bb0826c4f59a20c5
 SRC_URI += "file://0001-setup.py-switch-to-setuptools.patch"
 
 inherit setuptools3 pypi
+
+RDEPENDS:${PN} += "python3-io"
Signature · 1 line
2.39.2
#28 lore raw

PATCH 26/149 python3-service-identity: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../python/python3-service-identity_21.1.0.bb               | 6 ++++++
 1 file changed, 6 insertions(+)
meta-python/recipes-devtools/python/python3-service-identity_21.1.0.bb +6 -0
index 0210a5de2..2d4145ef1 100644
@@ -14,6 +14,12 @@ SRC_URI += " \
 	file://run-ptest \
 "
 
+RDEPENDS:${PN} += " \
+    python3-attr \
+    python3-cryptography \
+    python3-pyasn1-modules \
+"
+
 RDEPENDS:${PN}-ptest += " \
 	${PYTHON_PN}-pytest \
 "
Signature · 1 line
2.39.2
#29 lore raw

PATCH 27/149 python3-sqlsoup: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-sqlsoup_0.9.1.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-sqlsoup_0.9.1.bb +2 -0
index 592ba7204..e7f329e9b 100644
@@ -7,3 +7,5 @@ PYPI_PACKAGE = "sqlsoup"
 SRC_URI[sha256sum] = "2fafb7732a663dcd59b37e64d1c94d5fb20d4fad32cd8ee260aa1cd9a10340d6"
 
 inherit pypi setuptools3
+
+RDEPENDS:${PN} += "python3-sqlalchemy"
Signature · 1 line
2.39.2
#30 lore raw

PATCH 28/149 python3-sqlalchemy: don't use PYTHON_PN and improve coding style

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

We no longer support python2. Drop PYTHON_PN and use python3 explicitly. While at it: make indentation consistent.

---
 .../python/python3-sqlalchemy_2.0.15.bb          | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
meta-python/recipes-devtools/python/python3-sqlalchemy_2.0.15.bb +8 -8
index 3af41bed2..b30437830 100644
@@ -10,14 +10,14 @@ PYPI_PACKAGE = "SQLAlchemy"
 inherit pypi setuptools3
 
 RDEPENDS:${PN} += " \
-    ${PYTHON_PN}-json \
-    ${PYTHON_PN}-pickle \
-    ${PYTHON_PN}-logging \
-    ${PYTHON_PN}-netclient \
-    ${PYTHON_PN}-numbers \
-    ${PYTHON_PN}-threading \
-    ${PYTHON_PN}-compression \
-    ${PYTHON_PN}-profile \
+    python3-compression \
+    python3-json \
+    python3-logging \
+    python3-netclient \
+    python3-numbers \
+    python3-pickle \
+    python3-profile \
+    python3-threading \
 "
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.2
#31 lore raw

PATCH 29/149 python3-sqlalchemy: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-sqlalchemy_2.0.15.bb        | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-sqlalchemy_2.0.15.bb +2 -0
index b30437830..e6f0d6429 100644
@@ -10,6 +10,7 @@ PYPI_PACKAGE = "SQLAlchemy"
 inherit pypi setuptools3
 
 RDEPENDS:${PN} += " \
+    python3-asyncio \
     python3-compression \
     python3-json \
     python3-logging \
@@ -18,6 +19,7 @@ RDEPENDS:${PN} += " \
     python3-pickle \
     python3-profile \
     python3-threading \
+    python3-typing-extensions \
 "
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.2
#32 lore raw

PATCH 30/149 python3-pure-eval: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-pure-eval_0.2.2.bb       | 5 +++++
 1 file changed, 5 insertions(+)
meta-python/recipes-devtools/python/python3-pure-eval_0.2.2.bb +5 -0
index d2aaa3db4..66e4673a7 100644
@@ -9,3 +9,8 @@ PYPI_PACKAGE = "pure_eval"
 inherit pypi python_setuptools_build_meta
 
 SRC_URI[sha256sum] = "2b45320af6dfaa1750f543d714b6d1c520a1688dec6fd24d339063ce0aaa9ac3"
+
+RDEPENDS:${PN} += " \
+    python3-datetime \
+    python3-numbers \
+"
Signature · 1 line
2.39.2
#33 lore raw

PATCH 31/149 python3-stack-data: fix coding style

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Use 4 spaces instead of tabs and order RDEPENDS alphabetically.

---
 .../recipes-devtools/python/python3-stack-data_0.6.2.bb     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta-python/recipes-devtools/python/python3-stack-data_0.6.2.bb +3 -3
index 4d62471ed..f341cbfb4 100644
@@ -11,7 +11,7 @@ inherit pypi python_setuptools_build_meta
 SRC_URI[sha256sum] = "32d2dd0376772d01b6cb9fc996f3c8b57a357089dec328ed4b6553d037eaf815"
 
 RDEPENDS:${PN} = " \
-	python3-executing \
-	python3-asttokens \
-	python3-pure-eval \
+    python3-asttokens \
+    python3-executing \
+    python3-pure-eval \
 "
Signature · 1 line
2.39.2
#34 lore raw

PATCH 32/149 python3-stack-data: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-stack-data_0.6.2.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-stack-data_0.6.2.bb +2 -0
index f341cbfb4..21e4b7737 100644
@@ -13,5 +13,7 @@ SRC_URI[sha256sum] = "32d2dd0376772d01b6cb9fc996f3c8b57a357089dec328ed4b6553d037
 RDEPENDS:${PN} = " \
     python3-asttokens \
     python3-executing \
+    python3-html \
+    python3-logging \
     python3-pure-eval \
 "
Signature · 1 line
2.39.2
#35 lore raw

PATCH 33/149 python3-sympy: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-sympy_1.12.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-sympy_1.12.bb +4 -1
index bfb0985ef..088dda3a2 100644
@@ -7,6 +7,9 @@ SRC_URI[sha256sum] = "ebf595c8dac3e0fdc4152c51878b498396ec7f30e7a914d6071e674d49
 
 inherit pypi setuptools3
 
-RDEPENDS:${PN} += "python3-mpmath"
+RDEPENDS:${PN} += " \
+    python3-misc \
+    python3-mpmath \
+"
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.2
#36 lore raw

PATCH 34/149 python3-thrift: don't use PYTHON_PN and improve coding style

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

We no longer support python2. Drop PYTHON_PN and use python3 explicitly. While at it: make indentation consistent.

---
 .../python-thrift/python3-thrift_0.16.0.bb                | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
meta-python/recipes-connectivity/python-thrift/python3-thrift_0.16.0.bb +4 -4
index 6eb896d1d..93b225348 100644
@@ -10,10 +10,10 @@ inherit pypi setuptools3
 PYPI_SRC_URI:append = ";downloadfilename=${BP}.${PYPI_PACKAGE_EXT}"
 
 RDEPENDS:${PN} += "\
-    ${PYTHON_PN}-logging \
-    ${PYTHON_PN}-six \
-    ${PYTHON_PN}-stringold \
-    ${PYTHON_PN}-threading \
+    python3-logging \
+    python3-six \
+    python3-stringold \
+    python3-threading \
 "
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.2
#37 lore raw

PATCH 35/149 python3-thrift: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-connectivity/python-thrift/python3-thrift_0.16.0.bb  | 1 +
 1 file changed, 1 insertion(+)
meta-python/recipes-connectivity/python-thrift/python3-thrift_0.16.0.bb +1 -0
index 93b225348..9bb305388 100644
@@ -11,6 +11,7 @@ PYPI_SRC_URI:append = ";downloadfilename=${BP}.${PYPI_PACKAGE_EXT}"
 
 RDEPENDS:${PN} += "\
     python3-logging \
+    python3-scons \
     python3-six \
     python3-stringold \
     python3-threading \
Signature · 1 line
2.39.2
#38 lore raw

PATCH 36/149 python3-tomlkit: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-tomlkit_0.11.8.bb       | 6 ++++++
 1 file changed, 6 insertions(+)
meta-python/recipes-devtools/python/python3-tomlkit_0.11.8.bb +6 -0
index 71a43c455..5ec7e6e9a 100644
@@ -11,6 +11,12 @@ SRC_URI += " \
         file://run-ptest \
 "
 
+RDEPENDS:${PN} += " \
+    python3-datetime \
+    python3-profile \
+    python3-stringold \
+"
+
 RDEPENDS:${PN}-ptest += " \
         ${PYTHON_PN}-poetry-core \
         ${PYTHON_PN}-pytest \
Signature · 1 line
2.39.2
#39 lore raw

PATCH 37/149 python3-tornado: drop ${PN} from RDEPENDS

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Ptest package doesn't need to explicitly depend on the main package.

---
 meta-python/recipes-devtools/python/python3-tornado_6.3.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-tornado_6.3.bb +1 -1
index 1535214b7..df257e5d9 100644
@@ -15,7 +15,7 @@ RDEPENDS:${PN} += "${PYTHON_PN}-compression ${PYTHON_PN}-numbers ${PYTHON_PN}-em
                    ${PYTHON_PN}-pkgutil ${PYTHON_PN}-html ${PYTHON_PN}-json ${PYTHON_PN}-certifi ${PYTHON_PN}-threading \
                    ${PYTHON_PN}-ctypes ${PYTHON_PN}-misc"
 
-RDEPENDS:${PN}-test += "${PN} ${PYTHON_PN}-unittest"
+RDEPENDS:${PN}-test += "${PYTHON_PN}-unittest"
 
 PACKAGES =+ "\
     ${PN}-test \
Signature · 1 line
2.39.2
#40 lore raw

PATCH 38/149 python3-tornado: fix coding style

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Order RDEPENDS alphabetically and don't use PYTHON_PN.

---
 .../python/python3-tornado_6.3.bb               | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)
meta-python/recipes-devtools/python/python3-tornado_6.3.bb +13 -4
index df257e5d9..bceb50956 100644
@@ -11,11 +11,20 @@ SRC_URI[sha256sum] = "d68f3192936ff2c4add04dc21a436a43b4408d466746b78bb2b9d0a53a
 inherit pypi setuptools3
 
 # Requires _compression which is currently located in misc
-RDEPENDS:${PN} += "${PYTHON_PN}-compression ${PYTHON_PN}-numbers ${PYTHON_PN}-email \
-                   ${PYTHON_PN}-pkgutil ${PYTHON_PN}-html ${PYTHON_PN}-json ${PYTHON_PN}-certifi ${PYTHON_PN}-threading \
-                   ${PYTHON_PN}-ctypes ${PYTHON_PN}-misc"
+RDEPENDS:${PN} += " \
+    python3-certifi \
+    python3-compression \
+    python3-ctypes \
+    python3-email \
+    python3-html \
+    python3-json \
+    python3-misc \
+    python3-numbers \
+    python3-pkgutil \
+    python3-threading \
+"
 
-RDEPENDS:${PN}-test += "${PYTHON_PN}-unittest"
+RDEPENDS:${PN}-test += "python3-unittest"
 
 PACKAGES =+ "\
     ${PN}-test \
Signature · 1 line
2.39.2
#41 lore raw

PATCH 39/149 python3-tornado: remove the testing submodule from FILES:${PN}-test

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Tornado has the testing submodule in __all__ so calling:

from tornado import *

fails if we don't include the ptest package. To fix it: put the testing module into the main package.

---
 meta-python/recipes-devtools/python/python3-tornado_6.3.bb | 1 -
 1 file changed, 1 deletion(-)
meta-python/recipes-devtools/python/python3-tornado_6.3.bb +0 -1
index bceb50956..2d9606bb8 100644
@@ -32,5 +32,4 @@ PACKAGES =+ "\
 
 FILES:${PN}-test = " \
     ${libdir}/${PYTHON_DIR}/site-packages/*/test \
-    ${libdir}/${PYTHON_DIR}/site-packages/*/testing.py* \
 "
Signature · 1 line
2.39.2
#42 lore raw

PATCH 40/149 python3-tornado: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-tornado_6.3.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-python/recipes-devtools/python/python3-tornado_6.3.bb +4 -0
index 2d9606bb8..af5009b6a 100644
@@ -12,6 +12,7 @@ inherit pypi setuptools3
 
 # Requires _compression which is currently located in misc
 RDEPENDS:${PN} += " \
+    python3-asyncio \
     python3-certifi \
     python3-compression \
     python3-ctypes \
@@ -19,9 +20,12 @@ RDEPENDS:${PN} += " \
     python3-html \
     python3-json \
     python3-misc \
+    python3-multiprocessing \
     python3-numbers \
     python3-pkgutil \
+    python3-pycurl \
     python3-threading \
+    python3-unittest \
 "
 
 RDEPENDS:${PN}-test += "python3-unittest"
Signature · 1 line
2.39.2
#43 lore raw

PATCH 41/149 python3-trustme: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-trustme_0.9.0.bb       | 7 +++++++
 1 file changed, 7 insertions(+)
meta-python/recipes-devtools/python/python3-trustme_0.9.0.bb +7 -0
index 641512c46..6f31aea0e 100644
@@ -14,6 +14,13 @@ SRC_URI += " \
 	file://run-ptest \
 "
 
+RDEPENDS:${PN} += " \
+    python3-cryptography \
+    python3-datetime \
+    python3-idna \
+    python3-io \
+"
+
 RDEPENDS:${PN}-ptest += " \
 	${PYTHON_PN}-pytest \
 	${PYTHON_PN}-service-identity \
Signature · 1 line
2.39.2
#44 lore raw

PATCH 42/149 python3-twofish: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-twofish_0.3.0.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-twofish_0.3.0.bb +2 -0
index f45772d50..a8ad4bbdf 100644
@@ -15,3 +15,5 @@ SRC_URI[sha256sum] = "b09d8bb50d33b23ff34cafb1f9209f858f752935c6a5c901efb92a41ac
 inherit pypi setuptools3
 
 BBCLASSEXTEND = "native nativesdk"
+
+RDEPENDS:${PN} += "python3-ctypes"
Signature · 1 line
2.39.2
#45 lore raw

PATCH 43/149 python3-txws: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-connectivity/python-txws/python3-txws_0.9.1.bb   | 5 +++++
 1 file changed, 5 insertions(+)
meta-python/recipes-connectivity/python-txws/python3-txws_0.9.1.bb +5 -0
index c075e4270..ef6375546 100644
@@ -6,6 +6,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=76699830db7fa9e897f6a1ad05f98ec8"
 
 DEPENDS = "python3-twisted python3-six python3-vcversioner python3-six-native python3-vcversioner-native"
 
+RDEPENDS:${PN} += " \
+    python3-six \
+    python3-twisted \
+"
+
 SRC_URI = "git://github.com/MostAwesomeDude/txWS.git;branch=master;protocol=https"
 SRCREV= "88cf6d9b9b685ffa1720644bd53c742afb10a414"
 
Signature · 1 line
2.39.2
#46 lore raw

PATCH 44/149 python3-web3: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-web3_6.3.0.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-web3_6.3.0.bb +2 -0
index 3c617b216..088bfd504 100644
@@ -13,6 +13,8 @@ RDEPENDS:${PN} += " \
     python3-distutils \
     python3-eth-account \
     python3-idna \
+    python3-jsonschema \
+    python3-google-api-core \
     python3-lru-dict \
     python3-requests \
     python3-setuptools \
Signature · 1 line
2.39.2
#47 lore raw

PATCH 45/149 python3-uefi-firmware: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-uefi-firmware_1.10.bb    | 5 +++++
 1 file changed, 5 insertions(+)
meta-python/recipes-devtools/python/python3-uefi-firmware_1.10.bb +5 -0
index 49955c97e..7db7c8059 100644
@@ -15,3 +15,8 @@ SRCREV = "dfb15b068960b771e2e1536d34790dac9b5bfe32"
 S = "${WORKDIR}/git"
 
 inherit setuptools3
+
+RDEPENDS:${PN} += " \
+    python3-ctypes \
+    python3-logging \
+"
Signature · 1 line
2.39.2
#48 lore raw

PATCH 46/149 python3-websockets: fix coding style

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Don't use PYTHON_PN as we're no longer supporting python2.

---
 .../recipes-devtools/python/python3-websockets_11.0.3.bb      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-python/recipes-devtools/python/python3-websockets_11.0.3.bb +2 -2
index 92dbd20ca..b22d993cb 100644
@@ -10,6 +10,6 @@ SRC_URI[sha256sum] = "88fc51d9a26b10fc331be344f1781224a375b78488fc343620184e95a4
 
 BBCLASSEXTEND = "native nativesdk"
 
-RDEPENDS:${PN} = "\
-    ${PYTHON_PN}-asyncio \
+RDEPENDS:${PN} = " \
+    python3-asyncio \
 "
Signature · 1 line
2.39.2
#49 lore raw

PATCH 47/149 python3-websockets: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-websockets_11.0.3.bb | 1 +
 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python3-websockets_11.0.3.bb +1 -0
index b22d993cb..e6971c829 100644
@@ -12,4 +12,5 @@ BBCLASSEXTEND = "native nativesdk"
 
 RDEPENDS:${PN} = " \
     python3-asyncio \
+    python3-profile \
 "
Signature · 1 line
2.39.2
#50 lore raw

PATCH 48/149 python3-xlrd: fix coding style

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Put RDEPENDS on separate lines, don't use PYTHON_PN.

---
 .../recipes-devtools/python/python3-xlrd_2.0.1.bb        | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
meta-python/recipes-devtools/python/python3-xlrd_2.0.1.bb +7 -2
index da0dc2671..03c18e545 100644
@@ -20,10 +20,15 @@ inherit ptest setuptools3
 PIP_INSTALL_PACKAGE = "xlrd"
 PIP_INSTALL_DIST_PATH = "${S}/dist"
 
-RDEPENDS:${PN} += "${PYTHON_PN}-compression ${PYTHON_PN}-io ${PYTHON_PN}-pprint ${PYTHON_PN}-shell"
+RDEPENDS:${PN} += " \
+    python3-compression \
+    python3-io \
+    python3-pprint \
+    python3-shell \
+"
 
 RDEPENDS:${PN}-ptest += " \
-    ${PYTHON_PN}-pytest \
+    python3-pytest \
 "
 
 do_install_ptest() {
Signature · 1 line
2.39.2
#51 lore raw

PATCH 49/149 python3-xlrd: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-xlrd_2.0.1.bb | 1 +
 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python3-xlrd_2.0.1.bb +1 -0
index 03c18e545..5e63d3c30 100644
@@ -23,6 +23,7 @@ PIP_INSTALL_DIST_PATH = "${S}/dist"
 RDEPENDS:${PN} += " \
     python3-compression \
     python3-io \
+    python3-mmap \
     python3-pprint \
     python3-shell \
 "
Signature · 1 line
2.39.2
#52 lore raw

PATCH 50/149 python3-versiontools: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-versiontools_1.9.1.bb       | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-versiontools_1.9.1.bb +2 -0
index ea40d5f6b..02639b590 100644
@@ -8,3 +8,5 @@ SRC_URI[md5sum] = "602b7db8eea30dd29a1d451997adf251"
 SRC_URI[sha256sum] = "a969332887a18a9c98b0df0ea4d4ca75972f24ca94f06fb87d591377e83414f6"
 
 inherit pypi setuptools3
+
+RDEPENDS:${PN} += "python3-setuptools"
Signature · 1 line
2.39.2
#53 lore raw

PATCH 51/149 python3-typeguard: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-typeguard_4.0.0.bb       | 5 +++++
 1 file changed, 5 insertions(+)
meta-python/recipes-devtools/python/python3-typeguard_4.0.0.bb +5 -0
index 54ba6120a..ca17e2b13 100644
@@ -11,6 +11,11 @@ SRC_URI += " \
         file://run-ptest \
 "
 
+RDEPENDS:${PN} += " \
+    python3-compression \
+    python3-unittest \
+"
+
 RDEPENDS:${PN}-ptest += " \
         ${PYTHON_PN}-pytest \
         ${PYTHON_PN}-typing-extensions \
Signature · 1 line
2.39.2
#54 lore raw

PATCH 52/149 python3-process-tests: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-process-tests_2.1.2.bb  | 6 ++++++
 1 file changed, 6 insertions(+)
meta-python/recipes-devtools/python/python3-process-tests_2.1.2.bb +6 -0
index 24ab0399f..eb01504f6 100644
@@ -13,3 +13,9 @@ inherit pypi setuptools3
 RDEPENDS:${PN} += "python3-core"
 
 BBCLASSEXTEND = "native nativesdk"
+
+RDEPENDS:${PN} += " \
+    python3-io \
+    python3-logging \
+    python3-unittest \
+"
Signature · 1 line
2.39.2
#55 lore raw

PATCH 53/149 python3-pyatspi: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-pyatspi_2.46.0.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-pyatspi_2.46.0.bb +2 -0
index aa3000bf6..cd0e12ec8 100644
@@ -20,3 +20,5 @@ REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
 inherit pkgconfig autotools python3native
 
 FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}/pyatspi/*"
+
+RDEPENDS:${PN} += "python3-pygobject"
Signature · 1 line
2.39.2
#56 lore raw

PATCH 54/149 python3-pydantic: don't use PYTHON_PN and improve coding style

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

We no longer support python2. Drop PYTHON_PN and use python3 explicitly. While at it: order dependencies alphabetically.

---
 .../python/python3-pydantic_1.10.7.bb          | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
meta-python/recipes-devtools/python/python3-pydantic_1.10.7.bb +9 -9
index 70f6834f5..7392b5103 100644
@@ -8,13 +8,13 @@ inherit pypi setuptools3
 SRC_URI[sha256sum] = "cfc83c0678b6ba51b0532bea66860617c4cd4251ecf76e9846fa5a9f3454e97e"
 
 RDEPENDS:${PN} += "\
-    ${PYTHON_PN}-typing-extensions \
-    ${PYTHON_PN}-core \
-    ${PYTHON_PN}-numbers \
-    ${PYTHON_PN}-json \
-    ${PYTHON_PN}-datetime \
-    ${PYTHON_PN}-io \
-    ${PYTHON_PN}-netclient \
-    ${PYTHON_PN}-image \
-    ${PYTHON_PN}-logging \
+    python3-core \
+    python3-datetime \
+    python3-image \
+    python3-io \
+    python3-json \
+    python3-logging \
+    python3-netclient \
+    python3-numbers \
+    python3-typing-extensions \
 "
Signature · 1 line
2.39.2
#57 lore raw

PATCH 55/149 python3-pydantic: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-pydantic_1.10.7.bb | 1 +
 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python3-pydantic_1.10.7.bb +1 -0
index 7392b5103..9d59cf859 100644
@@ -16,5 +16,6 @@ RDEPENDS:${PN} += "\
     python3-logging \
     python3-netclient \
     python3-numbers \
+    python3-profile \
     python3-typing-extensions \
 "
Signature · 1 line
2.39.2
#58 lore raw

PATCH 56/149 python3-python-vlc: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-python-vlc_3.0.18122.bb  | 5 +++++
 1 file changed, 5 insertions(+)
meta-python/recipes-devtools/python/python3-python-vlc_3.0.18122.bb +5 -0
index 9dd9b1480..e67e792f7 100644
@@ -6,3 +6,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 SRC_URI[sha256sum] = "1039bde287853b4b7b61ba22d83761832434f78506da762dfb060291bf32897d"
 
 inherit pypi setuptools3
+
+RDEPENDS:${PN} += " \
+    python3-ctypes \
+    python3-logging \
+"
Signature · 1 line
2.39.2
#59 lore raw

PATCH 57/149 python3-redis: fix coding style

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Don't use PYTHON_PN, order includes alphabetically and fix whitespaces.

---
 .../recipes-devtools/python/python3-redis_4.5.5.bb     | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
meta-python/recipes-devtools/python/python3-redis_4.5.5.bb +5 -5
index 40210b5e2..056a31398 100644
@@ -8,9 +8,9 @@ SRC_URI[sha256sum] = "dc87a0bdef6c8bfe1ef1e1c40be7034390c2ae02d92dcd0c7ca1729443
 
 inherit pypi setuptools3
 
-RDEPENDS:${PN} += "\
-    ${PYTHON_PN}-datetime \
-    ${PYTHON_PN}-cryptography \
-    ${PYTHON_PN}-packaging \
-    ${PYTHON_PN}-asyncio \
+RDEPENDS:${PN} += " \
+    python3-asyncio \
+    python3-cryptography \
+    python3-datetime \
+    python3-packaging \
 "
Signature · 1 line
2.39.2
#60 lore raw

PATCH 58/149 python3-redis: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-redis_4.5.5.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-redis_4.5.5.bb +2 -0
index 056a31398..eb407a2a1 100644
@@ -10,7 +10,9 @@ inherit pypi setuptools3
 
 RDEPENDS:${PN} += " \
     python3-asyncio \
+    python3-compression \
     python3-cryptography \
     python3-datetime \
+    python3-json \
     python3-packaging \
 "
Signature · 1 line
2.39.2
#61 lore raw

PATCH 59/149 python3-raven: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-raven_6.10.0.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-python/recipes-devtools/python/python3-raven_6.10.0.bb +5 -0
index b0d19c31a..79a38983d 100644
@@ -11,3 +11,8 @@ SRC_URI[sha256sum] = "3fa6de6efa2493a7c827472e984ce9b020797d0da16f1db67197bcc23c
 
 PYPI_PACKAGE = "raven"
 inherit pypi setuptools3
+
+RDEPENDS:${PN} += " \
+    python3-json \
+    python3-logging \
+"
Signature · 1 line
2.39.2
#62 lore raw

PATCH 60/149 python3-pypng: new package

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

python3-qrcode has a run-time dependency on pypng but it's not provided in meta-python. Add a recipe for it. It has no run-time dependencies itself.

---
 .../recipes-devtools/python/python3-pypng_0.20220715.0.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-pypng_0.20220715.0.bb
meta-python/recipes-devtools/python/python3-pypng_0.20220715.0.bb new file +8 -0
new file mode 100644
index 000000000..9e30f67dc
@@ -0,0 +1,8 @@
+SUMMARY = "PNG module for Python."
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENCE;md5=5b60f319c8cf51f825b4f40aadee3243"
+
+SRC_URI[sha256sum] = "739c433ba96f078315de54c0db975aee537cbc3e1d0ae4ed9aab0ca1e427e2c1"
+
+inherit pypi python_setuptools_build_meta
Signature · 1 line
2.39.2
#63 lore raw

PATCH 61/149 python3-qrcode: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-qrcode_7.4.2.bb        | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-qrcode_7.4.2.bb +6 -1
index 8c0429bbb..204f4ecee 100644
@@ -8,4 +8,9 @@ SRC_URI[sha256sum] = "9dd969454827e127dbd93696b20747239e6d540e082937c90f14ac95b3
 
 inherit pypi setuptools3
 
-RDEPENDS:${PN} = "python3-six python3-pillow"
+RDEPENDS:${PN} = " \
+    python3-six \
+    python3-pillow \
+    python3-pypng \
+    python3-typing-extensions \
+"
Signature · 1 line
2.39.2
#64 lore raw

PATCH 62/149 python3-pyusb: fix run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add the missing dependency on ctypes and drop libusb1 from RDEPENDS as it will be already present in the rootfs thanks to being in project's build-time dependencies.

---
 meta-python/recipes-devtools/python/python3-pyusb_1.2.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-pyusb_1.2.1.bb +1 -1
index 286e9672b..abe352911 100644
@@ -13,6 +13,6 @@ SRC_URI[sha256sum] = "a4cc7404a203144754164b8b40994e2849fde1cfff06b08492f12fff9d
 
 inherit pypi setuptools3
 
-RDEPENDS:${PN} += "libusb1"
+RDEPENDS:${PN} += "python3-ctypes"
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.2
#65 lore raw

PATCH 63/149 python3-pytest-mock: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-pytest-mock_3.10.0.bb   | 6 ++++++
 1 file changed, 6 insertions(+)
meta-python/recipes-devtools/python/python3-pytest-mock_3.10.0.bb +6 -0
index c4e672f33..bf5bc250a 100644
@@ -18,6 +18,12 @@ inherit setuptools3 ptest
 
 DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
 
+RDEPENDS:${PN} += " \
+    python3-asyncio \
+    python3-pytest \
+    python3-unittest \
+"
+
 S = "${WORKDIR}/git"
 
 do_install_ptest() {
Signature · 1 line
2.39.2
#69 lore raw

PATCH 64/149 python3-pyroute2: fix coding style

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Make indentations consistent and stop using PYTHON_PN.

---
 .../python/python3-pyroute2_0.5.19.bb         | 32 +++++++++----------
 1 file changed, 16 insertions(+), 16 deletions(-)
meta-python/recipes-devtools/python/python3-pyroute2_0.5.19.bb +16 -16
index fa5b3a522..2720f3ed9 100644
@@ -8,29 +8,29 @@ SRC_URI[sha256sum] = "45460d12ed2a5caf272a357a3360b36d1e346f17afe1425b66fc21d70f
 inherit setuptools3 pypi ptest
 
 RDEPENDS:${PN} += " \
-    ${PYTHON_PN}-ctypes \
-    ${PYTHON_PN}-distutils \
-    ${PYTHON_PN}-io \
-    ${PYTHON_PN}-json \
-    ${PYTHON_PN}-logging \
-    ${PYTHON_PN}-multiprocessing \
-    ${PYTHON_PN}-pickle \
-    ${PYTHON_PN}-pkgutil \
-    ${PYTHON_PN}-pprint \
-    ${PYTHON_PN}-shell \
-    ${PYTHON_PN}-unixadmin \
+    python3-ctypes \
+    python3-distutils \
+    python3-io \
+    python3-json \
+    python3-logging \
+    python3-multiprocessing \
+    python3-pickle \
+    python3-pkgutil \
+    python3-pprint \
+    python3-shell \
+    python3-unixadmin \
 "
 
 SRC_URI += " \
-	file://run-ptest \
+    file://run-ptest \
 "
 
 RDEPENDS:${PN}-ptest += " \
-	${PYTHON_PN}-pytest \
-	${PYTHON_PN}-fcntl \
+    python3-pytest \
+    python3-fcntl \
 "
 
 do_install_ptest() {
-	install -d ${D}${PTEST_PATH}/tests
-	cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+    install -d ${D}${PTEST_PATH}/tests
+    cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
 }
Signature · 1 line
2.39.2
#70 lore raw

PATCH 65/149 python3-fcntl: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-pyroute2_0.5.19.bb | 1 +
 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python3-pyroute2_0.5.19.bb +1 -0
index 2720f3ed9..8c192d296 100644
@@ -12,6 +12,7 @@ RDEPENDS:${PN} += " \
     python3-distutils \
     python3-io \
     python3-json \
+    python3-fcntl \
     python3-logging \
     python3-multiprocessing \
     python3-pickle \
Signature · 1 line
2.39.2
#71 lore raw

PATCH 66/149 python3-pyproject-metadata: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../python/python3-pyproject-metadata_0.7.1.bb              | 6 ++++++
 1 file changed, 6 insertions(+)
meta-python/recipes-devtools/python/python3-pyproject-metadata_0.7.1.bb +6 -0
index 32938421d..9887af78d 100644
@@ -8,3 +8,9 @@ inherit pypi python_setuptools_build_meta
 SRC_URI[sha256sum] = "0a94f18b108b9b21f3a26a3d541f056c34edcb17dc872a144a15618fed7aef67"
 
 BBCLASSEXTEND = "native nativesdk"
+
+RDEPENDS:${PN} += " \
+    python3-logging \
+    python3-packaging \
+    python3-profile \
+"
Signature · 1 line
2.39.2
#75 lore raw

PATCH 70/149 python3-classes: new package

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add a recipe for the package python3-pylyrics run-time depends on but which was never provided by meta-python.

---
 .../recipes-devtools/python/python3-classes_0.4.1.bb   | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-classes_0.4.1.bb
meta-python/recipes-devtools/python/python3-classes_0.4.1.bb new file +10 -0
new file mode 100644
index 000000000..d9240e138
@@ -0,0 +1,10 @@
+SUMMARY = "Smart, pythonic, ad-hoc, typed polymorphism for Python."
+
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=155fbcc756c8ae5265d252d23e20908f"
+
+SRC_URI[sha256sum] = "4de4fdd6c5c38607bbd8ad76703d7cc4dbe007cfa78e8ef1f62fc6ac55303e23"
+
+inherit pypi setuptools3
+
+RDEPENDS:${PN} += "python3-typing-extensions"
Signature · 1 line
2.39.2
#76 lore raw

PATCH 71/149 python3-pylyrics: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-pylyrics_1.1.0.bb     | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-pylyrics_1.1.0.bb +7 -1
index 207751c45..1ac95e8be 100644
@@ -9,4 +9,10 @@ SRC_URI[sha256sum] = "c5f36e8ef0ed3b487a9242ce34c19f9684e418a5bbffd5d367dc1d1604
 PYPI_PACKAGE = "PyLyrics"
 PYPI_PACKAGE_EXT = "zip"
 
-inherit pypi setuptools3
\ No newline at end of file
+inherit pypi setuptools3
+
+RDEPENDS:${PN} += " \
+    python3-beautifulsoup4 \
+    python3-classes \
+    python3-requests \
+"
Signature · 1 line
2.39.2
#77 lore raw

PATCH 72/149 python3-pyjwt: stop using PYTHON_PN

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

We no longer support python2, so use python3 explicitly.

---
 meta-python/recipes-devtools/python/python3-pyjwt_2.7.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-pyjwt_2.7.0.bb +1 -1
index e1e335869..03cdfe6dd 100644
@@ -10,6 +10,6 @@ SRC_URI[sha256sum] = "bd6ca4a3c4285c1a2d4349e5a035fdf8fb94e04ccd0fcbe6ba289dae9c
 PYPI_PACKAGE = "PyJWT"
 inherit pypi setuptools3
 
-RDEPENDS:${PN} = "${PYTHON_PN}-cryptography"
+RDEPENDS:${PN} = "python3-cryptography"
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.2
#78 lore raw

PATCH 73/149 python3-pyjwt: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-pyjwt_2.7.0.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-pyjwt_2.7.0.bb +4 -1
index 03cdfe6dd..3aa9b479a 100644
@@ -10,6 +10,9 @@ SRC_URI[sha256sum] = "bd6ca4a3c4285c1a2d4349e5a035fdf8fb94e04ccd0fcbe6ba289dae9c
 PYPI_PACKAGE = "PyJWT"
 inherit pypi setuptools3
 
-RDEPENDS:${PN} = "python3-cryptography"
+RDEPENDS:${PN} = " \
+    python3-json \
+    python3-cryptography \
+"
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.2
#79 lore raw

PATCH 74/149 python3-javaobj-py3: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-javaobj-py3_0.4.3.bb     | 5 +++++
 1 file changed, 5 insertions(+)
meta-python/recipes-devtools/python/python3-javaobj-py3_0.4.3.bb +5 -0
index eb93e7173..5555a1256 100644
@@ -12,3 +12,8 @@ SRC_URI[sha256sum] = "38f74db3a57e9998a9774e3614afb95cb396f139f29b3fdb130c5af554
 inherit pypi setuptools3
 
 BBCLASSEXTEND = "native nativesdk"
+
+RDEPENDS:${PN} += " \
+    python3-compression \
+    python3-logging \
+"
Signature · 1 line
2.39.2
#72 lore raw

PATCH 67/149 python3-pyproj: don't use PYTHON_PN

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

We no longer support python2. Drop PYTHON_PN and use python3 explicitly.

---
 meta-python/recipes-devtools/python/python3-pyproj_3.5.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-pyproj_3.5.0.bb +1 -1
index f67090da7..0847a6e91 100644
@@ -10,7 +10,7 @@ inherit pypi setuptools3
 
 SRC_URI[sha256sum] = "9859d1591c1863414d875ae0759e72c2cffc01ab989dc64137fbac572cc81bf6"
 
-RDEPENDS:${PN} = "${PYTHON_PN}-certifi proj"
+RDEPENDS:${PN} = "python3-certifi proj"
 
 export PROJ_INCDIR = "${STAGING_INCDIR}"
 export PROJ_LIBDIR = "${STAGING_LIBDIR}"
Signature · 1 line
2.39.2
#73 lore raw

PATCH 68/149 python3-pyproj: drop unnecessary run-time dependency

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

libproj is already included in the rootfs as it's in recipe's DEPENDS.

---
 meta-python/recipes-devtools/python/python3-pyproj_3.5.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-pyproj_3.5.0.bb +1 -1
index 0847a6e91..0285e33aa 100644
@@ -10,7 +10,7 @@ inherit pypi setuptools3
 
 SRC_URI[sha256sum] = "9859d1591c1863414d875ae0759e72c2cffc01ab989dc64137fbac572cc81bf6"
 
-RDEPENDS:${PN} = "python3-certifi proj"
+RDEPENDS:${PN} = "python3-certifi"
 
 export PROJ_INCDIR = "${STAGING_INCDIR}"
 export PROJ_LIBDIR = "${STAGING_LIBDIR}"
Signature · 1 line
2.39.2
#74 lore raw

PATCH 69/149 python3-pyproj: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-pyproj_3.5.0.bb       | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-pyproj_3.5.0.bb +7 -1
index 0285e33aa..918911b66 100644
@@ -10,7 +10,13 @@ inherit pypi setuptools3
 
 SRC_URI[sha256sum] = "9859d1591c1863414d875ae0759e72c2cffc01ab989dc64137fbac572cc81bf6"
 
-RDEPENDS:${PN} = "python3-certifi"
+RDEPENDS:${PN} = " \
+    python3-certifi \
+    python3-compression \
+    python3-json \
+    python3-logging \
+    python3-profile \
+"
 
 export PROJ_INCDIR = "${STAGING_INCDIR}"
 export PROJ_LIBDIR = "${STAGING_LIBDIR}"
Signature · 1 line
2.39.2
#85 lore raw

PATCH 80/149 python3-pickleshare: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-pickleshare_0.7.5.bb        | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-pickleshare_0.7.5.bb +2 -0
index 9d67e4f33..826091308 100644
@@ -10,3 +10,5 @@ SRC_URI[md5sum] = "44ab782615894a812ab96669a122a634"
 SRC_URI[sha256sum] = "87683d47965c1da65cdacaf31c8441d12b8044cdec9aca500cd78fc2c683afca"
 
 inherit setuptools3 pypi
+
+RDEPENDS:${PN} += "python3-pickle"
Signature · 1 line
2.39.2
#80 lore raw

PATCH 75/149 python3-pyjks: stop using PYTHON_PN

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

We no longer support python2, so use python3 explicitly. While at it:
add missing spaces for consistent coding style.

---
 .../recipes-devtools/python/python3-pyjks_20.0.0.bb  | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
meta-python/recipes-devtools/python/python3-pyjks_20.0.0.bb +6 -6
index 87e212d9d..e1b30e3e1 100644
@@ -11,12 +11,12 @@ SRC_URI[sha256sum] = "0378cec15fb11b2ed27ba54dad9fd987d48e6f62f49fcff138f5f7a8b3
 
 inherit pypi setuptools3
 
-RDEPENDS:${PN} = "\
-    ${PYTHON_PN}-javaobj-py3 \
-    ${PYTHON_PN}-pyasn1 \
-    ${PYTHON_PN}-pyasn1-modules \
-    ${PYTHON_PN}-pycryptodome \
-    ${PYTHON_PN}-twofish\
+RDEPENDS:${PN} = " \
+    python3-javaobj-py3 \
+    python3-pyasn1 \
+    python3-pyasn1-modules \
+    python3-pycryptodome \
+    python3-twofish \
 "
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.2
#81 lore raw

PATCH 76/149 python3-pyjks: fix run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

This package actually depends on python3-pycryptodomex.

---
 meta-python/recipes-devtools/python/python3-pyjks_20.0.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-pyjks_20.0.0.bb +1 -1
index e1b30e3e1..c0cca98ff 100644
@@ -15,7 +15,7 @@ RDEPENDS:${PN} = " \
     python3-javaobj-py3 \
     python3-pyasn1 \
     python3-pyasn1-modules \
-    python3-pycryptodome \
+    python3-pycryptodomex \
     python3-twofish \
 "
 
Signature · 1 line
2.39.2
#82 lore raw

PATCH 77/149 python3-pyexpect: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-pyexpect_1.0.22.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-pyexpect_1.0.22.bb +2 -0
index 7d22266f8..1cbd2384a 100644
@@ -8,3 +8,5 @@ LIC_FILES_CHKSUM = "file://README.md;md5=a6aa1e7097aca5955f9a2e1c8b0ce158"
 inherit pypi setuptools3
 
 SRC_URI[sha256sum] = "659351e7ee8923b42de8a774fabfc806acf07377d7fd19f2ea4412ef8f619c6a"
+
+RDEPENDS:${PN} += "python3-numbers"
Signature · 1 line
2.39.2
#83 lore raw

PATCH 78/149 python3-pynetlinux: fix relative imports

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Pull in a patch from upstream that addresses an issue with relative imports.

---
 .../0002-Fixed-relative-imports.patch         | 60 +++++++++++++++++++
 .../python/python3-pynetlinux_1.1.bb          |  5 +-
 2 files changed, 64 insertions(+), 1 deletion(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-pynetlinux/0002-Fixed-relative-imports.patch
meta-python/recipes-devtools/python/python3-pynetlinux/0002-Fixed-relative-imports.patch new file +60 -0
new file mode 100644
index 000000000..9b5d9d636
@@ -0,0 +1,60 @@
+From afb778669efbc658a29e6bdb1c4834fee42931aa Mon Sep 17 00:00:00 2001
+From: Robert Grant <[email protected]>
+Date: Wed, 10 Sep 2014 14:56:33 -0400
+Subject: [PATCH] Fixed relative imports
+
+Signed-off-by: Bartosz Golaszewski <[email protected]>
+
+---
+Upstream-Status: Accepted
+
+ pynetlinux/__init__.py | 8 ++++----
+ pynetlinux/brctl.py    | 2 +-
+ pynetlinux/tap.py      | 2 +-
+ 3 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/pynetlinux/__init__.py b/pynetlinux/__init__.py
+index dbbf392..b6e1b8e 100644
+--- a/pynetlinux/__init__.py
++++ b/pynetlinux/__init__.py
+@@ -2,7 +2,7 @@
+ #   import pylinux
+ # does a reasonable thing.
+ 
+-import brctl
+-import ifconfig
+-import tap
+-import route
++from . import brctl
++from . import ifconfig
++from . import tap
++from . import route
+diff --git a/pynetlinux/brctl.py b/pynetlinux/brctl.py
+index f54d176..a8b926e 100644
+--- a/pynetlinux/brctl.py
++++ b/pynetlinux/brctl.py
+@@ -3,7 +3,7 @@ import fcntl
+ import os
+ import struct
+ 
+-import ifconfig
++from . import ifconfig
+ 
+ SYSFS_NET_PATH = "/sys/class/net"
+ 
+diff --git a/pynetlinux/tap.py b/pynetlinux/tap.py
+index 0a0d59c..3f8ad3a 100644
+--- a/pynetlinux/tap.py
++++ b/pynetlinux/tap.py
+@@ -2,7 +2,7 @@ import fcntl
+ import os
+ import struct
+ 
+-import ifconfig
++from . import ifconfig
+ 
+ # From linux/if_tun.h
+ 
+-- 
+2.39.2
+
meta-python/recipes-devtools/python/python3-pynetlinux_1.1.bb +4 -1
index a5ac74fd6..c6ab07448 100644
@@ -7,6 +7,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=74e1861736ee959824fe7542323c12e9"
 
 SRC_URI[sha256sum] = "4ad08298c9f5ba15a11cddc639ba8778cabdfc402b51066d9e0a325e5a5b391c"
 
-SRC_URI += "file://0001-setup.py-switch-to-setuptools.patch"
+SRC_URI += " \
+    file://0001-setup.py-switch-to-setuptools.patch \
+    file://0002-Fixed-relative-imports.patch \
+"
 
 inherit pypi setuptools3
Signature · 1 line
2.39.2
#84 lore raw

PATCH 79/149 python3-pynetlinux: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-pynetlinux_1.1.bb       | 6 ++++++
 1 file changed, 6 insertions(+)
meta-python/recipes-devtools/python/python3-pynetlinux_1.1.bb +6 -0
index c6ab07448..b1abac17a 100644
@@ -13,3 +13,9 @@ SRC_URI += " \
 "
 
 inherit pypi setuptools3
+
+RDEPENDS:${PN} += " \
+    python3-ctypes \
+    python3-fcntl \
+    python3-io \
+"
Signature · 1 line
2.39.2
#86 lore raw

PATCH 81/149 python3-petact: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-petact_0.1.2.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta-python/recipes-devtools/python/python3-petact_0.1.2.bb +6 -0
index 58cd05e22..b7fa69ffa 100644
@@ -7,3 +7,9 @@ SRC_URI[md5sum] = "47e9a6abc91b4022953e4007ddae9e68"
 SRC_URI[sha256sum] = "5dcb0d44f86a601e41a2def9770993cd0ea45c76d37eb3f35e3dd61aa50350e6"
 
 inherit pypi setuptools3
+
+RDEPENDS:${PN} += " \
+    python3-compression \
+    python3-crypt \
+    python3-io \
+"
Signature · 1 line
2.39.2
#87 lore raw

PATCH 82/149 python3-pefile: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-pefile_2023.2.7.bb      | 6 ++++++
 1 file changed, 6 insertions(+)
meta-python/recipes-devtools/python/python3-pefile_2023.2.7.bb +6 -0
index 580b17413..f3e071108 100644
@@ -11,3 +11,9 @@ PIP_INSTALL_PACKAGE = "pefile"
 PIP_INSTALL_DIST_PATH = "${S}/dist"
 
 BBCLASSEXTEND = "native nativesdk"
+
+RDEPENDS:${PN} += " \
+    python3-mmap \
+    python3-netclient \
+    python3-stringold \
+"
Signature · 1 line
2.39.2
#88 lore raw

PATCH 83/149 python3-jsonpath-rw: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-jsonpath-rw_1.4.0.bb   | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-jsonpath-rw_1.4.0.bb +6 -1
index b1af0f033..4cc39a286 100644
@@ -8,4 +8,9 @@ SRC_URI[sha256sum] = "05c471281c45ae113f6103d1268ec7a4831a2e96aa80de45edc89b11fa
 
 inherit pypi setuptools3
 
-RDEPENDS:${PN} += " python3-decorator"
+RDEPENDS:${PN} += " \
+    python3-decorator \
+    python3-logging \
+    python3-ply \
+    python3-six \
+"
Signature · 1 line
2.39.2
#89 lore raw

PATCH 84/149 python3-jsonrpcclient: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-jsonrpcclient_4.0.2.bb    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-jsonrpcclient_4.0.2.bb +3 -1
index 26ee3786b..08ee15a92 100644
@@ -8,7 +8,9 @@ SRC_URI[sha256sum] = "c0d475494b3e1b591ecdee7883739accaf5695edb673f16b7383b8c6bb
 inherit pypi setuptools3
 
 RDEPENDS:${PN} += "\
-    python3-core \
+    python3-json \
+    python3-math \
+    python3-netclient \
 "
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.2
#90 lore raw

PATCH 85/149 python3-jstyleson: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-jstyleson_0.0.2.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-jstyleson_0.0.2.bb +2 -0
index e70ce33ef..237713bf1 100644
@@ -13,3 +13,5 @@ inherit pypi setuptools3
 SRC_URI[sha256sum] = "680003f3b15a2959e4e6a351f3b858e3c07dd3e073a0d54954e34d8ea5e1308e"
 
 BBCLASSEXTEND = "native nativesdk"
+
+RDEPENDS:${PN} += "python3-json"
Signature · 1 line
2.39.2
#91 lore raw

PATCH 86/149 python3-kconfiglib: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-kconfiglib_14.1.0.bb    | 6 ++++++
 1 file changed, 6 insertions(+)
meta-python/recipes-devtools/python/python3-kconfiglib_14.1.0.bb +6 -0
index ec09cfc58..b9c1c4e38 100644
@@ -8,3 +8,9 @@ SRC_URI[sha256sum] = "bed2cc2216f538eca4255a83a4588d8823563cdd50114f86cf1a2674e6
 inherit pypi setuptools3
 
 BBCLASSEXTEND = "native nativesdk"
+
+RDEPENDS:${PN} += " \
+    python3-curses \
+    python3-shell \
+    python3-tkinter \
+"
Signature · 1 line
2.39.2
#92 lore raw

PATCH 87/149 python3-libevdev: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 meta-python/recipes-devtools/python/python3-libevdev_0.11.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-python/recipes-devtools/python/python3-libevdev_0.11.bb +5 -0
index c728cd0ff..27e336710 100644
@@ -11,3 +11,8 @@ SRC_URI[sha256sum] = "e9ca006a4df2488a60bd9a740011ee948d81904be2364f017e56016950
 inherit pypi setuptools3
 
 PYPI_PACKAGE = "libevdev"
+
+RDEPENDS:${PN} += " \
+    libevdev \
+    python3-ctypes \
+"
Signature · 1 line
2.39.2
#93 lore raw

PATCH 88/149 python3-linux-procfs: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-linux-procfs_0.7.1.bb       | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-linux-procfs_0.7.1.bb +2 -0
index 9395a792f..d51eecf97 100644
@@ -10,3 +10,5 @@ SRCREV = "7f43598387e44e2da93ead2e075b7232429e4cc4"
 S = "${WORKDIR}/git"
 
 inherit setuptools3
+
+RDEPENDS:${PN} += "python3-six"
Signature · 1 line
2.39.2
#94 lore raw

PATCH 89/149 python3-lockfile: add missing run-time dependencies

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-lockfile_0.12.2.bb       | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-lockfile_0.12.2.bb +4 -1
index b9dc4722a..af738e08e 100644
@@ -12,6 +12,9 @@ SRC_URI[sha256sum] = "6aed02de03cba24efabcd600b30540140634fc06cfa603822d508d5361
 inherit pypi setuptools3
 
 DEPENDS += "python3-distutils-extra-native python3-pbr-native"
-RDEPENDS:${PN} += "python3-sqlite3"
+RDEPENDS:${PN} += " \
+    python3-io \
+    python3-sqlite3 \
+"
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.2
#95 lore raw

PATCH 90/149 python3-msm: fix coding style

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Order run-time dependencies alphabetically and add some whitespaces for consistency.

---
 meta-python/recipes-devtools/python/python3-msm_0.8.8.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta-python/recipes-devtools/python/python3-msm_0.8.8.bb +3 -3
index 848b25dae..ed30fd76c 100644
@@ -8,10 +8,10 @@ SRC_URI[sha256sum] = "a502aee54917cd394217b31c977a1ba3d9541a0120e0a045c49fd77b32
 
 inherit pypi setuptools3
 
-RDEPENDS:${PN} += "\
-    python3-pako \
-    python3-monotonic \
+RDEPENDS:${PN} += " \
     python3-appdirs \
+    python3-monotonic \
+    python3-pako \
 "
 
 do_install:append() {
Signature · 1 line
2.39.2
#96 lore raw

PATCH 91/149 python3-lazy: new recipe

In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add a recipe for python3-lazy - a package on which python3-msm run-time depends but which dependency is not satisfied by meta-python.

---
 meta-python/recipes-devtools/python/python3-lazy_1.5.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-lazy_1.5.bb
meta-python/recipes-devtools/python/python3-lazy_1.5.bb new file +8 -0
new file mode 100644
index 000000000..cdff28c29
@@ -0,0 +1,8 @@
+SUMMARY = "Lazy attributes are computed attributes that are evaluated only once, the first time they are used."
+
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=84689cccb68e3c397d0856e8ad5a73b2"
+
+SRC_URI[sha256sum] = "cb3d8612aa895a48afe8f08860573ba8ef5ee4fdbe1b3cd606c5f50a16152186"
+
+inherit pypi setuptools3
Signature · 1 line
2.39.2
#97 lore raw
In reply to Bartosz Golaszewski
Quoted 7 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

A significant number of python recipes don't specify all the run-time dependencies required to at least be able to import all the installed modules. This series is the result of a semi-automated run through all python recipes in meta-python, building minimal images and verifying that there are no import exceptions.

I checked a few changes. Why are some recipes adding 'python3-unittest' as a runtime dependency?

For example, python3-ldap does not seem to need it. I checked the codes, https://github.com/cannatag/ldap3, all unittest references reside inside the test/ directory.

If it's a semi-automated run, then when it fails, I think the failed import commands could be recorded and put in the commit message. This could be achieved by using a template commit file which is then substituted to generate the actual commit file and using '-F' option to commit.

Regards,

Qi

Quoted 301 lines

Most patches just add missing RDEPENDS entries where needed. Some tweak the coding style if it's inconsistent. There are a few new packages on which existing recipes depend at run-time but which were not provided in meta-python previously.

This probably doesn't cover all the corner cases. Ptest packages were not tested with the assumption that they are being run somewhere and verified already.

There are also other run-time dependencies that may fail - like python code executing external programs that may be missing or ctypes opening shared objects at run-time later than at import-time but in general this series should at least improve the situation significantly.

There's some space for QA improvement in OE-core - like maybe raising a warning if a python recipe doesn't specify any RDEPENDS which usually means they are missing (but the module can also be very simple so this cannot be a hard fail).

Bartosz Golaszewski (149):
python3-pyparted: add missing run-time dependencies
python3-send2trash: add missing run-time dependencies
python3-pywbem: drop unneeded class from RDEPENDS
python3-pywbem: don't use PYTHON_PN
python3-pywbem: order RDEPENDS alphabetically
python3-pywbem: add missing run-time dependencies
python3-mock: cleanup RDEPENDS
python3-mock: add missing run-time dependencies
python3-cson: fix run-time dependencies
python3-ldap: don't use PYTHON_PN
python3-ldap: add missing run-time dependencies
python3-pyrad: add missing run-time dependencies
python3-html2text: add missing run-time dependencies
python3-parse: don't use PYTHON_PN and improve coding style
python3-parse: add missing run-time dependencies
python3-meld3: add missing run-time dependencies
python3-pyiface: add missing run-time dependencies
python3-mpmath: add missing run-time dependencies
python3-uswid: add missing run-time dependencies
python3-xmlrunner: add missing run-time dependencies
python3-editor: add missing run-time dependencies
python3-pykwalify: don't use PYTHON_PN and improve coding style
python3-pykwalify: add missing run-time dependencies
python3-iperf: add missing run-time dependencies
python3-sdnotify: add missing run-time dependencies
python3-service-identity: add missing run-time dependencies
python3-sqlsoup: add missing run-time dependencies
python3-sqlalchemy: don't use PYTHON_PN and improve coding style
python3-sqlalchemy: add missing run-time dependencies
python3-pure-eval: add missing run-time dependencies
python3-stack-data: fix coding style
python3-stack-data: add missing run-time dependencies
python3-sympy: add missing run-time dependencies
python3-thrift: don't use PYTHON_PN and improve coding style
python3-thrift: add missing run-time dependencies
python3-tomlkit: add missing run-time dependencies
python3-tornado: drop ${PN} from RDEPENDS
python3-tornado: fix coding style
python3-tornado: remove the testing submodule from FILES:${PN}-test
python3-tornado: add missing run-time dependencies
python3-trustme: add missing run-time dependencies
python3-twofish: add missing run-time dependencies
python3-txws: add missing run-time dependencies
python3-web3: add missing run-time dependencies
python3-uefi-firmware: add missing run-time dependencies
python3-websockets: fix coding style
python3-websockets: add missing run-time dependencies
python3-xlrd: fix coding style
python3-xlrd: add missing run-time dependencies
python3-versiontools: add missing run-time dependencies
python3-typeguard: add missing run-time dependencies
python3-process-tests: add missing run-time dependencies
python3-pyatspi: add missing run-time dependencies
python3-pydantic: don't use PYTHON_PN and improve coding style
python3-pydantic: add missing run-time dependencies
python3-python-vlc: add missing run-time dependencies
python3-redis: fix coding style
python3-redis: add missing run-time dependencies
python3-raven: add missing run-time dependencies
python3-pypng: new package
python3-qrcode: add missing run-time dependencies
python3-pyusb: fix run-time dependencies
python3-pytest-mock: add missing run-time dependencies
python3-pyroute2: fix coding style
python3-fcntl: add missing run-time dependencies python3-pyproject-metadata: add missing run-time dependencies
python3-pyproj: don't use PYTHON_PN
python3-pyproj: drop unnecessary run-time dependency
python3-pyproj: add missing run-time dependencies
python3-classes: new package
python3-pylyrics: add missing run-time dependencies
python3-pyjwt: stop using PYTHON_PN
python3-pyjwt: add missing run-time dependencies
python3-javaobj-py3: add missing run-time dependencies
python3-pyjks: stop using PYTHON_PN
python3-pyjks: fix run-time dependencies
python3-pyexpect: add missing run-time dependencies
python3-pynetlinux: fix relative imports
python3-pynetlinux: add missing run-time dependencies
python3-pickleshare: add missing run-time dependencies
python3-petact: add missing run-time dependencies
python3-pefile: add missing run-time dependencies
python3-jsonpath-rw: add missing run-time dependencies
python3-jsonrpcclient: add missing run-time dependencies
python3-jstyleson: add missing run-time dependencies
python3-kconfiglib: add missing run-time dependencies
python3-libevdev: add missing run-time dependencies
python3-linux-procfs: add missing run-time dependencies
python3-lockfile: add missing run-time dependencies
python3-msm: fix coding style
python3-lazy: new recipe
python3-msm: add missing run-time dependencies
python3-netaddr: stop using PYTHON_PN
python3-netaddr: add missing run-time dependencies
python3-ninja-syntax: new package
python3-ninja: add missing run-time dependencies
python3-nmap: add missing run-time dependencies
python3-oslash: add missing run-time dependencies
python3-padaos: add missing run-time dependencies
python3-padatious: add missing run-time dependencies
python3-pako: add missing run-time dependencies
python3-paramiko: stop using PYTHON_PN
python3-paramiko: add missing run-time dependencies
python3-path: fix coding style
python3-path: add missing run-time dependencies
python3-ecdsa: don't install tests
python3-et-xmlfile: fix coding style
python3-et-xmlfile: add missing run-time dependencies
python3-flask-user: fix coding style
python3-flask-user: add missing run-time dependencies
python3-isort: fix coding style
python3-isort: add missing run-time dependencies
python3-isodate: stop using PYTHON_PN
python3-isodate: add missing run-time dependencies
python-idna-ssl: add missing run-time dependencies
python3-hpack: add missing run-time dependencies
python3-h11: add missing run-time dependencies
python3-gsocketpool: drop unneeded DEPENDS
python3-gsocketpool: stop using PYTHON_PN
python3-gsocketpool: add missing run-time dependencies
python3-flask-mail: stop using PYTHON_PN
python3-flask-mail: add missing run-time dependencies
python3-flask-sijax: stop using PYTHON_PN
python3-flask-sijax: add missing run-time dependencies
python3-flask-script: remove recipe
python3-aioserial: fix coding style
python3-aioserial: add missing run-time dependencies
python3-aspectlib: add missing run-time dependencies
python3-asyncio-throttle: add missing run-time dependencies
python3-attrdict3: add missing run-time dependencies
python3-betamax: add missing run-time dependencies
python3-binwalk: add missing run-time dependencies
python3-can: fix coding style
python3-can: add missing run-time dependencies
python3-click-spinner: add missing run-time dependencies
python3-colorlog: add missing run-time dependencies
python3-colorzero: add missing run-time dependencies
python3-configobj: fix coding style
python3-configobj: add missing run-time dependencies
python3-configshell-fb: add missing run-time dependencies
python3-coverage: fix coding style and RDEPENDS
python3-custom-inherit: add missing run-time dependencies
python3-dateparser: fix coding style
python3-dateparser: add missing run-time dependencies
python3-tzlocal: fix coding style
python3-tzlocal: add missing run-time dependencies
python3-dbus-next: add missing run-time dependencies
python3-defusedxml: add missing run-time dependencies python3-setuptools-scm-git-archive: add missing run-time dependencies

  meta-oe/recipes-security/nmap/nmap_7.80.bb    |  6 +-
  .../python3-gsocketpool_0.1.6.bb              |  7 ++-
  .../python-hpack/python3-hpack_4.0.0.bb       |  2 +
  .../python-thrift/python3-thrift_0.16.0.bb    |  9 +--
  .../python-txws/python3-txws_0.9.1.bb         |  5 ++
  .../packagegroups/packagegroup-meta-python.bb |  1 -
  .../python/python-flask-script.inc            | 12 ----
  .../python/python-flask-sijax.inc             |  6 +-
  .../python/python-idna-ssl.inc                |  5 ++
  .../python/python3-aioserial_1.3.1.bb         |  6 +-
  .../python/python3-aspectlib_2.0.0.bb         |  5 +-
  .../python/python3-asyncio-throttle_1.0.2.bb  |  2 +
  .../python/python3-betamax_0.8.1.bb           |  6 +-
  .../python/python3-binwalk_2.3.3.bb           |  8 ++-
  .../python/python3-can_4.2.1.bb               | 28 +++++----
  .../python/python3-classes_0.4.1.bb           | 10 ++++
  .../python/python3-click-spinner_0.1.10.bb    |  2 +
  .../python/python3-colorlog_6.7.0.bb          |  2 +
  .../python/python3-colorzero_2.0.bb           |  5 +-
  .../python/python3-configobj_5.0.8.bb         |  5 +-
  .../python/python3-configshell-fb_1.1.29.bb   |  7 ++-
  .../python/python3-coverage_7.2.6.bb          | 19 +++---
  .../python/python3-custom-inherit_2.3.1.bb    |  5 ++
  .../python/python3-dateparser_1.1.8.bb        | 11 ++--
  .../python/python3-dbus-next_0.2.3.bb         |  5 ++
  .../python/python3-defusedxml_0.7.1.bb        |  2 +
  .../python/python3-ecdsa_0.18.0.bb            |  4 ++
  .../python/python3-editor_1.0.4.bb            |  5 ++
  .../python/python3-et-xmlfile_1.1.0.bb        |  8 ++-
  .../python/python3-flask-mail_0.9.1.bb        |  5 +-
  .../python/python3-flask-script_2.0.6.bb      |  2 -
  .../python/python3-flask-user_0.6.19.bb       | 13 ++--
  .../python/python3-h11_0.14.0.bb              |  2 +
  .../python/python3-html2text_2020.1.16.bb     |  2 +
  .../python/python3-iperf_0.1.11.bb            |  6 ++
  .../python/python3-isodate_0.6.1.bb           |  3 +-
  .../python/python3-isort_5.12.0.bb            | 16 ++---
  .../python/python3-javaobj-py3_0.4.3.bb       |  5 ++
  .../python/python3-jsonpath-rw_1.4.0.bb       |  7 ++-
  .../python/python3-jsonrpcclient_4.0.2.bb     |  4 +-
  .../python/python3-jstyleson_0.0.2.bb         |  2 +
  .../python/python3-kconfiglib_14.1.0.bb       |  6 ++
  .../python/python3-lazy_1.5.bb                |  8 +++
  .../python/python3-libevdev_0.11.bb           |  5 ++
  .../python/python3-linux-procfs_0.7.1.bb      |  2 +
  .../python/python3-lockfile_0.12.2.bb         |  5 +-
  .../python/python3-meld3_2.0.1.bb             |  6 ++
  .../python/python3-mock_5.0.2.bb              | 15 +++--
  .../python/python3-mpmath_1.3.0.bb            |  5 +-
  .../python/python3-msm_0.8.8.bb               | 14 ++++-
  .../python/python3-netaddr_0.8.0.bb           |  5 +-
  .../python/python3-ninja-syntax_1.7.2.bb      | 10 ++++
  .../python/python3-ninja_1.11.1.bb            |  7 ++-
  .../python/python3-oslash_0.6.3.bb            |  5 +-
  .../python/python3-padaos_0.1.10.bb           |  2 +
  .../python/python3-padatious_0.4.8.bb         |  8 +++
  .../python/python3-pako_0.3.1.bb              |  7 +++
  .../python/python3-paramiko_3.1.0.bb          | 11 ++--
  .../python/python3-parse_1.19.0.bb            | 13 ++--
  .../python/python3-path_16.6.0.bb             | 12 ++--
  .../python/python3-pefile_2023.2.7.bb         |  6 ++
  .../python/python3-petact_0.1.2.bb            |  6 ++
  .../python/python3-pickleshare_0.7.5.bb       |  2 +
  .../python/python3-process-tests_2.1.2.bb     |  6 ++
  .../python/python3-pure-eval_0.2.2.bb         |  5 ++
  .../python/python3-pyatspi_2.46.0.bb          |  2 +
  .../python/python3-pydantic_1.10.7.bb         | 19 +++---
  .../python/python3-pyexpect_1.0.22.bb         |  2 +
  .../python/python3-pyiface_git.bb             |  6 ++
  .../python/python3-pyjks_20.0.0.bb            | 12 ++--
  .../python/python3-pyjwt_2.7.0.bb             |  5 +-
  .../python/python3-pykwalify_1.8.0.bb         |  7 ++-
  .../python/python3-pylyrics_1.1.0.bb          |  8 ++-
  .../0002-Fixed-relative-imports.patch         | 60 +++++++++++++++++++
  .../python/python3-pynetlinux_1.1.bb          | 11 +++-
  .../python/python3-pypng_0.20220715.0.bb      |  8 +++
  .../python/python3-pyproj_3.5.0.bb            |  8 ++-
  .../python3-pyproject-metadata_0.7.1.bb       |  6 ++
  .../python/python3-pyrad_2.4.bb               |  8 +++
  .../python/python3-pyroute2_0.5.19.bb         | 33 +++++-----
  .../python/python3-pytest-mock_3.10.0.bb      |  6 ++
  .../python/python3-python-vlc_3.0.18122.bb    |  5 ++
  .../python/python3-pyusb_1.2.1.bb             |  2 +-
  .../python/python3-qrcode_7.4.2.bb            |  7 ++-
  .../python/python3-raven_6.10.0.bb            |  5 ++
  .../python/python3-redis_4.5.5.bb             | 12 ++--
  .../python/python3-sdnotify_0.3.2.bb          |  2 +
  .../python/python3-service-identity_21.1.0.bb |  6 ++
  .../python3-setuptools-scm-git-archive_1.1.bb |  1 +
  .../python/python3-sqlalchemy_2.0.15.bb       | 18 +++---
  .../python/python3-sqlsoup_0.9.1.bb           |  2 +
  .../python/python3-stack-data_0.6.2.bb        |  8 ++-
  .../python/python3-sympy_1.12.bb              |  5 +-
  .../python/python3-tomlkit_0.11.8.bb          |  6 ++
  .../python/python3-tornado_6.3.bb             | 22 +++++--
  .../python/python3-trustme_0.9.0.bb           |  7 +++
  .../python/python3-twofish_0.3.0.bb           |  2 +
  .../python/python3-typeguard_4.0.0.bb         |  5 ++
  .../python/python3-tzlocal_5.0.1.bb           |  7 ++-
  .../python/python3-uefi-firmware_1.10.bb      |  5 ++
  .../python/python3-uswid_git.bb               |  6 ++
  .../python/python3-versiontools_1.9.1.bb      |  2 +
  .../python/python3-web3_6.3.0.bb              |  2 +
  .../python/python3-websockets_11.0.3.bb       |  5 +-
  .../python/python3-xlrd_2.0.1.bb              | 10 +++-
  .../python/python3-xmlrunner_1.7.7.bb         |  2 +
  .../python3-attrdict3_2.0.2.bb                |  2 +
  .../python-cson/python3-cson_git.bb           |  3 +-
  .../python3-pyparted_3.12.0.bb                |  5 +-
  .../pywbem/python3-pywbem_1.6.1.bb            | 38 ++++++------
  .../send2trash/python3-send2trash_1.8.0.bb    |  2 +
  .../python/python3-ldap_3.4.3.bb              |  9 +--
  112 files changed, 649 insertions(+), 201 deletions(-)

delete mode 100644 meta-python/recipes-devtools/python/python-flask-script.inc
create mode 100644 meta-python/recipes-devtools/python/python3-classes_0.4.1.bb
delete mode 100644 meta-python/recipes-devtools/python/python3-flask-script_2.0.6.bb create mode 100644 meta-python/recipes-devtools/python/python3-lazy_1.5.bb
create mode 100644 meta-python/recipes-devtools/python/python3-ninja-syntax_1.7.2.bb create mode 100644 meta-python/recipes-devtools/python/python3-pynetlinux/0002-Fixed-relative-imports.patch create mode 100644 meta-python/recipes-devtools/python/python3-pypng_0.20220715.0.bb

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#102927): https://lists.openembedded.org/g/openembedded-devel/message/102927
Mute This Topic: https://lists.openembedded.org/mt/99237903/7304865
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#98 lore raw
Quoted 23 lines · ChenQi
Quoted 7 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

A significant number of python recipes don't specify all the run-time dependencies required to at least be able to import all the installed modules. This series is the result of a semi-automated run through all python recipes in meta-python, building minimal images and verifying that there are no import exceptions.

I checked a few changes. Why are some recipes adding 'python3-unittest' as a runtime dependency?

For example, python3-ldap does not seem to need it. I checked the codes,
https://github.com/cannatag/ldap3, all unittest references reside inside the test/ directory.

If it's a semi-automated run, then when it fails, I think the failed import commands could be recorded and put in the commit message. This could be achieved by using a template commit file which is then substituted to generate the actual commit file and using '-F' option to commit.

Quoted 3 lines

Regards,

Qi

In this case it's not ldap itself but slapdtest which is also shipped and installed by the recipe. If someone ends up splitting it into its propert ptest package then we could remove this dependency but as it is now: it's impossible to import all shipped modules without unittest so adding it at least makes it more correct.

Bart

#5 lore raw

Re: [meta-python][PATCH 004/149] python3-pywbem: don't use PYTHON_PN

In reply to Bartosz Golaszewski

seeing this

13:23:45 NOTE: Resolving any missing task queue dependencies
13:23:54 ERROR: Nothing RPROVIDES 'python3-yamlloader-native' (but virtual:native:/mnt/jenkins/workspace/Yocto-world-arm/sources/meta-openembedded/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb RDEPENDS on or otherwise requires it)
13:23:54 NOTE: Runtime target 'python3-yamlloader-native' is
unbuildable, removing...
13:23:54 Missing or unbuildable dependency chain was:
['python3-yamlloader-native']
13:23:54 NOTE: Runtime target 'python3-pywbemtools' is unbuildable, removing...
13:23:54 Missing or unbuildable dependency chain was:
['python3-pywbemtools', 'python3-pywbem-native',
'python3-yamlloader-native']
13:23:54 NOTE: Runtime target 'python3-pywbemtools-dev' is
unbuildable, removing...
13:23:54 Missing or unbuildable dependency chain was:
['python3-pywbemtools-dev', 'python3-pywbem-native',
'python3-yamlloader-native']
13:23:59 ERROR: Nothing RPROVIDES 'python3-nocasedict-native' (but virtual:native:/mnt/jenkins/workspace/Yocto-world-arm/sources/meta-openembedded/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb RDEPENDS on or otherwise requires it)
13:23:59 NOTE: Runtime target 'python3-nocasedict-native' is
unbuildable, removing...
13:23:59 Missing or unbuildable dependency chain was:
['python3-nocasedict-native']
13:24:04 ERROR: Nothing RPROVIDES 'python3-nocaselist-native' (but virtual:native:/mnt/jenkins/workspace/Yocto-world-arm/sources/meta-openembedded/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb RDEPENDS on or otherwise requires it)
13:24:04 NOTE: Runtime target 'python3-nocaselist-native' is
unbuildable, removing...
13:24:04 Missing or unbuildable dependency chain was:
['python3-nocaselist-native']

Quoted 61 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

We no longer support python2. Drop PYTHON_PN and use python3 explicitly.

---
 .../pywbem/python3-pywbem_1.6.1.bb            | 34 +++++++++----------
 1 file changed, 17 insertions(+), 17 deletions(-)
meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb +17 -18
index 8b0383cf6..c84576382 100644
@@ -21,26 +21,26 @@ SRC_URI[sha256sum] = "abdbd6ce08b6c597cdd6c7730e6b49a842d913f2f6b3cc62b585c58ec3
 inherit pypi setuptools3 update-alternatives
 
 DEPENDS += " \
-    ${PYTHON_PN}-ply-native \
-    ${PYTHON_PN}-pyyaml-native \
-    ${PYTHON_PN}-six-native \
-    ${PYTHON_PN}-wheel-native \
+    python3-ply-native \
+    python3-pyyaml-native \
+    python3-six-native \
+    python3-wheel-native \
 "
 
 RDEPENDS:${PN} += "\
-    ${PYTHON_PN}-datetime \
-    ${PYTHON_PN}-io \
-    ${PYTHON_PN}-netclient \
-    ${PYTHON_PN}-ply \
-    ${PYTHON_PN}-pyyaml \
-    ${PYTHON_PN}-six \
-    ${PYTHON_PN}-stringold \
-    ${PYTHON_PN}-threading \
-    ${PYTHON_PN}-unixadmin \
-    ${PYTHON_PN}-xml \
-    ${PYTHON_PN}-nocasedict \
-    ${PYTHON_PN}-nocaselist \
-    ${PYTHON_PN}-yamlloader \
+    python3-datetime \
+    python3-io \
+    python3-netclient \
+    python3-ply \
+    python3-pyyaml \
+    python3-six \
+    python3-stringold \
+    python3-threading \
+    python3-unixadmin \
+    python3-xml \
+    python3-nocasedict \
+    python3-nocaselist \
+    python3-yamlloader \
 "
 
 ALTERNATIVE:${PN} = "mof_compiler"
--

2.39.2

#6 lore raw

Re: [meta-python][PATCH 004/149] python3-pywbem: don't use PYTHON_PN

Quoted 26 lines · Khem Raj

seeing this

13:23:45 NOTE: Resolving any missing task queue dependencies
13:23:54 ERROR: Nothing RPROVIDES 'python3-yamlloader-native' (but virtual:native:/mnt/jenkins/workspace/Yocto-world-arm/sources/meta-openembedded/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb RDEPENDS on or otherwise requires it)
13:23:54 NOTE: Runtime target 'python3-yamlloader-native' is
unbuildable, removing...
13:23:54 Missing or unbuildable dependency chain was:
['python3-yamlloader-native']
13:23:54 NOTE: Runtime target 'python3-pywbemtools' is unbuildable, removing...
13:23:54 Missing or unbuildable dependency chain was:
['python3-pywbemtools', 'python3-pywbem-native',
'python3-yamlloader-native']
13:23:54 NOTE: Runtime target 'python3-pywbemtools-dev' is
unbuildable, removing...
13:23:54 Missing or unbuildable dependency chain was:
['python3-pywbemtools-dev', 'python3-pywbem-native',
'python3-yamlloader-native']
13:23:59 ERROR: Nothing RPROVIDES 'python3-nocasedict-native' (but virtual:native:/mnt/jenkins/workspace/Yocto-world-arm/sources/meta-openembedded/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb RDEPENDS on or otherwise requires it)
13:23:59 NOTE: Runtime target 'python3-nocasedict-native' is
unbuildable, removing...
13:23:59 Missing or unbuildable dependency chain was:

Quoted 9 lines

['python3-nocasedict-native']
13:24:04 ERROR: Nothing RPROVIDES 'python3-nocaselist-native' (but virtual:native:/mnt/jenkins/workspace/Yocto-world-arm/sources/meta-openembedded/meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb RDEPENDS on or otherwise requires it)
13:24:04 NOTE: Runtime target 'python3-nocaselist-native' is
unbuildable, removing...
13:24:04 Missing or unbuildable dependency chain was:
['python3-nocaselist-native']

This is caused by dependencies of python3-pywbem-native not having BBCLASSEXTEND = "native" in their recipes. How did it even work before? Clearly it wouldn't pull any of its run-time dependencies into the native sysroot...

Bart

Quoted 62 lines · Bartosz Golaszewski
Quoted 61 lines

From: Bartosz Golaszewski <[email protected]>

We no longer support python2. Drop PYTHON_PN and use python3 explicitly.

---
 .../pywbem/python3-pywbem_1.6.1.bb            | 34 +++++++++----------
 1 file changed, 17 insertions(+), 17 deletions(-)
meta-python/recipes-extended/pywbem/python3-pywbem_1.6.1.bb +17 -18
index 8b0383cf6..c84576382 100644
@@ -21,26 +21,26 @@ SRC_URI[sha256sum] = "abdbd6ce08b6c597cdd6c7730e6b49a842d913f2f6b3cc62b585c58ec3
 inherit pypi setuptools3 update-alternatives
 
 DEPENDS += " \
-    ${PYTHON_PN}-ply-native \
-    ${PYTHON_PN}-pyyaml-native \
-    ${PYTHON_PN}-six-native \
-    ${PYTHON_PN}-wheel-native \
+    python3-ply-native \
+    python3-pyyaml-native \
+    python3-six-native \
+    python3-wheel-native \
 "
 
 RDEPENDS:${PN} += "\
-    ${PYTHON_PN}-datetime \
-    ${PYTHON_PN}-io \
-    ${PYTHON_PN}-netclient \
-    ${PYTHON_PN}-ply \
-    ${PYTHON_PN}-pyyaml \
-    ${PYTHON_PN}-six \
-    ${PYTHON_PN}-stringold \
-    ${PYTHON_PN}-threading \
-    ${PYTHON_PN}-unixadmin \
-    ${PYTHON_PN}-xml \
-    ${PYTHON_PN}-nocasedict \
-    ${PYTHON_PN}-nocaselist \
-    ${PYTHON_PN}-yamlloader \
+    python3-datetime \
+    python3-io \
+    python3-netclient \
+    python3-ply \
+    python3-pyyaml \
+    python3-six \
+    python3-stringold \
+    python3-threading \
+    python3-unixadmin \
+    python3-xml \
+    python3-nocasedict \
+    python3-nocaselist \
+    python3-yamlloader \
 "
 
 ALTERNATIVE:${PN} = "mof_compiler"
--

2.39.2

#66 lore raw

Re: [meta-python][PATCH 063/149] python3-pytest-mock: add missing run-time dependencies

In reply to Bartosz Golaszewski

on qemux86-64/glibc I am seeing

AssertionError:
Failed ptests:
{'python3-pytest-mock':
['tests/test_pytest_mock.py::test_assert_called_args_with_introspection',

'tests/test_pytest_mock.py::test_assert_called_kwargs_with_introspection',

'tests/test_pytest_mock.py::test_detailed_introspection_async',
'tests/test_pytest_mock.py::test_plain_stopall',

'tests/test_pytest_mock.py::test_used_with_class_scope',

'tests/test_pytest_mock.py::test_used_with_module_scope',

'tests/test_pytest_mock.py::test_used_with_package_scope',

'tests/test_pytest_mock.py::test_used_with_session_scope']}

Cannot run ptests without @expectedFailure as ptests are expected to fail

Quoted 30 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-pytest-mock_3.10.0.bb   | 6 ++++++
 1 file changed, 6 insertions(+)
meta-python/recipes-devtools/python/python3-pytest-mock_3.10.0.bb +6 -1
index c4e672f33..bf5bc250a 100644
@@ -18,6 +18,12 @@ inherit setuptools3 ptest
 
 DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
 
+RDEPENDS:${PN} += " \
+    python3-asyncio \
+    python3-pytest \
+    python3-unittest \
+"
+
 S = "${WORKDIR}/git"
 
 do_install_ptest() {
--

2.39.2

#67 lore raw

Re: [meta-python][PATCH 063/149] python3-pytest-mock: add missing run-time dependencies

Quoted 15 lines · Khem Raj

on qemux86-64/glibc I am seeing

AssertionError:
Failed ptests:
{'python3-pytest-mock':
['tests/test_pytest_mock.py::test_assert_called_args_with_introspection',

'tests/test_pytest_mock.py::test_assert_called_kwargs_with_introspection',

'tests/test_pytest_mock.py::test_detailed_introspection_async',
'tests/test_pytest_mock.py::test_plain_stopall',

'tests/test_pytest_mock.py::test_used_with_class_scope',

Quoted 9 lines

'tests/test_pytest_mock.py::test_used_with_module_scope',

'tests/test_pytest_mock.py::test_used_with_package_scope',

'tests/test_pytest_mock.py::test_used_with_session_scope']}

Cannot run ptests without @expectedFailure as ptests are expected to fail

I'm not sure I follow. Without this patch the ptests can't even be started as pytest is not available for import, so it's not really a regression.

Bart

Quoted 31 lines · Bartosz Golaszewski
Quoted 30 lines

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-pytest-mock_3.10.0.bb   | 6 ++++++
 1 file changed, 6 insertions(+)
meta-python/recipes-devtools/python/python3-pytest-mock_3.10.0.bb +6 -1
index c4e672f33..bf5bc250a 100644
@@ -18,6 +18,12 @@ inherit setuptools3 ptest
 
 DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
 
+RDEPENDS:${PN} += " \
+    python3-asyncio \
+    python3-pytest \
+    python3-unittest \
+"
+
 S = "${WORKDIR}/git"
 
 do_install_ptest() {
--

2.39.2

#68 lore raw

Re: [meta-python][PATCH 063/149] python3-pytest-mock: add missing run-time dependencies

Quoted 24 lines · Bartosz Golaszewski
Quoted 9 lines · Khem Raj

on qemux86-64/glibc I am seeing

AssertionError:
Failed ptests:
{'python3-pytest-mock':
['tests/test_pytest_mock.py::test_assert_called_args_with_introspection',

'tests/test_pytest_mock.py::test_assert_called_kwargs_with_introspection',

Quoted 13 lines

'tests/test_pytest_mock.py::test_detailed_introspection_async',
'tests/test_pytest_mock.py::test_plain_stopall',

'tests/test_pytest_mock.py::test_used_with_class_scope',

'tests/test_pytest_mock.py::test_used_with_module_scope',

'tests/test_pytest_mock.py::test_used_with_package_scope',

'tests/test_pytest_mock.py::test_used_with_session_scope']}

Quoted 6 lines
Quoted 2 lines

Cannot run ptests without @expectedFailure as ptests are expected to fail

I'm not sure I follow. Without this patch the ptests can't even be started as pytest is not available for import, so it's not really a regression.

That’s fine all we need it disable from auto run

Quoted 42 lines

Bart

Quoted 1 line

On Wed, May 31, 2023 at 1:26 AM Bartosz Golaszewski <[email protected]>

Quoted 8 lines · wrote:
Quoted 8 lines

From: Bartosz Golaszewski <[email protected]>

Add missing RDEPENDS for this package.

---
 .../recipes-devtools/python/python3-pytest-mock_3.10.0.bb   | 6

++++++

Quoted 3 lines

Review

Quoted 3 lines
 1 file changed, 6 insertions(+)
(quoted diff) +0 -0

python3-pytest-mock_3.10.0.bb b/meta-python/recipes-devtools/python/ python3-pytest-mock_3.10.0.bb

Quoted 2 lines
Quoted 2 lines

index c4e672f33..bf5bc250a 100644
--- a/meta-python/recipes-devtools/python/

python3-pytest-mock_3.10.0.bb

Quoted 1 line
Quoted 1 line

+++ b/meta-python/recipes-devtools/python/

python3-pytest-mock_3.10.0.bb

Quoted 16 lines
Quoted 16 lines
meta-python/recipes-devtools/python/python3-pytest-mock_3.10.0.bb +6 -1
@@ -18,6 +18,12 @@ inherit setuptools3 ptest
 
 DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
 
+RDEPENDS:${PN} += " \
+    python3-asyncio \
+    python3-pytest \
+    python3-unittest \
+"
+
 S = "${WORKDIR}/git"
 
 do_install_ptest() {
--

2.39.2