python3: add dependency on -compression to -core
PATCH 1/37 python3: add dependency on -compression to -core
importlib.metadata is part of -core, but that will import zipfile which is part of -compression.
Obviously this shows that our packaging of the Python modules is not optimal. I plan to follow up with a redesign of the splitting which focuses on simply pulling out the larger or esoteric modules and having a more featureful core.
--- meta/recipes-devtools/python/python3/python3-manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3/python3-manifest.json +1 -1
@@ -216,7 +216,7 @@ }, "core": { "summary": "Python interpreter and core modules", - "rdepends": [], + "rdepends": ["compression"], "files": [ "${bindir}/python${PYTHON_MAJMIN}", "${bindir}/python${PYTHON_MAJMIN}.real",
Signature · 1 line
2.34.1
PATCH 2/37 python3-jsonschema: rename nongpl PACKAGECONFIG
To make it clear that this is an alternative to the format PACKAGECONFIG, rename it to format-nongpl.
--- meta/recipes-devtools/python/python3-jsonschema_4.22.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3-jsonschema_4.22.0.bb +1 -1
@@ -21,7 +21,7 @@ PACKAGECONFIG[format] = ",,,\ python3-rfc3987 \ python3-rfc3339-validator \ " -PACKAGECONFIG[nongpl] = ",,,\ +PACKAGECONFIG[format-nongpl] = ",,,\ python3-idna \ python3-jsonpointer \ python3-webcolors \
Signature · 1 line
2.34.1
PATCH 3/37 python3-setuptools: RDEPEND on python3-unixadmin
In reply to Ross Burtonsetuptools/command/register.py uses the getpass module.
--- meta/recipes-devtools/python/python3-setuptools_70.3.0.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-devtools/python/python3-setuptools_70.3.0.bb +1 -0
@@ -32,6 +32,7 @@ RDEPENDS:${PN} = "\ python3-stringold \ python3-threading \ python3-unittest \ + python3-unixadmin \ python3-xml \ "
Signature · 1 line
2.34.1
PATCH 4/37 python3-poetry-core: remove python3-pathlib2 dependency
In reply to Ross BurtonPoetry 1.1.0 removed pathlib2 from the dependencies entirely, and before then it was only needed with Python 2.
--- meta/recipes-devtools/python/python3-poetry-core_1.9.0.bb | 1 - 1 file changed, 1 deletion(-)
meta/recipes-devtools/python/python3-poetry-core_1.9.0.bb +0 -1
@@ -29,7 +29,6 @@ RDEPENDS:${PN}:append:class-target = "\ python3-json \ python3-logging \ python3-netclient \ - python3-pathlib2 \ python3-pprint \ python3-shell \ "
Signature · 1 line
2.34.1
PATCH 5/37 python3-pytest: clean up RDEPENDS
In reply to Ross BurtonThese dependencies are only used in development:
- attrs
- setuptools
These dependencies are obsolete:
- atomicwrites removed 7.2.0
- importlib-metadata removed in 5.1.0
- more-itertools removed 6.1.0
- pathlib2 removed 6.2.2
- py removed in 7.2
- six removed in 5.0.0
- tomllib not needed as we have Python 3.11+
- wcwidth removed in 6.0.0
This removals now means that python3-xml has to be added explicitly.
--- meta/recipes-devtools/python/python3-pytest_8.2.2.bb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-)
meta/recipes-devtools/python/python3-pytest_8.2.2.bb +1 -10
@@ -12,22 +12,13 @@ DEPENDS += "python3-setuptools-scm-native" inherit update-alternatives pypi python_setuptools_build_meta RDEPENDS:${PN} += " \ - python3-atomicwrites \ - python3-attrs \ + python3-xml \ python3-debugger \ python3-doctest \ - python3-importlib-metadata \ python3-iniconfig \ python3-json \ - python3-more-itertools \ python3-packaging \ - python3-pathlib2 \ python3-pluggy \ - python3-py \ - python3-setuptools \ - python3-six \ - python3-tomllib \ - python3-wcwidth \ " ALTERNATIVE:${PN} += "py.test pytest"
Signature · 1 line
2.34.1
Re: [OE-core] [PATCH 05/37] python3-pytest: clean up RDEPENDS
Hello, Ross
Quoted 4 lines · Ross Burton
These dependencies are only used in development:
- attrs
- setuptools
Quoted 9 lines
These dependencies are obsolete:
- atomicwrites removed 7.2.0
- importlib-metadata removed in 5.1.0
- more-itertools removed 6.1.0
- pathlib2 removed 6.2.2
- py removed in 7.2
- six removed in 5.0.0
- tomllib not needed as we have Python 3.11+
- wcwidth removed in 6.0.0
[...]
There are a few errors potentially related to tomllib removal in the autobuilder:
https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/6836/steps/13/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/6659/steps/13/logs/stdio
Could you please take a look at them? Thanks!
Signature · 2 lines
Best regards, João Marcos Costa
Re: [OE-core] [PATCH 05/37] python3-pytest: clean up RDEPENDS
Quoted 7 lines · Joao Marcos Costa
There are a few errors potentially related to tomllib removal in the autobuilder:
https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/6836/steps/13/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/6659/steps/13/logs/stdio
Could you please take a look at them? Thanks!
Yes, v3 sent for the pytest recipe.
The cleanup was removing toml and tomli libraries from dependencies and I obviously got confused with tomllib (which is a core library) which is why this broke.
Ross
PATCH 6/37 pytest-runner: remove python3-py dependency
In reply to Ross BurtonIt appears that this package has never required the py module.
--- meta/recipes-devtools/python/python3-pytest-runner_6.0.1.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
meta/recipes-devtools/python/python3-pytest-runner_6.0.1.bb +1 -2
@@ -10,7 +10,6 @@ inherit pypi python_setuptools_build_meta DEPENDS += " \ python3-setuptools-scm-native" -RDEPENDS:${PN} = "python3-py python3-setuptools python3-debugger python3-json \ - python3-io" +RDEPENDS:${PN} = "python3-setuptools python3-debugger python3-json python3-io" BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1
PATCH 7/37 python3-chardet: remove pytest-runner DEPENDS
In reply to Ross BurtonThis was removed in 4.0.0[1]
[1] https://github.com/chardet/chardet/commit/6a59c4b19226231fc310a3c11e0be939a04f9b3e
--- meta/recipes-devtools/python/python3-chardet_5.2.0.bb | 3 --- 1 file changed, 3 deletions(-)
meta/recipes-devtools/python/python3-chardet_5.2.0.bb +0 -3
@@ -5,9 +5,6 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=4fbd65380cdd255951079008b364516c" SRC_URI[sha256sum] = "1b3b6ff479a8c414bc3fa2c0852995695c4a026dcd6d0633b2dd092ca39c1cf7" -# setup.py of chardet needs this. -DEPENDS += "python3-pytest-runner-native" - inherit pypi python_setuptools_build_meta PACKAGES =+ "${PN}-cli"
Signature · 1 line
2.34.1
PATCH 8/37 python3-websockets: remove unused imports
In reply to Ross BurtonThese modules are not imported by websockets.
--- meta/recipes-devtools/python/python3-websockets_12.0.bb | 2 -- 1 file changed, 2 deletions(-)
meta/recipes-devtools/python/python3-websockets_12.0.bb +0 -2
@@ -12,6 +12,4 @@ BBCLASSEXTEND = "native nativesdk" RDEPENDS:${PN} = " \ python3-asyncio \ - python3-profile \ - python3-zipp \ "
Signature · 1 line
2.34.1
PATCH 9/37 python3-beartype: add missing RDEPENDS
In reply to Ross BurtonThese parts of the standard library are imported by beartype.
--- meta/recipes-devtools/python/python3-beartype_0.18.5.bb | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-devtools/python/python3-beartype_0.18.5.bb +2 -0
@@ -8,4 +8,6 @@ SRC_URI[sha256sum] = "264ddc2f1da9ec94ff639141fbe33d22e12a9f75aa863b83b7046ffff1 inherit setuptools3 pypi +RDEPENDS:${PN} += "python3-numbers python3-io" + BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1
PATCH 10/37 python3-jsonschema: remove obsolete RDEPENDS
In reply to Ross BurtonThe backport of importlib-metadata is no longer needed as we have Python 3.8+.
--- meta/recipes-devtools/python/python3-jsonschema_4.22.0.bb | 1 - 1 file changed, 1 deletion(-)
meta/recipes-devtools/python/python3-jsonschema_4.22.0.bb +0 -1
@@ -33,7 +33,6 @@ RDEPENDS:${PN} += " \ python3-attrs \ python3-core \ python3-datetime \ - python3-importlib-metadata \ python3-io \ python3-json \ python3-jsonschema-specifications \
Signature · 1 line
2.34.1
PATCH 11/37 python3-pluggy: clean up RDEPENDS
In reply to Ross Burtonimportlib-metadata is no longer needed since 0.13.0.
more-itertools has never been imported directly by pluggy but was likely a dependency coming via more-itertools.
--- meta/recipes-devtools/python/python3-pluggy_1.5.0.bb | 3 --- 1 file changed, 3 deletions(-)
meta/recipes-devtools/python/python3-pluggy_1.5.0.bb +0 -3
@@ -6,9 +6,6 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=1c8206d16fd5cc02fa9b0bb98955e5c2" SRC_URI[sha256sum] = "2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1" DEPENDS += "python3-setuptools-scm-native" -RDEPENDS:${PN} += "python3-importlib-metadata \ - python3-more-itertools \ -" inherit pypi ptest python_setuptools_build_meta
Signature · 1 line
2.34.1
PATCH 12/37 python3-scons: remove obsolete RDEPENDS
In reply to Ross Burtonscons doesn't appear to have ever imported importlib_metadata.
--- meta/recipes-devtools/python/python3-scons_4.7.0.bb | 1 - 1 file changed, 1 deletion(-)
meta/recipes-devtools/python/python3-scons_4.7.0.bb +0 -1
@@ -15,7 +15,6 @@ RDEPENDS:${PN}:class-target = "\ python3-core \ python3-compression \ python3-fcntl \ - python3-importlib-metadata \ python3-io \ python3-json \ python3-shell \
Signature · 1 line
2.34.1
PATCH 13/37 gi-docgen: remove obsolete python3-toml dependency
In reply to Ross BurtonAs we have Python 3.11+, tomllib will be used.
--- meta/recipes-gnome/gi-docgen/gi-docgen_2023.3.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-gnome/gi-docgen/gi-docgen_2023.3.bb +1 -1
@@ -16,6 +16,6 @@ S = "${WORKDIR}/git" inherit setuptools3 -RDEPENDS:${PN} += "python3-asyncio python3-core python3-jinja2 python3-json python3-markdown python3-markupsafe python3-pygments python3-toml python3-typogrify python3-xml" +RDEPENDS:${PN} += "python3-asyncio python3-core python3-jinja2 python3-json python3-markdown python3-markupsafe python3-pygments python3-typogrify python3-xml" BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1
PATCH 14/37 python3-jinja2: remove obsolete python3-toml dependency
In reply to Ross BurtonAs we have Python 3.11+, tomllib will be used.
--- meta/recipes-devtools/python/python3-jinja2_3.1.4.bb | 1 - 1 file changed, 1 deletion(-)
meta/recipes-devtools/python/python3-jinja2_3.1.4.bb +0 -1
@@ -26,7 +26,6 @@ do_install_ptest() { RDEPENDS:${PN}-ptest += " \ python3-pytest \ python3-unittest-automake-output \ - python3-toml \ python3-unixadmin \ "
Signature · 1 line
2.34.1
PATCH 15/37 python3-setuptools-rust: remove obsolete python3-toml dependency
In reply to Ross BurtonAs we have Python 3.11+, tomllib will be used.
--- meta/recipes-devtools/python/python3-setuptools-rust_1.9.0.bb | 1 - 1 file changed, 1 deletion(-)
meta/recipes-devtools/python/python3-setuptools-rust_1.9.0.bb +0 -1
@@ -27,7 +27,6 @@ RDEPENDS:${PN} += " \ python3-setuptools \ python3-setuptools-scm \ python3-shell \ - python3-toml \ python3-typing-extensions \ python3-wheel \ "
Signature · 1 line
2.34.1
Re: [OE-core] [PATCH 15/37] python3-setuptools-rust: remove obsolete python3-toml dependency
Quoted 20 lines · Ross Burton via lists.openembedded.org
As we have Python 3.11+, tomllib will be used.
Signed-off-by Ross Burton <[email protected]>---
meta/recipes-devtools/python/python3-setuptools-rust_1.9.0.bb | 1 -1 file changed, 1 deletion(-)(quoted diff) +0
-0rust_1.9.0.bb b/meta/recipes-devtools/python/python3-setuptools- rust_1.9.0.bb
index8eb2513d694..62ac4764038100644meta/recipes-devtools/python/python3-setuptools-rust_1.9.0.bb +0
-1@@ -27,7 +27,6 @@ RDEPENDS:${PN} += " \ python3-setuptools \ python3-setuptools-scm \ python3-shell \ - python3-toml \ python3-typing-extensions \ python3-wheel \
Quoted 1 line
"
Does this need replacing with the tomllib dependency? Is this why python3-cryptography had ptest failures unable to import tomllib?
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/6659
https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/6836
Cheers,
Richard
PATCH 16/37 python3-setuptools-scm: remove obsolete python3-tomli dependency
In reply to Ross BurtonAs we have Python 3.11+, tomllib will be used.
--- meta/recipes-devtools/python/python3-setuptools-scm_8.1.0.bb | 1 - 1 file changed, 1 deletion(-)
meta/recipes-devtools/python/python3-setuptools-scm_8.1.0.bb +0 -1
@@ -21,7 +21,6 @@ RDEPENDS:${PN} = "\ python3-pip \ python3-pyparsing \ python3-setuptools \ - python3-tomli \ python3-typing-extensions \ "
Signature · 1 line
2.34.1
PATCH 17/37 python3-zipp: remove obsolete dependencies
In reply to Ross BurtonAs we have Python 3.11+, tomllib will be used instead of toml.
more-itertools is only used by the tests, which we don't package.
--- meta/recipes-devtools/python/python3-zipp_3.19.2.bb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
meta/recipes-devtools/python/python3-zipp_3.19.2.bb +1 -4
@@ -9,10 +9,7 @@ DEPENDS += "python3-setuptools-scm-native" inherit pypi python_setuptools_build_meta -DEPENDS += "python3-toml-native" - RDEPENDS:${PN} += "python3-compression \ - python3-math \ - python3-more-itertools" + python3-math" BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1
PATCH 18/37 python3-importlib-metadata: remove obsolete dependencies
In reply to Ross BurtonAs we have Python 3.11+, tomllib will be used instead of python3-toml.
Use of pathlib2 was removed in 3.0.0.
--- .../python/python3-importlib-metadata_8.0.0.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/python/python3-importlib-metadata_8.0.0.bb +2 -2
@@ -12,8 +12,8 @@ SRC_URI[sha256sum] = "188bd24e4c346d3f0a933f275c2fec67050326a856b9a359881d7c2a69 S = "${WORKDIR}/importlib_metadata-${PV}" -DEPENDS += "python3-setuptools-scm-native python3-toml-native" -RDEPENDS:${PN} += "python3-zipp python3-pathlib2" +DEPENDS += "python3-setuptools-scm-native" +RDEPENDS:${PN} += "python3-zipp" RDEPENDS:${PN}:append:class-target = " python3-misc" RDEPENDS:${PN}:append:class-nativesdk = " python3-misc"
Signature · 1 line
2.34.1
PATCH 19/37 python3-pathspec: use python_flit_core
In reply to Ross BurtonThis package can be built using pep517 classes now.
--- meta/recipes-devtools/python/python3-pathspec_0.12.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3-pathspec_0.12.1.bb +1 -1
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad" SRC_URI[sha256sum] = "a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712" -inherit pypi setuptools3 +inherit pypi python_flit_core BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1
PATCH 20/37 gi-docgen: use python_poetry_core
In reply to Ross BurtonThis package can be built using pep517 classes now.
--- meta/recipes-gnome/gi-docgen/gi-docgen_2023.3.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-gnome/gi-docgen/gi-docgen_2023.3.bb +1 -1
@@ -14,7 +14,7 @@ SRCREV = "96f2e9b93e1d8a5338eb05b87fd879856ab7b3cc" S = "${WORKDIR}/git" -inherit setuptools3 +inherit python_poetry_core RDEPENDS:${PN} += "python3-asyncio python3-core python3-jinja2 python3-json python3-markdown python3-markupsafe python3-pygments python3-typogrify python3-xml"
Signature · 1 line
2.34.1
Re: [OE-core] [PATCH 20/37] gi-docgen: use python_poetry_core
Retracting this specific patch, please drop it.
Ross
Quoted 34 lines · Ross Burton via lists.openembedded.org
This package can be built using pep517 classes now.
Signed-off-by Ross Burton <[email protected]>---
meta/recipes-gnome/gi-docgen/gi-docgen_2023.3.bb | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-gnome/gi-docgen/gi-docgen_2023.3.bb +0
-0@@ -14,7 +14,7 @@ SRCREV = "96f2e9b93e1d8a5338eb05b87fd879856ab7b3cc"S = "${WORKDIR}/git"
meta/recipes-gnome/gi-docgen/gi-docgen_2023.3.bb +1
-1-inherit setuptools3 +inherit python_poetry_coreRDEPENDS:${PN} += "python3-asyncio python3-core python3-jinja2 python3-json python3-markdown python3-markupsafe python3-pygments python3-typogrify python3-xml"
Signature · 10 lines
2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#202387): https://lists.openembedded.org/g/openembedded-core/message/202387 Mute This Topic: https://lists.openembedded.org/mt/107505901/6875888 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
PATCH 21/37 python3-pyasn1: merge bb/inc
In reply to Ross BurtonAs there's just a single user of the include, merge them.
--- .../recipes-devtools/python/python-pyasn1.inc | 31 ------------------ .../python/python3-pyasn1_0.6.0.bb | 32 +++++++++++++++++-- 2 files changed, 30 insertions(+), 33 deletions(-) delete mode 100644 meta/recipes-devtools/python/python-pyasn1.inc
meta/recipes-devtools/python/python-pyasn1.inc deleted +0 -31
@@ -1,31 +0,0 @@ -SUMMARY = "Python library implementing ASN.1 types." -HOMEPAGE = "http://pyasn1.sourceforge.net/" -LICENSE = "BSD-2-Clause" -LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=190f79253908c986e6cacf380c3a5f6d" - -SRC_URI[sha256sum] = "3a35ab2c4b5ef98e17dfdec8ab074046fbda76e281c5a706ccd82328cfc8f64c" - -RDEPENDS:${PN}:class-target += " \ - python3-codecs \ - python3-logging \ - python3-math \ - python3-shell \ -" - -BBCLASSEXTEND = "native nativesdk" - -inherit ptest - -SRC_URI += " \ - file://run-ptest \ - " - -RDEPENDS:${PN}-ptest += " \ - python3-pytest \ - python3-unittest-automake-output \ -" - -do_install_ptest() { - install -d ${D}${PTEST_PATH}/tests - cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ -}
meta/recipes-devtools/python/python3-pyasn1_0.6.0.bb +30 -2
@@ -1,3 +1,31 @@ -inherit pypi setuptools3 -require python-pyasn1.inc +SUMMARY = "Python library implementing ASN.1 types." +HOMEPAGE = "http://pyasn1.sourceforge.net/" +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=190f79253908c986e6cacf380c3a5f6d" +SRC_URI[sha256sum] = "3a35ab2c4b5ef98e17dfdec8ab074046fbda76e281c5a706ccd82328cfc8f64c" + +inherit pypi setuptools3 pytest + +RDEPENDS:${PN}:class-target += " \ + python3-codecs \ + python3-logging \ + python3-math \ + python3-shell \ +" + +SRC_URI += " \ + file://run-ptest \ + " + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1
PATCH 22/37 python3-pyasn1: use python_setuptools_build_meta build class
In reply to Ross BurtonThis package can be built using pep517 classes now.
--- meta/recipes-devtools/python/python3-pyasn1_0.6.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3-pyasn1_0.6.0.bb +1 -1
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=190f79253908c986e6cacf380c3a5f6d" SRC_URI[sha256sum] = "3a35ab2c4b5ef98e17dfdec8ab074046fbda76e281c5a706ccd82328cfc8f64c" -inherit pypi setuptools3 pytest +inherit pypi python_setuptools_build_meta ptest RDEPENDS:${PN}:class-target += " \ python3-codecs \
Signature · 1 line
2.34.1
PATCH 23/37 python3-beartype: use python_setuptools_build_meta build class
In reply to Ross BurtonThis package can be built using pep517 classes now.
--- meta/recipes-devtools/python/python3-beartype_0.18.5.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3-beartype_0.18.5.bb +1 -1
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=e71f94261c1b39896cacacfeaf60560e" SRC_URI[sha256sum] = "264ddc2f1da9ec94ff639141fbe33d22e12a9f75aa863b83b7046ffff1381927" -inherit setuptools3 pypi +inherit pypi python_setuptools_build_meta RDEPENDS:${PN} += "python3-numbers python3-io"
Signature · 1 line
2.34.1
Re: [OE-core] [PATCH 23/37] python3-beartype: use python_setuptools_build_meta build class
Hello, Ross
Quoted 12 lines · Ross Burton
This package can be built using pep517 classes now.
Signed-off-by Ross Burton<[email protected]>--- meta/recipes-devtools/python/python3-beartype_0.18.5.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-devtools/python/python3-beartype_0.18.5.bb +0
-0
meta/recipes-devtools/python/python3-beartype_0.18.5.bb LIC_FILES_CHKSUM ="file://LICENSE;md5=e71f94261c1b39896cacacfeaf60560e" · line 11
Quoted 7 lines
meta/recipes-devtools/python/python3-beartype_0.18.5.bb +1
-1@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM ="file://LICENSE;md5=e71f94261c1b39896cacacfeaf60560e" SRC_URI[sha256sum] = "264ddc2f1da9ec94ff639141fbe33d22e12a9f75aa863b83b7046ffff1381927" -inherit setuptools3 pypi +inherit pypi python_setuptools_build_meta RDEPENDS:${PN} += "python3-numbers python3-io"
Could this patch be causing such an error in the autobuilder?
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/6663/steps/11/logs/stdio
Signature · 2 lines
Best regards, João Marcos Costa
Re: [OE-core] [PATCH 23/37] python3-beartype: use python_setuptools_build_meta build class
Quoted 21 lines · Joao Marcos Costa
Hello, Ross
Quoted 15 lines · Ross Burton
This package can be built using pep517 classes now.
Signed-off-by Ross Burton <[email protected]>---
meta/recipes-devtools/python/python3-beartype_0.18.5.bb | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-devtools/python/python3-beartype_0.18.5.bb +0
-0@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=e71f94261c1b39896cacacfeaf60560e"SRC_URI[sha256sum] = "
264ddc2f1da9ec94ff639141fbe33d22e12a9f75aa863b83b7046ffff1381927"
Quoted 7 lines
Quoted 5 lines
meta/recipes-devtools/python/python3-beartype_0.18.5.bb +1
-1-inherit setuptools3 pypi +inherit pypi python_setuptools_build_metaRDEPENDS:${PN} += "python3-numbers python3-io"
Could this patch be causing such an error in the autobuilder?
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/6663/steps/11/logs/stdio
No, that was a different issue that RP already fixed.
Ross
PATCH 24/37 python3-cffi: use python_setuptools_build_meta build class
In reply to Ross BurtonThis package can be built using pep517 classes now.
--- meta/recipes-devtools/python/python3-cffi_1.16.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3-cffi_1.16.0.bb +1 -1
@@ -6,7 +6,7 @@ DEPENDS += "libffi python3-pycparser" SRC_URI[sha256sum] = "bcb3ef43e58665bbda2fb198698fcae6776483e0c4a631aa5647806c25e02cc0" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta RDEPENDS:${PN}:class-target = " \ python3-ctypes \
Signature · 1 line
2.34.1
PATCH 25/37 python3-psutil: use python_setuptools_build_meta build class
In reply to Ross BurtonThis package can be built using pep517 classes now.
--- meta/recipes-devtools/python/python3-psutil_6.0.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3-psutil_6.0.0.bb +1 -1
@@ -5,7 +5,7 @@ HOMEPAGE = "https://pypi.org/project/psutil/" SRC_URI[sha256sum] = "8faae4f310b6d969fa26ca0545338b21f73c6b15db7c4a8d934a5482faa818f2" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta PACKAGES =+ "${PN}-tests"
Signature · 1 line
2.34.1
PATCH 26/37 python3-pycryptodome(x): use python_setuptools_build_meta build class
In reply to Ross BurtonThis package can be built using pep517 classes now.
--- meta/recipes-devtools/python/python3-pycryptodome_3.20.0.bb | 2 +- meta/recipes-devtools/python/python3-pycryptodomex_3.20.0.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/python/python3-pycryptodome_3.20.0.bb +1 -1
@@ -1,5 +1,5 @@ require python-pycryptodome.inc -inherit setuptools3 +inherit python_setuptools_build_meta SRC_URI[sha256sum] = "09609209ed7de61c2b560cc5c8c4fbf892f8b15b1faf7e4cbffac97db1fffda7"
meta/recipes-devtools/python/python3-pycryptodomex_3.20.0.bb +1 -1
@@ -1,5 +1,5 @@ require python-pycryptodome.inc -inherit setuptools3 +inherit python_setuptools_build_meta SRC_URI[sha256sum] = "7a710b79baddd65b806402e14766c721aee8fb83381769c27920f26476276c1e"
Signature · 1 line
2.34.1
PATCH 27/37 python3-pyelftools: use python_setuptools_build_meta build class
In reply to Ross BurtonThis package can be built using pep517 classes now.
--- meta/recipes-devtools/python/python3-pyelftools_0.31.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3-pyelftools_0.31.bb +1 -1
@@ -8,7 +8,7 @@ SRC_URI[sha256sum] = "c774416b10310156879443b81187d182d8d9ee499660380e645918b50b PYPI_PACKAGE = "pyelftools" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta BBCLASSEXTEND = "native"
Signature · 1 line
2.34.1
PATCH 28/37 python3-ruemel-yaml: use python_setuptools_build_meta build class
In reply to Ross BurtonThis package can be built using pep517 classes now.
Also remove the redundant RUAMEL_NO_PIP_INSTALL_CHECK assignment, this is checked by setup.py which is no longer ran.
--- meta/recipes-devtools/python/python3-ruamel-yaml_0.18.6.bb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
meta/recipes-devtools/python/python3-ruamel-yaml_0.18.6.bb +1 -5
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=30cbbccd94bf3a2b0285ec35671a1938" PYPI_PACKAGE = "ruamel.yaml" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta SRC_URI[sha256sum] = "8b27e6a217e786c6fbe5634d8f3f11bc63e0f80f6a5890f28863d9c45aac311b"
@@ -16,8 +16,4 @@ RDEPENDS:${PN} += "\ python3-netclient \ " -do_install:prepend() { - export RUAMEL_NO_PIP_INSTALL_CHECK=1 -} - BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1
PATCH 29/37 python3-scons: use python_setuptools_build_meta build class
In reply to Ross BurtonThis package can be built using pep517 classes now.
--- meta/recipes-devtools/python/python3-scons_4.7.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3-scons_4.7.0.bb +1 -1
@@ -9,7 +9,7 @@ SRC_URI[sha256sum] = "d8b617f6610a73e46509de70dcf82f76861b79762ff602d546f4e80918 PYPI_PACKAGE = "SCons" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta RDEPENDS:${PN}:class-target = "\ python3-core \
Signature · 1 line
2.34.1
PATCH 30/37 python3-websockets: use python_setuptools_build_meta build class
In reply to Ross BurtonThis package can be built using pep517 classes now.
--- meta/recipes-devtools/python/python3-websockets_12.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3-websockets_12.0.bb +1 -1
@@ -4,7 +4,7 @@ HOMEPAGE = "https://github.com/aaugustin/websockets" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=51924a6af4495b8cfaee1b1da869b6f4" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta SRC_URI[sha256sum] = "81df9cbcbb6c260de1e007e58c011bfebe2dafc8435107b0537f393dd38c8b1b"
Signature · 1 line
2.34.1
PATCH 31/37 python3-setuptools-scm: remove python3-tomli dependency
In reply to Ross BurtonWe have Python 3.11+ so setuptools-scm can use tomllib.
--- meta/recipes-devtools/python/python3-setuptools-scm_8.1.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3-setuptools-scm_8.1.0.bb +1 -1
@@ -14,7 +14,7 @@ inherit pypi python_setuptools_build_meta UPSTREAM_CHECK_REGEX = "scm-(?P<pver>.*)\.tar" -DEPENDS += "python3-tomli-native python3-packaging-native python3-typing-extensions-native" +DEPENDS += "python3-packaging-native python3-typing-extensions-native" RDEPENDS:${PN} = "\ python3-packaging \
Signature · 1 line
2.34.1
PATCH 32/37 python3-spdx-tools: use python_setuptools_build_meta build class
In reply to Ross BurtonThis package can be built using pep517 classes now.
--- meta/recipes-devtools/python/python3-spdx-tools_0.8.2.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-devtools/python/python3-spdx-tools_0.8.2.bb +3 -1
@@ -8,7 +8,9 @@ SRC_URI[sha256sum] = "aea4ac9c2c375e7f439b1cef5ff32ef34914c083de0f61e08ed67cd3d9 BBCLASSEXTEND = "native nativesdk" -inherit setuptools3 pypi +inherit pypi python_setuptools_build_meta + +DEPENDS += "python3-setuptools-scm-native" # Dependency required for pyspdxtools : python3-click # Dependencies required for conversion to spdx3 : python3-semantic-version, python3-ply
Signature · 1 line
2.34.1
PATCH 33/37 python3-subunit: use python_setuptools_build_meta build class
In reply to Ross BurtonThis package can be built using pep517 classes now.
--- meta/recipes-devtools/python/python3-subunit_1.4.4.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3-subunit_1.4.4.bb +1 -1
@@ -8,7 +8,7 @@ PYPI_PACKAGE = "python-subunit" SRC_URI[sha256sum] = "1079363131aa1d3f45259237265bc2e61a77e35f20edfb6e3d1d2558a2cdea34" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta RDEPENDS:${PN} = " python3-testtools python3-iso8601"
Signature · 1 line
2.34.1
PATCH 34/37 python3-uritools: use python_setuptools_build_meta build class
In reply to Ross BurtonThis package can be built using pep517 classes now.
--- meta/recipes-devtools/python/python3-uritools_4.0.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3-uritools_4.0.2.bb +1 -1
@@ -6,6 +6,6 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=1ec55353c80c662e4255f8889a0ca558" SRC_URI[sha256sum] = "04df2b787d0eb76200e8319382a03562fbfe4741fd66c15506b08d3b8211d573" -inherit setuptools3 pypi +inherit pypi python_setuptools_build_meta BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1
PATCH 35/37 python3-yamllint: use python_setuptools_build_meta build class
In reply to Ross BurtonThis package can be built using pep517 classes now.
yamlint appears to have never used setuptools-scm, so remove the dependency.
--- meta/recipes-devtools/python/python3-yamllint_1.35.1.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
meta/recipes-devtools/python/python3-yamllint_1.35.1.bb +1 -2
@@ -3,13 +3,12 @@ HOMEPAGE = "https://github.com/adrienverge/yamllint" LICENSE = "GPL-3.0-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=1ebbd3e34237af26da5dc08a4e440464" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta PYPI_PACKAGE = "yamllint" SRC_URI[sha256sum] = "7a003809f88324fd2c877734f2d575ee7881dd9043360657cc8049c809eba6cd" -DEPENDS += "python3-setuptools-scm-native" RDEPENDS:${PN} += "python3-pathspec python3-pyyaml" BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1
PATCH 36/37 python3-mako: add dependency on python3-misc for timeit
In reply to Ross Burton--- meta/recipes-devtools/python/python3-mako_1.3.5.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-devtools/python/python3-mako_1.3.5.bb +1 -0
@@ -16,6 +16,7 @@ SRC_URI[sha256sum] = "48dbc20568c1d276a2698b36d968fa76161bf127194907ea6fc594fa81 RDEPENDS:${PN} = "python3-html \ python3-markupsafe \ + python3-misc \ python3-netclient \ python3-pygments \ python3-threading \
Signature · 1 line
2.34.1
PATCH 37/37 python3-uritools: enable ptest
In reply to Ross BurtonInstall the test suite and run it in core-image-ptest-fast.
--- meta/conf/distro/include/ptest-packagelists.inc | 1 + .../python/python3-uritools/run-ptest | 3 +++ .../python/python3-uritools_4.0.2.bb | 13 ++++++++++++- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-devtools/python/python3-uritools/run-ptest
meta/conf/distro/include/ptest-packagelists.inc +1 -0
@@ -71,6 +71,7 @@ PTESTS_FAST = "\ python3-pyyaml \ python3-rpds-py \ python3-trove-classifiers \ + python3-uritools \ python3-wcwidth \ python3-webcolors \ qemu \
meta/recipes-devtools/python/python3-uritools/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake
meta/recipes-devtools/python/python3-uritools_4.0.2.bb +12 -1
@@ -6,6 +6,17 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=1ec55353c80c662e4255f8889a0ca558" SRC_URI[sha256sum] = "04df2b787d0eb76200e8319382a03562fbfe4741fd66c15506b08d3b8211d573" -inherit pypi python_setuptools_build_meta +SRC_URI += "file://run-ptest" + +inherit pypi python_setuptools_build_meta ptest + +do_install_ptest() { + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/ +} + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-unittest-automake-output \ +" BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1