Skip to contentSkip to conversation

python3-docutils: Upgrade to 0.17.1

PATCH New Khem Raj 1 participant 5 messages Apr 23, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/4 python3-docutils: Upgrade to 0.17.1

This was in meta-python for a while so merge the changes here and upgrade, once applied, delete from meta-python

License-Change: Deleted legacy stylesheets from LICENSE [1]
Updated URI for BSD-2 [2]

[1] https://sourceforge.net/p/docutils/code/8487/
[2] https://sourceforge.net/p/docutils/code/8554/

---
 .../python/python3-docutils_0.16.bb             | 17 -----------------
 .../python/python3-docutils_0.17.1.bb           | 11 +++++++++++
 2 files changed, 11 insertions(+), 17 deletions(-)
 delete mode 100644 meta/recipes-devtools/python/python3-docutils_0.16.bb
 create mode 100644 meta/recipes-devtools/python/python3-docutils_0.17.1.bb
meta/recipes-devtools/python/python3-docutils_0.16.bb deleted +0 -17
deleted file mode 100644
index 50547a1b0c..0000000000
@@ -1,17 +0,0 @@
-SUMMARY = "Text processing system for documentation"
-HOMEPAGE = "http://docutils.sourceforge.net"
-SECTION = "devel/python"
-LICENSE = "PSF & BSD-2-Clause & GPLv3"
-LIC_FILES_CHKSUM = "file://COPYING.txt;md5=7a4646907ab9083c826280b19e103106"
-
-DEPENDS = "python3"
-
-SRC_URI = "${SOURCEFORGE_MIRROR}/docutils/docutils-${PV}.tar.gz"
-SRC_URI[md5sum] = "9ccb6f332e23360f964de72c8ea5f0ed"
-SRC_URI[sha256sum] = "7d4e999cca74a52611773a42912088078363a30912e8822f7a3d38043b767573"
-
-S = "${WORKDIR}/docutils-${PV}"
-
-inherit distutils3
-
-BBCLASSEXTEND = "native"
meta/recipes-devtools/python/python3-docutils_0.17.1.bb new file +11 -0
new file mode 100644
index 0000000000..54a809847f
@@ -0,0 +1,11 @@
+SUMMARY = "Docutils is a modular system for processing documentation into useful formats"
+HOMEPAGE = "http://docutils.sourceforge.net"
+SECTION = "devel/python"
+LICENSE = "PSF & BSD-2-Clause & GPLv3"
+LIC_FILES_CHKSUM = "file://COPYING.txt;md5=836a1950177996968a49ff477a4a61c4"
+
+SRC_URI[sha256sum] = "686577d2e4c32380bb50cbb22f575ed742d58168cee37e99117a854bcd88f125"
+
+inherit pypi setuptools3
+
+BBCLASSEXTEND = "native"
Signature · 1 line
2.31.1
author
#1 lore raw

PATCH 1/1 python3-markupsafe: Enable ptests

pytest is now in OE-Core

---
 meta/recipes-devtools/python/python3-markupsafe_1.1.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3-markupsafe_1.1.1.bb +1 -1
index 403a98a43f..cade4e0f51 100644
@@ -8,7 +8,7 @@ SRC_URI[sha256sum] = "29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8
 
 PYPI_PACKAGE = "MarkupSafe"
 inherit pypi setuptools3
-# ptest disabled in OE-Core for now due to missing dependencies
+inherit ${@bb.utils.filter('DISTRO_FEATURES', 'ptest', d)}
 
 RDEPENDS_${PN} += "${PYTHON_PN}-stringold"
 
Signature · 1 line
2.31.1
author
#2 lore raw

PATCH 2/4 python3-jinja2: Enable ptests

In reply to Khem Raj

Needed dependencies on toml and pytest and unixadmin are in core now

---
 meta/recipes-devtools/python/python3-jinja2_2.11.3.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/python/python3-jinja2_2.11.3.bb +2 -2
index dbdf563f87..11a4d5432c 100644
@@ -13,8 +13,7 @@ CVE_PRODUCT = "jinja2 jinja"
 CLEANBROKEN = "1"
 
 inherit pypi setuptools3
-# ptest disabled in OE-Core for now due to missing dependencies
-
+inherit ${@bb.utils.filter('DISTRO_FEATURES', 'ptest', d)}
 
 SRC_URI += " \
 	file://run-ptest \
@@ -27,6 +26,7 @@ do_install_ptest() {
 
 RDEPENDS_${PN}-ptest += " \
 	${PYTHON_PN}-pytest \
+        ${PYTHON_PN}-toml \
 	${PYTHON_PN}-unixadmin \
 "
 
Signature · 1 line
2.31.1
author
#3 lore raw

PATCH 3/4 python3-pyyaml: Add recipe

In reply to Khem Raj

This is migrated from meta-python

---
 meta/conf/distro/include/maintainers.inc       |  1 +
 .../python/python3-pyyaml_5.4.1.bb             | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-pyyaml_5.4.1.bb
meta/conf/distro/include/maintainers.inc +1 -0
index 3ef62e54dd..db13382ce1 100644
@@ -614,6 +614,7 @@ RECIPE_MAINTAINER_pn-python3-pbr = "Zang Ruochen <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-pip = "Zang Ruochen <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-pluggy = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-py = "Tim Orling <[email protected]>"
+RECIPE_MAINTAINER_pn-python3-pyyaml = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-pycairo = "Zang Ruochen <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-pyelftools = "Joshua Watt <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-pygments = "Oleksandr Kravchuk <[email protected]>"
meta/recipes-devtools/python/python3-pyyaml_5.4.1.bb new file +18 -0
new file mode 100644
index 0000000000..c3025fdc66
@@ -0,0 +1,18 @@
+SUMMARY = "Python support for YAML"
+DEPENDS += "libyaml ${PYTHON_PN}-cython-native"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=6d8242660a8371add5fe547adf083079"
+
+PYPI_PACKAGE = "PyYAML"
+
+inherit pypi setuptools3
+
+SRC_URI[sha256sum] = "607774cbba28732bfa802b54baa7484215f530991055bb562efbed5b2f20a45e"
+
+RDEPENDS_${PN} += "\
+    ${PYTHON_PN}-datetime \
+    ${PYTHON_PN}-netclient \
+"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.31.1
author
#4 lore raw

PATCH 4/4 python3-markupsafe: Enable ptests

In reply to Khem Raj

pytest is now in OE-Core

---
 meta/recipes-devtools/python/python3-markupsafe_1.1.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3-markupsafe_1.1.1.bb +1 -1
index 403a98a43f..cade4e0f51 100644
@@ -8,7 +8,7 @@ SRC_URI[sha256sum] = "29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8
 
 PYPI_PACKAGE = "MarkupSafe"
 inherit pypi setuptools3
-# ptest disabled in OE-Core for now due to missing dependencies
+inherit ${@bb.utils.filter('DISTRO_FEATURES', 'ptest', d)}
 
 RDEPENDS_${PN} += "${PYTHON_PN}-stringold"
 
Signature · 1 line
2.31.1