Skip to contentSkip to conversation

python-dateutil: Add six package as runtime dependency

PATCH Superseded [email protected] 2 participants 3 messages Apr 14, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python-dateutil: Add six package as runtime dependency

dateutil package has runtime dependency on "six" package for native version as well, as shown in error log below, fix the same:

| File "poky/build/tmp/work/*/recipe-sysroot-native/usr/lib/python3.8/
site-packages/pykwalify/core.py", line 25, in <module>
| from dateutil.parser import parse
| File "poky/build/tmp/work/*/recipe-sysroot-native/usr/lib/python3.8/
site-packages/dateutil/parser/__init__.py", line 2, in <module>
| from ._parser import parse, parser, parserinfo, ParserError
| File "poky/build/tmp/work/*/recipe-sysroot-native/usr/lib/python3.8/
site-packages/dateutil/parser/_parser.py", line 42, in <module>

|       import six
|
|   ModuleNotFoundError: No module named 'six'
meta-python/recipes-devtools/python/python-dateutil.inc +4 -1
index 3c89cd62c..40f406f50 100644
@@ -15,10 +15,13 @@ FILES_${PN}-zoneinfo = "${libdir}/${PYTHON_DIR}/site-packages/dateutil/zoneinfo"
 
 DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
 
+RDEPENDS_${PN} = "\
+    ${PYTHON_PN}-six \
+"
+
 RDEPENDS_${PN}_class-target = "\
     ${PYTHON_PN}-datetime \
     ${PYTHON_PN}-numbers \
-    ${PYTHON_PN}-six \
     ${PYTHON_PN}-stringold \
 "
 
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/2 python3-pykwalify: Add recipe for v1.7.0

Description of the package can be found at:
https://pypi.org/project/pykwalify/

meta-python/recipes-devtools/python/python3-pykwalify_1.7.0.bb new file +23 -0
new file mode 100644
index 000000000..0237851c0
@@ -0,0 +1,23 @@
+SUMMARY = "YAML/JSON validation library"
+DESCRIPTION = "pykwalify is a schema validator for YAML and JSON"
+HOMEPAGE = "https://pypi.org/project/pykwalify/"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=a72ea5159364a2cd7f45c6dcbee37872"
+
+SRC_URI[md5sum] = "58357f1d0f77de976e73dbd3660af75b"
+SRC_URI[sha256sum] = "7e8b39c5a3a10bc176682b3bd9a7422c39ca247482df198b402e8015defcceb2"
+
+PYPI_PACKAGE = "pykwalify"
+inherit setuptools3 pypi
+
+DEPENDS = "\
+    ${PYTHON_PN}-dateutil-native \
+    ${PYTHON_PN}-pyyaml-native \
+"
+
+RDEPENDS_${PN} = "\
+    ${PYTHON_PN}-dateutil \
+    ${PYTHON_PN}-pyyaml \
+"
+
+BBCLASSEXTEND = "native"
Signature · 1 line
2.17.1
#2 lore raw
In reply to [email protected]
Quoted 23 lines · Abhishek Shah via lists.openembedded.org

dateutil package has runtime dependency on "six" package for native version as well, as shown in error log below, fix the same:

| File "poky/build/tmp/work/*/recipe-sysroot-native/usr/lib/python3.8/
site-packages/pykwalify/core.py", line 25, in <module>
| from dateutil.parser import parse
| File "poky/build/tmp/work/*/recipe-sysroot-native/usr/lib/python3.8/
site-packages/dateutil/parser/__init__.py", line 2, in <module>
| from ._parser import parse, parser, parserinfo, ParserError
| File "poky/build/tmp/work/*/recipe-sysroot-native/usr/lib/python3.8/
site-packages/dateutil/parser/_parser.py", line 42, in <module>

|       import six
|
|   ModuleNotFoundError: No module named 'six'
meta-python/recipes-devtools/python/python-dateutil.inc +0 -0
index 3c89cd62c..40f406f50 100644

meta-python/recipes-devtools/python/python-dateutil.inc FILES_${PN}-zoneinfo = "${libdir}/${PYTHON_DIR}/site-packages/dateutil/zoneinfo" · line 22

Quoted 8 lines
meta-python/recipes-devtools/python/python-dateutil.inc +4 -0
@@ -15,10 +15,13 @@ FILES_${PN}-zoneinfo = "${libdir}/${PYTHON_DIR}/site-packages/dateutil/zoneinfo"
 
 DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
 
+RDEPENDS_${PN} = "\
+    ${PYTHON_PN}-six \
+"
+
 RDEPENDS_${PN}_class-target = "\

This should perhaps be turned into RDEPENDS_${PN}_append_class-target with this change because we will still need it on target

Quoted 10 lines
meta-python/recipes-devtools/python/python-dateutil.inc +0 -2
     ${PYTHON_PN}-datetime \
     ${PYTHON_PN}-numbers \
-    ${PYTHON_PN}-six \
     ${PYTHON_PN}-stringold \
 "
 
--

2.17.1