Skip to contentSkip to conversation

python3-xmlschema: Yocto recipes for validating against XSD 1.1

PATCH In review Junjie Mao 3 participants 3 messages Jan 25, 2021 – Jan 27, 2021

lore
Share & tools
lore

Junjie Mao

author
#0 lore raw

PATCH 1/1 python3-xmlschema: Yocto recipes for validating against XSD 1.1

This patch adds recipes for xmlschema and its dependency in order to enable XML validation against XSD 1.1 in Python.

---
 .../python/python3-elementpath_2.1.2.bb              | 12 ++++++++++++
 .../python/python3-xmlschema_1.4.1.bb                | 20 ++++++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-elementpath_2.1.2.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-xmlschema_1.4.1.bb
meta-python/recipes-devtools/python/python3-elementpath_2.1.2.bb new file +12 -0
new file mode 100644
index 0000000..f47f152
@@ -0,0 +1,12 @@
+DESCRIPTION = "Provide XPath 1.0 and 2.0 selectors for Python's ElementTree XML data structures, both for the standard ElementTree library and for the lxml.etree library."
+HOMEPAGE = "https://github.com/sissaschool/elementpath"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=5dbb7fb7d72da3921202dd7b995d3ecf"
+
+SRC_URI[md5sum] = "887f60e9c4fb9b0804a38372b2798101"
+SRC_URI[sha256sum] = "23e1fed8d196d9a6cc4d220ef11fbe7eb8cff3a27848621c447e9d96134b2085"
+
+PYPI_PACKAGE = "elementpath"
+inherit pypi setuptools3
+
+BBCLASSEXTEND = "native nativesdk"
meta-python/recipes-devtools/python/python3-xmlschema_1.4.1.bb new file +20 -0
new file mode 100644
index 0000000..c609931
@@ -0,0 +1,20 @@
+SUMMARY = "The xmlschema library is an implementation of XML Schema for Python (supports Python 3.6+)."
+HOMEPAGE = "https://github.com/sissaschool/xmlschema"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=47489cb18c469474afeb259ed1d4832f"
+
+SRC_URI[md5sum] = "f4c46f8c4415a0ca31dc2f623b668664"
+SRC_URI[sha256sum] = "ade693114ff2e4a9ed5a2371ce29ae888f689bc58e326e5796f8a7dc8954dd4a"
+
+PYPI_PACKAGE = "xmlschema"
+inherit pypi setuptools3
+
+DEPENDS += "\
+    ${PYTHON_PN}-elementpath \
+"
+
+RDEPENDS_${PN} += "\
+    ${PYTHON_PN}-elementpath \
+"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.7.4
#1 lore raw

Hello,

Quoted 39 lines · Junjie Mao

This patch adds recipes for xmlschema and its dependency in order to enable XML validation against XSD 1.1 in Python.

---
 .../python/python3-elementpath_2.1.2.bb              | 12 ++++++++++++
 .../python/python3-xmlschema_1.4.1.bb                | 20 ++++++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-elementpath_2.1.2.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-xmlschema_1.4.1.bb
meta-python/recipes-devtools/python/python3-elementpath_2.1.2.bb new file +12 -0
new file mode 100644
index 0000000..f47f152
@@ -0,0 +1,12 @@
+DESCRIPTION = "Provide XPath 1.0 and 2.0 selectors for Python's ElementTree XML data structures, both for the standard ElementTree library and for the lxml.etree library."
+HOMEPAGE = "https://github.com/sissaschool/elementpath"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=5dbb7fb7d72da3921202dd7b995d3ecf"
+
+SRC_URI[md5sum] = "887f60e9c4fb9b0804a38372b2798101"
+SRC_URI[sha256sum] = "23e1fed8d196d9a6cc4d220ef11fbe7eb8cff3a27848621c447e9d96134b2085"
+
+PYPI_PACKAGE = "elementpath"
+inherit pypi setuptools3
+
+BBCLASSEXTEND = "native nativesdk"
meta-python/recipes-devtools/python/python3-xmlschema_1.4.1.bb new file +4 -0
new file mode 100644
index 0000000..c609931
@@ -0,0 +1,20 @@
+SUMMARY = "The xmlschema library is an implementation of XML Schema for Python (supports Python 3.6+)."
+HOMEPAGE = "https://github.com/sissaschool/xmlschema"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=47489cb18c469474afeb259ed1d4832f"

