Skip to contentSkip to conversation

Move python3-pytest to oe-core

PATCH In review Tim Orling 4 participants 22 messages Nov 28, 2020 – Nov 30, 2020

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

cover Move python3-pytest to oe-core

From: Tim Orling <[email protected]>

We are increasingly needing pytest in oe-core, so it is time to move it from meta-python.

This series first imports the recipes -- as-is -- from meta-python. Second, the maintainers.inc is updated to add myself as maintainer for all the new recipes.
Third, the two recipes that have stable updates are updated to their latest releases.
Finally, a fix caught during ptest runs is added for RDEPENDS for pytest.

This was built on 'nodistro' with only openembedded-core and tested on qemux86-64. All the new recipes that have ptests pass all tests.

The following changes since commit 6e3785a3f1f3cf68f5fe101cd6bebe91db165973:

uninative: Don't use single sstate for pseudo-native (2020-11-24 15:53:04 +0000)

are available in the Git repository at:

git://git.openembedded.org/openembedded-core-contrib timo/add-pytest-to-oe-core
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=timo/add-pytest-to-oe-core

For convenience, the same series is also available at the Git repository at:

git://git.yoctoproject.org/poky-contrib timo/move-pytest-to-core
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=timo/move-pytest-to-core

Tim Orling (18):
python3-atomicwrites: move from meta-python
python3-attrs: move from meta-python
python3-iniconfig: move from meta-python
python3-more-itertools: move from meta-python
python3-pathlib2: move from meta-python
python3-toml: move from meta-python
python3-py: move from meta-python
python3-setuptools-scm: move from meta-python
python3-packaging: move from meta-python
python3-wcwidth: move from meta-python
python3-zipp: move from meta-python python3-importlib-metadata: move from meta-python
python3-pluggy: move from meta-python
python3-pytest: move from meta-python maintainers.inc: add self for new pytest packages
python3-more-itertools: upgrade 8.5.0 -> 8.6.0 python3-importlib-metadata: upgrade 2.0.0 to 3.1.0
python3-pytest: RDEPENDS on python3-toml

 meta/conf/distro/include/maintainers.inc      | 14 +++++++
 .../python/python3-atomicwrites/run-ptest     |  3 ++
 .../python/python3-atomicwrites_1.4.0.bb      | 25 ++++++++++++
 .../python/python3-attrs_20.3.0.bb            | 20 ++++++++++
 .../python3-importlib-metadata_3.1.0.bb       | 18 +++++++++
 .../python/python3-iniconfig_1.1.1.bb         |  9 +++++
 .../python/python3-more-itertools/run-ptest   |  3 ++
 .../python/python3-more-itertools_8.6.0.bb    | 23 +++++++++++
 .../python/python3-packaging_20.4.bb          | 14 +++++++
 .../python/python3-pathlib2_2.3.5.bb          | 13 +++++++
 .../python/python3-pluggy/run-ptest           |  3 ++
 .../python/python3-pluggy_0.13.1.bb           | 27 +++++++++++++
 .../python/python3-py_1.9.0.bb                | 15 +++++++
 ...he-setup_requires-for-setuptools-scm.patch | 39 +++++++++++++++++++
 .../python/python3-pytest_6.1.2.bb            | 39 +++++++++++++++++++
 .../python/python3-setuptools-scm_4.1.2.bb    | 21 ++++++++++
 .../python/python3-toml_0.10.2.bb             | 15 +++++++
 .../python/python3-wcwidth/run-ptest          |  3 ++
 .../python/python3-wcwidth_0.2.5.bb           | 25 ++++++++++++
 .../python/python3-zipp_3.4.0.bb              | 19 +++++++++
 20 files changed, 348 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-atomicwrites/run-ptest
 create mode 100644 meta/recipes-devtools/python/python3-atomicwrites_1.4.0.bb
 create mode 100644 meta/recipes-devtools/python/python3-attrs_20.3.0.bb
 create mode 100644 meta/recipes-devtools/python/python3-importlib-metadata_3.1.0.bb
 create mode 100644 meta/recipes-devtools/python/python3-iniconfig_1.1.1.bb
 create mode 100644 meta/recipes-devtools/python/python3-more-itertools/run-ptest
 create mode 100644 meta/recipes-devtools/python/python3-more-itertools_8.6.0.bb
 create mode 100644 meta/recipes-devtools/python/python3-packaging_20.4.bb
 create mode 100644 meta/recipes-devtools/python/python3-pathlib2_2.3.5.bb
 create mode 100644 meta/recipes-devtools/python/python3-pluggy/run-ptest
 create mode 100644 meta/recipes-devtools/python/python3-pluggy_0.13.1.bb
 create mode 100644 meta/recipes-devtools/python/python3-py_1.9.0.bb
 create mode 100644 meta/recipes-devtools/python/python3-pytest/0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch
 create mode 100644 meta/recipes-devtools/python/python3-pytest_6.1.2.bb
 create mode 100644 meta/recipes-devtools/python/python3-setuptools-scm_4.1.2.bb
 create mode 100644 meta/recipes-devtools/python/python3-toml_0.10.2.bb
 create mode 100644 meta/recipes-devtools/python/python3-wcwidth/run-ptest
 create mode 100644 meta/recipes-devtools/python/python3-wcwidth_0.2.5.bb
 create mode 100644 meta/recipes-devtools/python/python3-zipp_3.4.0.bb
Signature · 1 line
2.25.0
author
#1 lore raw

PATCH 1/18 python3-atomicwrites: move from meta-python

From: Tim Orling <[email protected]>

Powerful Python library for atomic file writes

* Part of the dependency chain for python3-pytest

---
 .../python/python3-atomicwrites/run-ptest     |  3 +++
 .../python/python3-atomicwrites_1.4.0.bb      | 25 +++++++++++++++++++
 2 files changed, 28 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-atomicwrites/run-ptest
 create mode 100644 meta/recipes-devtools/python/python3-atomicwrites_1.4.0.bb