meta-python/recipes-devtools/python/python3-xmlschema_1.4.1.bb line 14

Quoted 10 lines
meta-python/recipes-devtools/python/python3-xmlschema_1.4.1.bb new file +10 -0
+
+SRC_URI[md5sum] = "f4c46f8c4415a0ca31dc2f623b668664"
+SRC_URI[sha256sum] = "ade693114ff2e4a9ed5a2371ce29ae888f689bc58e326e5796f8a7dc8954dd4a"
+
+PYPI_PACKAGE = "xmlschema"
+inherit pypi setuptools3
+
+DEPENDS += "\
+    ${PYTHON_PN}-elementpath \
+"

This failed on the autobuilders:

ERROR: python3-xmlschema-1.4.1-r0 do_compile: 'python3 setup.py build ' execution failed.
ERROR: python3-xmlschema-1.4.1-r0 do_compile: Execution of '/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/python3-xmlschema/1.4.1-r0/temp/run.do_compile.316552' failed with exit code 1:
WARNING: The pip package is not available, falling back to EasyInstall for handling setup_requires/test_requires; this is deprecated and will be removed in a future version.
ERROR: Do not try to fetch `elementpath<3.0.0,>=2.0.4' for building. Please add its native recipe to DEPENDS.

Full log here:
https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/884/steps/12/logs/stdio

Quoted 13 lines
meta-python/recipes-devtools/python/python3-xmlschema_1.4.1.bb new file +6 -0
+
+RDEPENDS_${PN} += "\
+    ${PYTHON_PN}-elementpath \
+"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.7.4
Signature · 3 lines
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Acked-by on v1 1/1
#2 lore raw
In reply to Junjie Mao
Quoted 1 line · Junjie Mao
Quoted 54 lines
---
  .../python/python3-elementpath_2.1.2.bb              | 12 ++++++++++++
  .../python/python3-xmlschema_1.4.1.bb                | 20 ++++++++++++++++++++
  2 files changed, 32 insertions(+)

create mode 100644 meta-python/recipes-devtools/python/python3-elementpath_2.1.2.bb create mode 100644 meta-python/recipes-devtools/python/python3-xmlschema_1.4.1.bb

meta-python/recipes-devtools/python/python3-elementpath_2.1.2.bb new file +12 -0
new file mode 100644
index 0000000..f47f152
@@ -0,0 +1,12 @@
+DESCRIPTION = "Provide XPath 1.0 and 2.0 selectors for Python's ElementTree XML data structures, both for the standard ElementTree library and for the lxml.etree library."
+HOMEPAGE = "https://github.com/sissaschool/elementpath"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=5dbb7fb7d72da3921202dd7b995d3ecf"
+
+SRC_URI[md5sum] = "887f60e9c4fb9b0804a38372b2798101"
+SRC_URI[sha256sum] = "23e1fed8d196d9a6cc4d220ef11fbe7eb8cff3a27848621c447e9d96134b2085"
+
+PYPI_PACKAGE = "elementpath"
+inherit pypi setuptools3
+
+BBCLASSEXTEND = "native nativesdk"
meta-python/recipes-devtools/python/python3-xmlschema_1.4.1.bb new file +20 -0
new file mode 100644
index 0000000..c609931
@@ -0,0 +1,20 @@
+SUMMARY = "The xmlschema library is an implementation of XML Schema for Python (supports Python 3.6+)."
+HOMEPAGE = "https://github.com/sissaschool/xmlschema"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=47489cb18c469474afeb259ed1d4832f"
+
+SRC_URI[md5sum] = "f4c46f8c4415a0ca31dc2f623b668664"
+SRC_URI[sha256sum] = "ade693114ff2e4a9ed5a2371ce29ae888f689bc58e326e5796f8a7dc8954dd4a"
+
+PYPI_PACKAGE = "xmlschema"
+inherit pypi setuptools3
+
+DEPENDS += "\
+    ${PYTHON_PN}-elementpath \
+"
+
+RDEPENDS_${PN} += "\
+    ${PYTHON_PN}-elementpath \
+"
+
+BBCLASSEXTEND = "native nativesdk"