meta/recipes-devtools/python/python3-atomicwrites/run-ptest new file +3 -0
new file mode 100644
index 00000000000..b63c4de0d9a
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
meta/recipes-devtools/python/python3-atomicwrites_1.4.0.bb new file +25 -0
new file mode 100644
index 00000000000..7edd41030fb
@@ -0,0 +1,25 @@
+DESCRIPTION = "Powerful Python library for atomic file writes"
+HOMEPAGE = "https://github.com/untitaker/python-atomicwrites"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=91cc36cfafeefb7863673bcfcb1d4da4"
+
+SRC_URI[md5sum] = "b5cc15c8f9f180a48665f9aacf91d817"
+SRC_URI[sha256sum] = "ae70396ad1a434f9c7046fd2dd196fc04b12f9e91ffb859164193be8b6168a7a"
+
+inherit pypi setuptools3 ptest
+
+SRC_URI += " \
+	file://run-ptest \
+"
+
+RDEPENDS_${PN}-ptest += " \
+	${PYTHON_PN}-pytest \
+	${PYTHON_PN}-unixadmin \
+"
+
+do_install_ptest() {
+	install -d ${D}${PTEST_PATH}/tests
+	cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
+
+RDEPENDS_${PN} = "${PYTHON_PN}-misc"
Signature · 1 line
2.25.0
author
#2 lore raw

PATCH 2/18 python3-attrs: move from meta-python

In reply to Tim Orling

From: Tim Orling <[email protected]>

Classes Without Boilerplate

* Part of the dependency chain for pytest

---
 .../python/python3-attrs_20.3.0.bb            | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-attrs_20.3.0.bb
meta/recipes-devtools/python/python3-attrs_20.3.0.bb new file +20 -0
new file mode 100644
index 00000000000..55cfda71809
@@ -0,0 +1,20 @@
+DESCRIPTION = "Classes Without Boilerplate"
+HOMEPAGE = "http://www.attrs.org/"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=d4ab25949a73fe7d4fdee93bcbdbf8ff"
+
+SRC_URI[sha256sum] = "832aa3cde19744e49938b91fea06d69ecb9e649c93ba974535d08ad92164f700"
+SRC_URI[md5sum] = "4fe38f89297b2b446d83190fce189f29"
+
+inherit pypi setuptools3
+
+RDEPENDS_${PN}_class-target += " \
+    ${PYTHON_PN}-crypt \
+    ${PYTHON_PN}-ctypes \
+"
+RDEPENDS_${PN}_class-nativesdk += " \
+    ${PYTHON_PN}-crypt \
+    ${PYTHON_PN}-ctypes \
+"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.0
author
#3 lore raw

PATCH 3/18 python3-iniconfig: move from meta-python

In reply to Tim Orling

From: Tim Orling <[email protected]>

A small and simple INI-file parser module

* Part of the dependency chain for pytest

---
 meta/recipes-devtools/python/python3-iniconfig_1.1.1.bb | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-iniconfig_1.1.1.bb
meta/recipes-devtools/python/python3-iniconfig_1.1.1.bb new file +9 -0
new file mode 100644
index 00000000000..af4291bbf46
@@ -0,0 +1,9 @@
+SUMMARY = "A small and simple INI-file parser module"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=a6bb0320b04a0a503f12f69fea479de9"
+
+SRC_URI[md5sum] = "0b7f3be87481211c183eae095bcea6f1"
+SRC_URI[sha256sum] = "bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32"
+
+inherit pypi setuptools3
Signature · 1 line
2.25.0
author
#4 lore raw

PATCH 4/18 python3-more-itertools: move from meta-python

In reply to Tim Orling

From: Tim Orling <[email protected]>

More routines for operating on iterables, beyond itertools

* Part of the dependency chain for pytest

---
 .../python/python3-more-itertools/run-ptest   |  3 +++
 .../python/python3-more-itertools_8.5.0.bb    | 24 +++++++++++++++++++
 2 files changed, 27 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-more-itertools/run-ptest
 create mode 100644 meta/recipes-devtools/python/python3-more-itertools_8.5.0.bb
meta/recipes-devtools/python/python3-more-itertools/run-ptest new file +3 -0
new file mode 100644
index 00000000000..3385d68939d
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
meta/recipes-devtools/python/python3-more-itertools_8.5.0.bb new file +24 -0
new file mode 100644
index 00000000000..e924b0f731f
@@ -0,0 +1,24 @@
+DESCRIPTION = "More routines for operating on iterables, beyond itertools"
+HOMEPAGE = "https://github.com/erikrose/more-itertools"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3396ea30f9d21389d7857719816f83b5"
+
+SRC_URI[md5sum] = "2588b5a7042576b99574779582be9292"
+SRC_URI[sha256sum] = "6f83822ae94818eae2612063a5101a7311e68ae8002005b5e05f03fd74a86a20"
+
+inherit pypi setuptools3 ptest
+
+BBCLASSEXTEND = "native nativesdk"
+
+SRC_URI += " \
+	file://run-ptest \
+"
+
+RDEPENDS_${PN}-ptest += " \
+	${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+	install -d ${D}${PTEST_PATH}/tests
+	cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
Signature · 1 line
2.25.0
author
#5 lore raw

PATCH 5/18 python3-pathlib2: move from meta-python

In reply to Tim Orling

From: Tim Orling <[email protected]>

Object-oriented filesystem paths

* Part of the dependency chain for pytest

---
 .../python/python3-pathlib2_2.3.5.bb                | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-pathlib2_2.3.5.bb
meta/recipes-devtools/python/python3-pathlib2_2.3.5.bb new file +13 -0
new file mode 100644
index 00000000000..a022701ad0f
@@ -0,0 +1,13 @@
+DESCRIPTION = "Object-oriented filesystem paths"
+HOMEPAGE = "https://github.com/mcmtroffaes/pathlib2"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=042856c23a3e903b33bf361ea1cbe29a"
+
+SRC_URI[md5sum] = "f2bd0a363eb0f8fa0556f35c1d9e66fb"
+SRC_URI[sha256sum] = "6cd9a47b597b37cc57de1c05e56fb1a1c9cc9fab04fe78c29acd090418529868"
+
+inherit pypi setuptools3
+
+RDEPENDS_${PN} += "${PYTHON_PN}-six ${PYTHON_PN}-ctypes"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.0
author
#6 lore raw

PATCH 6/18 python3-toml: move from meta-python

In reply to Tim Orling

From: Tim Orling <[email protected]>

Python Library for Tom's Obvious, Minimimal Language

* Part of the dependency chain for pytest

---
 .../python/python3-toml_0.10.2.bb                 | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-toml_0.10.2.bb
meta/recipes-devtools/python/python3-toml_0.10.2.bb new file +15 -0
new file mode 100644
index 00000000000..b46eba6fd13
@@ -0,0 +1,15 @@
+SUMMARY = "Python Library for Tom's Obvious, Minimal Language"
+HOMEPAGE = "https://github.com/uiri/toml"
+LICENSE = "MIT"
+SECTION = "devel/python"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=16c77b2b1050d2f03cb9c2ed0edaf4f0"
+
+SRC_URI[sha256sum] = "b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"
+
+inherit pypi setuptools3
+
+BBCLASSEXTEND = "native nativesdk"
+
+RDEPENDS_${PN} += " \
+    ${PYTHON_PN}-misc \
+"
Signature · 1 line
2.25.0
author
#7 lore raw

PATCH 7/18 python3-py: move from meta-python

In reply to Tim Orling

From: Tim Orling <[email protected]>

Library with cross-pythonpath, ini-parsing, io, code, log facilities

* Part of the dependency chain for pytest

---
 meta/recipes-devtools/python/python3-py_1.9.0.bb | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-py_1.9.0.bb
meta/recipes-devtools/python/python3-py_1.9.0.bb new file +15 -0
new file mode 100644
index 00000000000..794ec2a87e5
@@ -0,0 +1,15 @@
+SUMMARY = "Library with cross-python path, ini-parsing, io, code, log facilities"
+HOMEPAGE = "http://py.readthedocs.io/"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=a6bb0320b04a0a503f12f69fea479de9"
+
+SRC_URI[md5sum] = "b80db4e61eef724f49feb4d20b649e62"
+SRC_URI[sha256sum] = "9ca6883ce56b4e8da7e79ac18787889fa5206c79dcc67fb065376cd2fe03f342"
+
+DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
+
+inherit pypi setuptools3
+
+BBCLASSEXTEND = "native nativesdk"
+
+RDEPENDS_${PN} += "${PYTHON_PN}-netclient"
Signature · 1 line
2.25.0
author
#8 lore raw

PATCH 8/18 python3-setuptools-scm: move from meta-python

In reply to Tim Orling

From: Tim Orling <[email protected]>

The blessed package to manage your versions by scm tags

* Part of the dependency chain for pytest

---
 .../python/python3-setuptools-scm_4.1.2.bb    | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-setuptools-scm_4.1.2.bb
meta/recipes-devtools/python/python3-setuptools-scm_4.1.2.bb new file +21 -0
new file mode 100644
index 00000000000..4ebbac6b652
@@ -0,0 +1,21 @@
+SUMMARY = "the blessed package to manage your versions by scm tags"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=8227180126797a0148f94f483f3e1489"
+
+SRC_URI[md5sum] = "e6c9fad17c90516d640868eb833d5150"
+SRC_URI[sha256sum] = "a8994582e716ec690f33fec70cca0f85bd23ec974e3f783233e4879090a7faa8"
+
+PYPI_PACKAGE = "setuptools_scm"
+inherit pypi setuptools3
+
+RDEPENDS_${PN} = "\
+    ${PYTHON_PN}-debugger \
+    ${PYTHON_PN}-json \
+    ${PYTHON_PN}-py \
+    ${PYTHON_PN}-setuptools \
+"
+RDEPENDS_${PN}_class-native = "\
+    ${PYTHON_PN}-setuptools-native \
+"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.0
author
#9 lore raw

PATCH 9/18 python3-packaging: move from meta-python

In reply to Tim Orling

From: Tim Orling <[email protected]>

Core utilities for Python packages

* Part of the dependency chain for pytest

---
 .../python/python3-packaging_20.4.bb               | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-packaging_20.4.bb
meta/recipes-devtools/python/python3-packaging_20.4.bb new file +14 -0
new file mode 100644
index 00000000000..c75707e69c7
@@ -0,0 +1,14 @@
+DESCRIPTION = "Core utilities for Python packages"
+HOMEPAGE = "https://github.com/pypa/packaging"
+LICENSE = "Apache-2.0 & BSD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=faadaedca9251a90b205c9167578ce91"
+
+SRC_URI[md5sum] = "3208229da731c5d8e29d4d8941e75005"
+SRC_URI[sha256sum] = "4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8"
+
+inherit pypi setuptools3
+
+BBCLASSEXTEND = "native"
+
+DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
+RDEPENDS_${PN} += "${PYTHON_PN}-six ${PYTHON_PN}-pyparsing"
Signature · 1 line
2.25.0
author
#10 lore raw

PATCH 10/18 python3-wcwidth: move from meta-python

In reply to Tim Orling

From: Tim Orling <[email protected]>

Library for bulding powerful interactive command lines in Python

* Part of the dependency chain for pytest

---
 .../python/python3-wcwidth/run-ptest          |  3 +++
 .../python/python3-wcwidth_0.2.5.bb           | 25 +++++++++++++++++++
 2 files changed, 28 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-wcwidth/run-ptest
 create mode 100644 meta/recipes-devtools/python/python3-wcwidth_0.2.5.bb
meta/recipes-devtools/python/python3-wcwidth/run-ptest new file +3 -0
new file mode 100644
index 00000000000..b63c4de0d9a
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
meta/recipes-devtools/python/python3-wcwidth_0.2.5.bb new file +25 -0
new file mode 100644
index 00000000000..bb4aae2e86b
@@ -0,0 +1,25 @@
+SUMMARY = "Library for building powerful interactive command lines in Python"
+DESCRIPTION = "Measures the displayed width of unicode strings in a terminal"
+HOMEPAGE = "https://github.com/jquast/wcwidth"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b15979c39a2543892fca8cd86b4b52cb"
+
+SRC_URI[md5sum] = "a07a75f99d316e14838ac760c831ea37"
+SRC_URI[sha256sum] = "c4d647b99872929fdb7bdcaa4fbe7f01413ed3d98077df798530e5b04f116c83"
+
+inherit pypi setuptools3 ptest
+
+SRC_URI += " \
+        file://run-ptest \
+"
+
+RDEPENDS_${PN}-ptest += " \
+       ${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+      install -d ${D}${PTEST_PATH}/tests
+        cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.0
author
#11 lore raw

PATCH 11/18 python3-zipp: move from meta-python

In reply to Tim Orling

From: Tim Orling <[email protected]>

Backport of pathlib-compatible object wrapper for zip files

* Part of the dependency chain for pytest

---
 .../python/python3-zipp_3.4.0.bb              | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-zipp_3.4.0.bb
meta/recipes-devtools/python/python3-zipp_3.4.0.bb new file +19 -0
new file mode 100644
index 00000000000..97523e8e7c8
@@ -0,0 +1,19 @@
+DESCRIPTION = "Backport of pathlib-compatible object wrapper for zip files"
+HOMEPAGE = "https://github.com/jaraco/zipp"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=7a7126e068206290f3fe9f8d6c713ea6"
+
+SRC_URI[md5sum] = "ae81f228995578b840d76d1b7d87fede"
+SRC_URI[sha256sum] = "ed5eee1974372595f9e416cc7bbeeb12335201d8081ca8a0743c954d4446e5cb"
+
+DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
+
+inherit pypi setuptools3
+
+DEPENDS += "${PYTHON_PN}-toml-native"
+
+RDEPENDS_${PN} += "${PYTHON_PN}-compression \
+                   ${PYTHON_PN}-math \
+                   ${PYTHON_PN}-more-itertools"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.0
author
#12 lore raw

PATCH 12/18 python3-importlib-metadata: move from meta-python

In reply to Tim Orling

From: Tim Orling <[email protected]>

Read metadata from Python packages

* Part of the dependency chain for pytest

---
 .../python/python3-importlib-metadata_2.0.0.bb | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-importlib-metadata_2.0.0.bb
meta/recipes-devtools/python/python3-importlib-metadata_2.0.0.bb new file +18 -0
new file mode 100644
index 00000000000..325a41c22e1
@@ -0,0 +1,18 @@
+DESCRIPTION = "Read metadata from Python packages"
+HOMEPAGE = "https://pypi.org/project/importlib-metadata/"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=e88ae122f3925d8bde8319060f2ddb8e"
+
+inherit pypi setuptools3
+
+SRC_URI = "https://files.pythonhosted.org/packages/56/1f/74c3e29389d34feea2d62ba3de1169efea2566eb22e9546d379756860525/importlib_metadata-2.0.0.tar.gz"
+S = "${WORKDIR}/importlib_metadata-${PV}"
+SRC_URI[md5sum] = "3dd91821c930a3c3633e99a7025aa9c2"
+SRC_URI[sha256sum] = "77a540690e24b0305878c37ffd421785a6f7e53c8b5720d211b211de8d0e95da"
+
+DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
+RDEPENDS_${PN} += "${PYTHON_PN}-zipp ${PYTHON_PN}-pathlib2"
+RDEPENDS_${PN}_append_class-target = " python3-misc"
+RDEPENDS_${PN}_append_class-nativesdk = " python3-misc"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.0
author
#13 lore raw

PATCH 13/18 python3-pluggy: move from meta-python

In reply to Tim Orling

From: Tim Orling <[email protected]>

Plugin and hook calling mechanisms for python

* Part of the dependency chain for pytest

---
 .../python/python3-pluggy/run-ptest           |  3 +++
 .../python/python3-pluggy_0.13.1.bb           | 27 +++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-pluggy/run-ptest
 create mode 100644 meta/recipes-devtools/python/python3-pluggy_0.13.1.bb
meta/recipes-devtools/python/python3-pluggy/run-ptest new file +3 -0
new file mode 100644
index 00000000000..b63c4de0d9a
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
meta/recipes-devtools/python/python3-pluggy_0.13.1.bb new file +27 -0
new file mode 100644
index 00000000000..d3e0365ca1d
@@ -0,0 +1,27 @@
+SUMMARY = "Plugin and hook calling mechanisms for python"
+HOMEPAGE = "https://github.com/pytest-dev/pluggy"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1c8206d16fd5cc02fa9b0bb98955e5c2"
+
+SRC_URI[md5sum] = "7f610e28b8b34487336b585a3dfb803d"
+SRC_URI[sha256sum] = "15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0"
+
+DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
+RDEPENDS_${PN} += "${PYTHON_PN}-importlib-metadata \
+                   ${PYTHON_PN}-more-itertools \
+"
+
+inherit pypi ptest setuptools3
+
+SRC_URI += " \
+	file://run-ptest \
+"
+
+RDEPENDS_${PN}-ptest += " \
+	${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+	install -d ${D}${PTEST_PATH}/testing
+	cp -rf ${S}/testing/* ${D}${PTEST_PATH}/testing/
+}
Signature · 1 line
2.25.0
author
#14 lore raw

PATCH 14/18 python3-pytest: move from meta-python

In reply to Tim Orling

From: Tim Orling <[email protected]>

Simple powerful testing with python

---
 ...he-setup_requires-for-setuptools-scm.patch | 39 +++++++++++++++++++
 .../python/python3-pytest_6.1.2.bb            | 38 ++++++++++++++++++
 2 files changed, 77 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-pytest/0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch
 create mode 100644 meta/recipes-devtools/python/python3-pytest_6.1.2.bb
meta/recipes-devtools/python/python3-pytest/0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch new file +39 -0
new file mode 100644
index 00000000000..8c5c17247e6
@@ -0,0 +1,39 @@
+From ff784f4803ab33f5e3389e40d038d52d1e211843 Mon Sep 17 00:00:00 2001
+From: Yuan Chao <[email protected]>
+Date: Wed, 28 Aug 2019 16:12:27 +0900
+Subject: [PATCH] [PATCH] setup.py: remove the setup_requires for
+ setuptools-scm
+
+The setup_requires argument forces the download of the egg file for setuptools-scm
+during the do_compile phase.  This download is incompatible with the typical fetch
+and mirror structure.  The only usage of scm is the generation of the _version.py
+file and in the release tarball it is already correctly created
+
+Upstream-Status: Inappropriate [oe specific]
+
+Signed-off-by: Derek Straka <[email protected]>
+
+Signed-off-by: Yuan Chao <[email protected]>
+
+Rebase for pytest 6.1.0.
+
+Signed-off-by: Kai Kang <[email protected]>
+---
+ setup.cfg | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/setup.cfg b/setup.cfg
+index 60f6564..c4d1471 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -55,7 +55,6 @@ package_dir =
+ 	=src
+ setup_requires = 
+ 	setuptools>=40.0
+-	setuptools-scm
+ zip_safe = no
+ 
+ [options.entry_points]
+-- 
+2.17.1
+
meta/recipes-devtools/python/python3-pytest_6.1.2.bb new file +38 -0
new file mode 100644
index 00000000000..6872da5cfac
@@ -0,0 +1,38 @@
+SUMMARY = "Simple powerful testing with python"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=81eb9f71d006c6b268cf4388e3c98f7b"
+
+SRC_URI_append = " file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch "
+
+SRC_URI[sha256sum] = "c0a7e94a8cdbc5422a51ccdad8e6f1024795939cc89159a0ae7f0b316ad3823e"
+
+inherit update-alternatives pypi setuptools3
+
+RDEPENDS_${PN}_class-target += " \
+    ${PYTHON_PN}-attrs \
+    ${PYTHON_PN}-debugger \
+    ${PYTHON_PN}-doctest \
+    ${PYTHON_PN}-iniconfig \
+    ${PYTHON_PN}-json \
+    ${PYTHON_PN}-pluggy \
+    ${PYTHON_PN}-py \
+    ${PYTHON_PN}-setuptools \
+    ${PYTHON_PN}-six \
+    ${PYTHON_PN}-atomicwrites \
+    ${PYTHON_PN}-importlib-metadata \
+    ${PYTHON_PN}-pathlib2 \
+    ${PYTHON_PN}-wcwidth \
+    ${PYTHON_PN}-more-itertools \
+    ${PYTHON_PN}-packaging \
+"
+
+ALTERNATIVE_${PN} += "py.test pytest"
+
+NATIVE_LINK_NAME[pytest] = "${bindir}/pytest"
+ALTERNATIVE_TARGET[pytest] = "${bindir}/pytest"
+
+ALTERNATIVE_LINK_NAME[py.test] = "${bindir}/py.test"
+ALTERNATIVE_TARGET[py.test] = "${bindir}/py.test"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.0
author
#15 lore raw

PATCH 15/18 maintainers.inc: add self for new pytest packages

In reply to Tim Orling

From: Tim Orling <[email protected]>

---
 meta/conf/distro/include/maintainers.inc | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
meta/conf/distro/include/maintainers.inc +14 -0
index ad5f4672c7a..f77965f8e0b 100644
@@ -582,6 +582,8 @@ RECIPE_MAINTAINER_pn-pulseaudio-client-conf-sato = "Tanu Kaskinen <[email protected]>
 RECIPE_MAINTAINER_pn-puzzles = "Anuj Mittal <[email protected]>"
 RECIPE_MAINTAINER_pn-python3 = "Oleksandr Kravchuk <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-async = "Oleksandr Kravchuk <[email protected]>"
+RECIPE_MAINTAINER_pn-python3-atomicwrites = "Tim Orling <[email protected]>"
+RECIPE_MAINTAINER_pn-python3-attrs = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-cython = "Oleksandr Kravchuk <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-dbus = "Zang Ruochen <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-dbusmock = "Oleksandr Kravchuk <[email protected]>"
@@ -591,28 +593,40 @@ RECIPE_MAINTAINER_pn-python3-pycryptodomex = "Joshua Watt <[email protected]>
 RECIPE_MAINTAINER_pn-python3-extras = "Oleksandr Kravchuk <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-git = "Oleksandr Kravchuk <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-gitdb = "Oleksandr Kravchuk <[email protected]>"
+RECIPE_MAINTAINER_pn-python3-importlib-metadata = "Tim Orling <[email protected]>"
+RECIPE_MAINTAINER_pn-python3-iniconfig = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-iniparse = "Oleksandr Kravchuk <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-jinja2 = "Richard Purdie <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-libarchive-c = "Joshua Watt <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-magic = "Joshua Watt <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-mako = "Oleksandr Kravchuk <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-markupsafe = "Richard Purdie <[email protected]>"
+RECIPE_MAINTAINER_pn-python3-more-itertools = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-nose = "Oleksandr Kravchuk <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-numpy = "Oleksandr Kravchuk <[email protected]>"
+RECIPE_MAINTAINER_pn-python3-packaging = "Tim Orling <[email protected]>"
+RECIPE_MAINTAINER_pn-python3-pathlib2 = "Tim Orling <[email protected]>"
 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-pycairo = "Zang Ruochen <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-pyelftools = "Joshua Watt <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-pygments = "Oleksandr Kravchuk <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-pygobject = "Zang Ruochen <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-pyparsing = "Oleksandr Kravchuk <[email protected]>"
+RECIPE_MAINTAINER_pn-python3-pytest = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-scons = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-scons-native = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-setuptools = "Oleksandr Kravchuk <[email protected]>"
+RECIPE_MAINTAINER_pn-python3-setuptools-scm = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-six = "Zang Ruochen <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-smmap = "Oleksandr Kravchuk <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-subunit = "Oleksandr Kravchuk <[email protected]>"
 RECIPE_MAINTAINER_pn-python3-testtools = "Oleksandr Kravchuk <[email protected]>"
+RECIPE_MAINTAINER_pn-python3-toml = "Tim Orling <[email protected]>"
+RECIPE_MAINTAINER_pn-python3-wcwidth = "Tim Orling <[email protected]>"
+RECIPE_MAINTAINER_pn-python3-zipp = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER_pn-qemu = "Richard Purdie <[email protected]>"
 RECIPE_MAINTAINER_pn-qemu-helper-native = "Richard Purdie <[email protected]>"
 RECIPE_MAINTAINER_pn-qemu-native = "Richard Purdie <[email protected]>"
Signature · 1 line
2.25.0
author
#16 lore raw

PATCH 16/18 python3-more-itertools: upgrade 8.5.0 -> 8.6.0

In reply to Tim Orling

From: Tim Orling <[email protected]>

Upstream release notes:
"
* New itertools
- all_unique (thanks to brianmaissy)
- nth_product and nth_permutation (thanks to N8Brooks)

* Changes to existing itertools
- chunked and sliced now accept a strict parameter (thanks to shlomif and jtwool)

* Other changes
- Python 3.5 has reached its end of life and is no longer supported.
- Python 3.9 is officially supported.
- Various documentation fixes (thanks to timgates42)

---
 ...-itertools_8.5.0.bb => python3-more-itertools_8.6.0.bb} | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
 rename meta/recipes-devtools/python/{python3-more-itertools_8.5.0.bb => python3-more-itertools_8.6.0.bb} (77%)
meta/recipes-devtools/python/python3-more-itertools_8.6.0.bb renamed from meta/recipes-devtools/python/python3-more-itertools_8.5.0.bb +3 -4
similarity index 77%
rename from meta/recipes-devtools/python/python3-more-itertools_8.5.0.bb
rename to meta/recipes-devtools/python/python3-more-itertools_8.6.0.bb
index e924b0f731f..ee5ce7ba9cc 100644
@@ -3,13 +3,10 @@ HOMEPAGE = "https://github.com/erikrose/more-itertools"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=3396ea30f9d21389d7857719816f83b5"
 
-SRC_URI[md5sum] = "2588b5a7042576b99574779582be9292"
-SRC_URI[sha256sum] = "6f83822ae94818eae2612063a5101a7311e68ae8002005b5e05f03fd74a86a20"
+SRC_URI[sha256sum] = "b3a9005928e5bed54076e6e549c792b306fddfe72b2d1d22dd63d42d5d3899cf"
 
 inherit pypi setuptools3 ptest
 
-BBCLASSEXTEND = "native nativesdk"
-
 SRC_URI += " \
 	file://run-ptest \
 "
@@ -22,3 +19,5 @@ do_install_ptest() {
 	install -d ${D}${PTEST_PATH}/tests
 	cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
 }
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.0
author
#17 lore raw

PATCH 17/18 python3-importlib-metadata: upgrade 2.0.0 to 3.1.0

In reply to Tim Orling

From: Tim Orling <[email protected]>

Upstream release notes:
"
v3.1.0

Merge with 2.1.0.

v2.1.0

#253: When querying for package metadata, the lookup now honors package normalization rules.

v3.0.0

Require Python 3.6 or later.
"

---
 ...etadata_2.0.0.bb => python3-importlib-metadata_3.1.0.bb} | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
 rename meta/recipes-devtools/python/{python3-importlib-metadata_2.0.0.bb => python3-importlib-metadata_3.1.0.bb} (64%)
meta/recipes-devtools/python/python3-importlib-metadata_3.1.0.bb renamed from meta/recipes-devtools/python/python3-importlib-metadata_2.0.0.bb +3 -3
similarity index 64%
rename from meta/recipes-devtools/python/python3-importlib-metadata_2.0.0.bb
rename to meta/recipes-devtools/python/python3-importlib-metadata_3.1.0.bb
index 325a41c22e1..d89621bedd6 100644
@@ -5,10 +5,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=e88ae122f3925d8bde8319060f2ddb8e"
 
 inherit pypi setuptools3
 
-SRC_URI = "https://files.pythonhosted.org/packages/56/1f/74c3e29389d34feea2d62ba3de1169efea2566eb22e9546d379756860525/importlib_metadata-2.0.0.tar.gz"
+SRC_URI = "https://files.pythonhosted.org/packages/7d/d4/dbc58eed92be61bae65a7d80a7604d35bf6ded3e3c53c14f2d45b4a28831/importlib_metadata-3.1.0.tar.gz"
+SRC_URI[sha256sum] = "d9b8a46a0885337627a6430db287176970fff18ad421becec1d64cfc763c2099"
+
 S = "${WORKDIR}/importlib_metadata-${PV}"
-SRC_URI[md5sum] = "3dd91821c930a3c3633e99a7025aa9c2"
-SRC_URI[sha256sum] = "77a540690e24b0305878c37ffd421785a6f7e53c8b5720d211b211de8d0e95da"
 
 DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
 RDEPENDS_${PN} += "${PYTHON_PN}-zipp ${PYTHON_PN}-pathlib2"
Signature · 1 line
2.25.0
author
#18 lore raw

PATCH 18/18 python3-pytest: RDEPENDS on python3-toml

In reply to Tim Orling

From: Tim Orling <[email protected]>

The generated requires.txt in pytest-*-py3.9.egg-info shows the requirement.

Caught during ptest of python3-wcwidth:

Signed-off-byROR collecting tests/test_core.py ______________________ tests/test_core.py:4: in <module>
import pkg_resources
../../python3.9/site-packages/pkg_resources/__init__.py:3239: in <module>
def _initialize_master_working_set():
../../python3.9/site-packages/pkg_resources/__init__.py:3222: in _call_aside

    f(*args, **kwargs)

../../python3.9/site-packages/pkg_resources/__init__.py:3251: in _initialize_master_working_set
working_set = WorkingSet._build_master()
../../python3.9/site-packages/pkg_resources/__init__.py:567: in _build_master

    ws.require(__requires__)

../../python3.9/site-packages/pkg_resources/__init__.py:884: in require
needed = self.resolve(parse_requirements(requirements))
../../python3.9/site-packages/pkg_resources/__init__.py:770: in resolve
raise DistributionNotFound(req, requirers)
E pkg_resources.DistributionNotFound: The 'toml' distribution was not
found and is required by pytest

---
 meta/recipes-devtools/python/python3-pytest_6.1.2.bb | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
meta/recipes-devtools/python/python3-pytest_6.1.2.bb +6 -5
index 6872da5cfac..6fc3b6f3284 100644
@@ -10,21 +10,22 @@ SRC_URI[sha256sum] = "c0a7e94a8cdbc5422a51ccdad8e6f1024795939cc89159a0ae7f0b316a
 inherit update-alternatives pypi setuptools3
 
 RDEPENDS_${PN}_class-target += " \
+    ${PYTHON_PN}-atomicwrites \
     ${PYTHON_PN}-attrs \
     ${PYTHON_PN}-debugger \
     ${PYTHON_PN}-doctest \
+    ${PYTHON_PN}-importlib-metadata \
     ${PYTHON_PN}-iniconfig \
     ${PYTHON_PN}-json \
+    ${PYTHON_PN}-more-itertools \
+    ${PYTHON_PN}-packaging \
+    ${PYTHON_PN}-pathlib2 \
     ${PYTHON_PN}-pluggy \
     ${PYTHON_PN}-py \
     ${PYTHON_PN}-setuptools \
     ${PYTHON_PN}-six \
-    ${PYTHON_PN}-atomicwrites \
-    ${PYTHON_PN}-importlib-metadata \
-    ${PYTHON_PN}-pathlib2 \
+    ${PYTHON_PN}-toml \
     ${PYTHON_PN}-wcwidth \
-    ${PYTHON_PN}-more-itertools \
-    ${PYTHON_PN}-packaging \
 "
 
 ALTERNATIVE_${PN} += "py.test pytest"
Signature · 1 line
2.25.0
#19 lore raw
In reply to Tim Orling
Quoted 14 lines · Tim Orling

From: Tim Orling <[email protected]>

We are increasingly needing pytest in oe-core, so it is time to move it from meta-python.

This series first imports the recipes -- as-is -- from meta-python. Second, the maintainers.inc is updated to add myself as maintainer for all the new recipes.
Third, the two recipes that have stable updates are updated to their latest releases.
Finally, a fix caught during ptest runs is added for RDEPENDS for pytest.

Quoted 3 lines

This was built on 'nodistro' with only openembedded-core and tested on qemux86-64. All the new recipes that have ptests pass all tests.

thanks, this series looks good to me. I think we should also bring in sortedcontainers and sortedcontainers
while you are here, this will help testing python-numpy and adding ptests for it.

Quoted 82 lines

The following changes since commit 6e3785a3f1f3cf68f5fe101cd6bebe91db165973:

uninative: Don't use single sstate for pseudo-native (2020-11-24 15:53:04 +0000)

are available in the Git repository at:

git://git.openembedded.org/openembedded-core-contrib timo/add-pytest-to-oe-core
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=timo/add-pytest-to-oe-core

For convenience, the same series is also available at the Git repository at:

git://git.yoctoproject.org/poky-contrib timo/move-pytest-to-core
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=timo/move-pytest-to-core

Tim Orling (18):
python3-atomicwrites: move from meta-python
python3-attrs: move from meta-python
python3-iniconfig: move from meta-python
python3-more-itertools: move from meta-python
python3-pathlib2: move from meta-python
python3-toml: move from meta-python
python3-py: move from meta-python
python3-setuptools-scm: move from meta-python
python3-packaging: move from meta-python
python3-wcwidth: move from meta-python
python3-zipp: move from meta-python python3-importlib-metadata: move from meta-python
python3-pluggy: move from meta-python
python3-pytest: move from meta-python maintainers.inc: add self for new pytest packages
python3-more-itertools: upgrade 8.5.0 -> 8.6.0 python3-importlib-metadata: upgrade 2.0.0 to 3.1.0
python3-pytest: RDEPENDS on python3-toml

 meta/conf/distro/include/maintainers.inc      | 14 +++++++
 .../python/python3-atomicwrites/run-ptest     |  3 ++
 .../python/python3-atomicwrites_1.4.0.bb      | 25 ++++++++++++
 .../python/python3-attrs_20.3.0.bb            | 20 ++++++++++
 .../python3-importlib-metadata_3.1.0.bb       | 18 +++++++++
 .../python/python3-iniconfig_1.1.1.bb         |  9 +++++
 .../python/python3-more-itertools/run-ptest   |  3 ++
 .../python/python3-more-itertools_8.6.0.bb    | 23 +++++++++++
 .../python/python3-packaging_20.4.bb          | 14 +++++++
 .../python/python3-pathlib2_2.3.5.bb          | 13 +++++++
 .../python/python3-pluggy/run-ptest           |  3 ++
 .../python/python3-pluggy_0.13.1.bb           | 27 +++++++++++++
 .../python/python3-py_1.9.0.bb                | 15 +++++++
 ...he-setup_requires-for-setuptools-scm.patch | 39 +++++++++++++++++++
 .../python/python3-pytest_6.1.2.bb            | 39 +++++++++++++++++++
 .../python/python3-setuptools-scm_4.1.2.bb    | 21 ++++++++++
 .../python/python3-toml_0.10.2.bb             | 15 +++++++
 .../python/python3-wcwidth/run-ptest          |  3 ++
 .../python/python3-wcwidth_0.2.5.bb           | 25 ++++++++++++
 .../python/python3-zipp_3.4.0.bb              | 19 +++++++++
 20 files changed, 348 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-atomicwrites/run-ptest
 create mode 100644 meta/recipes-devtools/python/python3-atomicwrites_1.4.0.bb
 create mode 100644 meta/recipes-devtools/python/python3-attrs_20.3.0.bb
 create mode 100644 meta/recipes-devtools/python/python3-importlib-metadata_3.1.0.bb
 create mode 100644 meta/recipes-devtools/python/python3-iniconfig_1.1.1.bb
 create mode 100644 meta/recipes-devtools/python/python3-more-itertools/run-ptest
 create mode 100644 meta/recipes-devtools/python/python3-more-itertools_8.6.0.bb
 create mode 100644 meta/recipes-devtools/python/python3-packaging_20.4.bb
 create mode 100644 meta/recipes-devtools/python/python3-pathlib2_2.3.5.bb
 create mode 100644 meta/recipes-devtools/python/python3-pluggy/run-ptest
 create mode 100644 meta/recipes-devtools/python/python3-pluggy_0.13.1.bb
 create mode 100644 meta/recipes-devtools/python/python3-py_1.9.0.bb
 create mode 100644 meta/recipes-devtools/python/python3-pytest/0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch
 create mode 100644 meta/recipes-devtools/python/python3-pytest_6.1.2.bb
 create mode 100644 meta/recipes-devtools/python/python3-setuptools-scm_4.1.2.bb
 create mode 100644 meta/recipes-devtools/python/python3-toml_0.10.2.bb
 create mode 100644 meta/recipes-devtools/python/python3-wcwidth/run-ptest
 create mode 100644 meta/recipes-devtools/python/python3-wcwidth_0.2.5.bb
 create mode 100644 meta/recipes-devtools/python/python3-zipp_3.4.0.bb

--
2.25.0

#20 lore raw
In reply to Tim Orling
Quoted 13 lines · Tim Orling

From: Tim Orling <[email protected]>

We are increasingly needing pytest in oe-core, so it is time to move it from meta-python.

This series first imports the recipes -- as-is -- from meta-python. Second, the maintainers.inc is updated to add myself as maintainer for all the new recipes.
Third, the two recipes that have stable updates are updated to their latest releases.
Finally, a fix caught during ptest runs is added for RDEPENDS for pytest.

Quoted 2 lines

This was built on 'nodistro' with only openembedded-core and tested on qemux86-64. All the new recipes that have ptests pass all tests.

cool. This will reduce the number needed from meta-python  that the sphinx recipe needs.

need to rebase my work.
-armin

Quoted 80 lines

The following changes since commit 6e3785a3f1f3cf68f5fe101cd6bebe91db165973:

uninative: Don't use single sstate for pseudo-native (2020-11-24 15:53:04 +0000)

are available in the Git repository at:

git://git.openembedded.org/openembedded-core-contrib timo/add-pytest-to-oe-core
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=timo/add-pytest-to-oe-core

For convenience, the same series is also available at the Git repository at:

git://git.yoctoproject.org/poky-contrib timo/move-pytest-to-core
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=timo/move-pytest-to-core

Tim Orling (18):
python3-atomicwrites: move from meta-python
python3-attrs: move from meta-python
python3-iniconfig: move from meta-python
python3-more-itertools: move from meta-python
python3-pathlib2: move from meta-python
python3-toml: move from meta-python
python3-py: move from meta-python
python3-setuptools-scm: move from meta-python
python3-packaging: move from meta-python
python3-wcwidth: move from meta-python
python3-zipp: move from meta-python python3-importlib-metadata: move from meta-python
python3-pluggy: move from meta-python
python3-pytest: move from meta-python maintainers.inc: add self for new pytest packages
python3-more-itertools: upgrade 8.5.0 -> 8.6.0 python3-importlib-metadata: upgrade 2.0.0 to 3.1.0
python3-pytest: RDEPENDS on python3-toml

 meta/conf/distro/include/maintainers.inc      | 14 +++++++
 .../python/python3-atomicwrites/run-ptest     |  3 ++
 .../python/python3-atomicwrites_1.4.0.bb      | 25 ++++++++++++
 .../python/python3-attrs_20.3.0.bb            | 20 ++++++++++
 .../python3-importlib-metadata_3.1.0.bb       | 18 +++++++++
 .../python/python3-iniconfig_1.1.1.bb         |  9 +++++
 .../python/python3-more-itertools/run-ptest   |  3 ++
 .../python/python3-more-itertools_8.6.0.bb    | 23 +++++++++++
 .../python/python3-packaging_20.4.bb          | 14 +++++++
 .../python/python3-pathlib2_2.3.5.bb          | 13 +++++++
 .../python/python3-pluggy/run-ptest           |  3 ++
 .../python/python3-pluggy_0.13.1.bb           | 27 +++++++++++++
 .../python/python3-py_1.9.0.bb                | 15 +++++++
 ...he-setup_requires-for-setuptools-scm.patch | 39 +++++++++++++++++++
 .../python/python3-pytest_6.1.2.bb            | 39 +++++++++++++++++++
 .../python/python3-setuptools-scm_4.1.2.bb    | 21 ++++++++++
 .../python/python3-toml_0.10.2.bb             | 15 +++++++
 .../python/python3-wcwidth/run-ptest          |  3 ++
 .../python/python3-wcwidth_0.2.5.bb           | 25 ++++++++++++
 .../python/python3-zipp_3.4.0.bb              | 19 +++++++++
 20 files changed, 348 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-atomicwrites/run-ptest
 create mode 100644 meta/recipes-devtools/python/python3-atomicwrites_1.4.0.bb
 create mode 100644 meta/recipes-devtools/python/python3-attrs_20.3.0.bb
 create mode 100644 meta/recipes-devtools/python/python3-importlib-metadata_3.1.0.bb
 create mode 100644 meta/recipes-devtools/python/python3-iniconfig_1.1.1.bb
 create mode 100644 meta/recipes-devtools/python/python3-more-itertools/run-ptest
 create mode 100644 meta/recipes-devtools/python/python3-more-itertools_8.6.0.bb
 create mode 100644 meta/recipes-devtools/python/python3-packaging_20.4.bb
 create mode 100644 meta/recipes-devtools/python/python3-pathlib2_2.3.5.bb
 create mode 100644 meta/recipes-devtools/python/python3-pluggy/run-ptest
 create mode 100644 meta/recipes-devtools/python/python3-pluggy_0.13.1.bb
 create mode 100644 meta/recipes-devtools/python/python3-py_1.9.0.bb
 create mode 100644 meta/recipes-devtools/python/python3-pytest/0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch
 create mode 100644 meta/recipes-devtools/python/python3-pytest_6.1.2.bb
 create mode 100644 meta/recipes-devtools/python/python3-setuptools-scm_4.1.2.bb
 create mode 100644 meta/recipes-devtools/python/python3-toml_0.10.2.bb
 create mode 100644 meta/recipes-devtools/python/python3-wcwidth/run-ptest
 create mode 100644 meta/recipes-devtools/python/python3-wcwidth_0.2.5.bb
 create mode 100644 meta/recipes-devtools/python/python3-zipp_3.4.0.bb
#21 lore raw
In reply to Tim Orling
Quoted 13 lines · Tim Orling

From: Tim Orling <[email protected]>

We are increasingly needing pytest in oe-core, so it is time to move it from meta-python.

This series first imports the recipes -- as-is -- from meta-python. Second, the maintainers.inc is updated to add myself as maintainer for all the new recipes.
Third, the two recipes that have stable updates are updated to their latest releases.
Finally, a fix caught during ptest runs is added for RDEPENDS for pytest.

Quoted 2 lines

This was built on 'nodistro' with only openembedded-core and tested on qemux86-64. All the new recipes that have ptests pass all tests.

That series was an easier one to test and merge :)

Thanks Tim!

Cheers,

Richard