qhull: Add recipe
PATCH 1/12 qhull: Add recipe
This recipe is needed to build latest version of matplotlib python module when internal vendored modules are not used which is preferred here, avoids complicating recipe to counter meson's wrap logic
--- .../recipes-extended/qhull/qhull_2020.2.bb | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 meta-oe/recipes-extended/qhull/qhull_2020.2.bb
meta-oe/recipes-extended/qhull/qhull_2020.2.bb new file +23 -0
@@ -0,0 +1,23 @@ +DESCRIPTION = "library to compute convex hulls, Delaunay triangulations and Voronoi diagrams." +HOMEPAGE = "http://www.qhull.org/" +SECTION = "libs" +LICENSE = "Qhull" +LIC_FILES_CHKSUM = "file://COPYING.txt;md5=484ee0cacf0472e8b40225b116f6296c" + +SRC_URI = "http://www.qhull.org/download/qhull-2020-src-8.0.2.tgz" +SRC_URI[sha256sum] = "b5c2d7eb833278881b952c8a52d20179eab87766b00b865000469a45c1838b7e" + +CFLAGS += "-fPIC" + +EXTRA_OECMAKE += "\ + -DCMAKE_SKIP_RPATH=ON \ +" + +inherit cmake + +# The QhullTargets-noconfig.cmake checks for the executables despite not +# needing to execute them for the build. Staging bindir to the sysroot +# allows us to pass the check without building qhull natively +SYSROOT_DIRS:append = " \ + ${bindir} \ +"
PATCH 2/12 tftpy: switch to PEP-517 build backend
--- meta-python/recipes-devtools/python/tftpy_0.8.5.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/tftpy_0.8.5.bb +1 -1
@@ -10,4 +10,4 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=22770e72ae03c61f5bcc4e333b61368d" SRC_URI[sha256sum] = "dd38e3744530d0c30fa1c715d7fa454319bc8d399bb40c05839cc771f05d0e6c" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta
PATCH 3/12 python3-fastnumbers: Switch to PEP-517 build backend and enable ptest
In reply to Khem Rajtest run takes < 1min, added to PTESTS_FAST_META_PYTHON
--- .../conf/include/ptest-packagelists-meta-python.inc | 1 + .../python/python3-fastnumbers_5.1.1.bb | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-)
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
@@ -22,6 +22,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-dasbus \ python3-dominate \ python3-execnet \ + python3-fastnumbers \ python3-flask \ python3-flexcache \ python3-flexparser \
meta-python/recipes-devtools/python/python3-fastnumbers_5.1.1.bb +10 -1
@@ -7,4 +7,13 @@ PYPI_PACKAGE = "fastnumbers" SRC_URI[sha256sum] = "183fa021cdc052edaeede5c23e3086461deb7562b567614edf71b29515f5fa4b" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta ptest-python-pytest + +DEPENDS += "python3-setuptools-scm-native" + +RDEPENDS:${PN}-ptest += "\ + python3-ctypes \ + python3-hypothesis \ + python3-numpy \ + python3-typing-extensions \ + "
PATCH 4/12 python3-pyzstd: Switch to PEP-517 build backend
In reply to Khem RajAdd ptest support while here
--- .../ptest-packagelists-meta-python.inc | 1 + ...-setuptools-dependency-from-74-to-79.patch | 27 +++++++++++++++++++ .../python/python3-pyzstd_0.16.2.bb | 3 ++- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-pyzstd/0001-Bump-setuptools-dependency-from-74-to-79.patch
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
@@ -70,6 +70,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-pytoml \ python3-pyyaml-include \ python3-pydbus \ + python3-pyzstd \ python3-rapidjson \ python3-requests-file \ python3-requests-toolbelt \
meta-python/recipes-devtools/python/python3-pyzstd/0001-Bump-setuptools-dependency-from-74-to-79.patch new file +27 -0
@@ -0,0 +1,27 @@ +From e648bb2439cad0d2ce47875edc7944d0b446fdb4 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 9 Apr 2025 14:38:31 -0700 +Subject: [PATCH] Bump setuptools dependency from 74 to 79 + +Upstream sticks to 0.74 since setuptools have dropped msvc9compiler +support beyond that which is needed for python 3.9 on windows. We +do not have this problem on Linux + +Upstream-Status: Inappropriate [OE-specific] +Signed-off-by: Khem Raj <[email protected]> +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index dd885e4..9f273b3 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,6 +1,6 @@ + [build-system] + # setuptools 64+ support --build-option + # setuptools 74+ drops distutils.msvc9compiler required for Python 3.9 under Windows +-requires = ["setuptools>=64,<74"] ++requires = ["setuptools>=64,<79"] + backend-path = ["build_script"] + build-backend = "pyzstd_pep517"
meta-python/recipes-devtools/python/python3-pyzstd_0.16.2.bb +2 -1
@@ -8,9 +8,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=aedb5a2679cd1552fb61c181ef974b9e" PYPI_PACKAGE = "pyzstd" +SRC_URI += "file://0001-Bump-setuptools-dependency-from-74-to-79.patch" SRC_URI[sha256sum] = "179c1a2ea1565abf09c5f2fd72f9ce7c54b2764cf7369e05c0bfd8f1f67f63d2" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta ptest-python-pytest # clang-16 with -flto segfaults on arm, therefore ignore flto for now do_configure:append:arm:toolchain-clang() {
PATCH 5/12 python3-gpt-image: Use PEP-517 build backend
In reply to Khem RajSwitch to using ptest-python-pytest and add it to PTESTS_FAST_META_PYTHON
--- .../include/ptest-packagelists-meta-python.inc | 1 + .../python3-gpt-image/python3-gpt-image/run-ptest | 3 --- .../python3-gpt-image/python3-gpt-image_0.9.0.bb | 15 +-------------- 3 files changed, 2 insertions(+), 17 deletions(-) delete mode 100755 meta-python/recipes-extended/python3-gpt-image/python3-gpt-image/run-ptest
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
@@ -31,6 +31,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-geojson \ python3-google-auth-oauthlib \ python3-gpiod \ + python3-gpt-image \ python3-gunicorn \ python3-html2text \ python3-httptools \
meta-python/recipes-extended/python3-gpt-image/python3-gpt-image/run-ptest deleted +0 -3
@@ -1,3 +0,0 @@ -#!/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-python/recipes-extended/python3-gpt-image/python3-gpt-image_0.9.0.bb +1 -14
@@ -5,25 +5,12 @@ SUMMARY = "GPT Image (pure python)" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=db5f8de88d13d0917db21293d0e82e1d" -SRC_URI += "\ - file://run-ptest \ -" - DEPENDS += "python3-pip" PYPI_PACKAGE = "gpt_image" SRC_URI[sha256sum] = "c06d8efc7cf8d6f3954c1c3d8544f494aa95da37fe04e38a9699ad3f57455f7e" -inherit pypi setuptools3 python3native ptest - -do_install_ptest() { - install -d ${D}${PTEST_PATH}/tests - cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ -} - -RDEPENDS:${PN}-ptest += " \ - python3-pytest \ -" +inherit pypi python3native python_setuptools_build_meta ptest-python-pytest do_install:append() { rm -fr ${D}${libdir}/python*/site-packages/gpt-image/__pycache__
PATCH 6/12 python3-matplotlib: Upgrade to 3.10.1
In reply to Khem Raj- Adjust for move to meson build system.
- Use system freetype and qhull
- Add ptest insfrastructure, they do not pass yet
- Add a patch to fix build on 32bit machines
--- ...-width-height-to-match-definitions-i.patch | 45 +++++++++++ ...external-dependency-tarballs-via-mes.patch | 47 ++++++++++++ .../matplotlib-disable-download.patch | 75 ------------------- .../python/python3-matplotlib/run-ptest | 3 + .../python/python3-matplotlib_3.10.1.bb | 49 ++++++++++++ .../python/python3-matplotlib_3.7.2.bb | 70 ----------------- 6 files changed, 144 insertions(+), 145 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-matplotlib/0001-Change-types-for-width-height-to-match-definitions-i.patch create mode 100644 meta-python/recipes-devtools/python/python3-matplotlib/0001-Do-not-download-external-dependency-tarballs-via-mes.patch delete mode 100644 meta-python/recipes-devtools/python/python3-matplotlib/matplotlib-disable-download.patch create mode 100644 meta-python/recipes-devtools/python/python3-matplotlib/run-ptest create mode 100644 meta-python/recipes-devtools/python/python3-matplotlib_3.10.1.bb delete mode 100644 meta-python/recipes-devtools/python/python3-matplotlib_3.7.2.bb
meta-python/recipes-devtools/python/python3-matplotlib/0001-Change-types-for-width-height-to-match-definitions-i.patch new file +45 -0
@@ -0,0 +1,45 @@ +From b19715aeafcf8440466553d01717924add1eabf4 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 9 Apr 2025 23:17:12 -0700 +Subject: [PATCH] Change types for width/height to match definitions in + BufferRegion + +This is found with clang + +Fixes +../matplotlib-3.10.1/src/_backend_agg_wrapper.cpp:253:17: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'int' in initializer list [-Wc++11-narrowing] + +Upstream-Status: Submitted [https://github.com/matplotlib/matplotlib/pull/29894] +Signed-off-by: Khem Raj <[email protected]> +--- + src/_backend_agg.h | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/_backend_agg.h b/src/_backend_agg.h +index 0e33d38dfd..dcbd7e1496 100644 +--- a/src/_backend_agg.h ++++ b/src/_backend_agg.h +@@ -131,12 +131,12 @@ class RendererAgg + + virtual ~RendererAgg(); + +- unsigned int get_width() ++ int get_width() + { + return width; + } + +- unsigned int get_height() ++ int get_height() + { + return height; + } +@@ -206,7 +206,7 @@ class RendererAgg + void restore_region(BufferRegion ®); + void restore_region(BufferRegion ®ion, int xx1, int yy1, int xx2, int yy2, int x, int y); + +- unsigned int width, height; ++ int width, height; + double dpi; + size_t NUMBYTES; // the number of bytes in buffer +
meta-python/recipes-devtools/python/python3-matplotlib/0001-Do-not-download-external-dependency-tarballs-via-mes.patch new file +47 -0
47 lines not on this page · raw message
meta-python/recipes-devtools/python/python3-matplotlib/matplotlib-disable-download.patch deleted +0 -75
75 lines not on this page · raw message
meta-python/recipes-devtools/python/python3-matplotlib/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake --pyargs matplotlib
meta-python/recipes-devtools/python/python3-matplotlib_3.10.1.bb new file +49 -0
49 lines not on this page · raw message
meta-python/recipes-devtools/python/python3-matplotlib_3.7.2.bb deleted +0 -70
70 lines not on this page · raw message
PATCH 7/12 python3-charset-normalizer: Switch to PEP-517 build backends
In reply to Khem RajAdd ptest support but do not enable them as they all do not pass yet
--- ...yproject.toml-Relax-version-for-mypy.patch | 25 +++++++++++++++++++ .../python3-charset-normalizer_3.4.1.bb | 7 +++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-Relax-version-for-mypy.patch
meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-Relax-version-for-mypy.patch new file +25 -0
@@ -0,0 +1,25 @@ +From 57b626d6d8c247c9203dde51a988b9401abe065c Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 9 Apr 2025 23:44:44 -0700 +Subject: [PATCH] pyproject.toml: Relax version for mypy + +It asks for mypy <= 1.14.0 but we have 1.15.x +already in meta-python + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index bbb8227..ad42715 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["setuptools", "setuptools-scm", "mypy>=1.4.1,<=1.14.0"] ++requires = ["setuptools", "setuptools-scm", "mypy>=1.4.1,<=1.16.0"] + build-backend = "setuptools.build_meta" + + [project]
meta-python/recipes-devtools/python/python3-charset-normalizer_3.4.1.bb +6 -1
@@ -3,9 +3,12 @@ HOMEPAGE = "https://github.com/ousret/charset_normalizer" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=48178f3fc1374ad7e830412f812bde05" +SRC_URI += "file://0001-pyproject.toml-Relax-version-for-mypy.patch" SRC_URI[sha256sum] = "44251f18cd68a75b56585dd00dae26183e102cd5e0f9f1466e6df5da2ed64ea3" -inherit pypi setuptools3 +DEPENDS += "python3-setuptools-scm-native python3-mypy-native" + +inherit pypi python_setuptools_build_meta ptest-python-pytest PYPI_PACKAGE = "charset_normalizer" UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
@@ -13,8 +16,10 @@ UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" RDEPENDS:${PN} += " \ python3-core \ python3-logging \ + python3-mypy \ python3-codecs \ python3-json \ " +RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-charmap-gb18030 glibc-charmaps" BBCLASSEXTEND = "native nativesdk"
PATCH 8/12 python3-pyais: Add recipe
In reply to Khem RajPtests take < 1mins on qemux86-64/kvm
--- .../ptest-packagelists-meta-python.inc | 1 + .../python/python3-pyais_2.9.2.bb | 29 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pyais_2.9.2.bb
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
@@ -57,6 +57,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-precise-runner \ python3-prettytable \ python3-propcache \ + python3-pyais \ python3-pyasyncore \ python3-pydantic \ python3-pydantic-core \
meta-python/recipes-devtools/python/python3-pyais_2.9.2.bb new file +29 -0
@@ -0,0 +1,29 @@ +SUMMARY = "AIS message decoding" +HOMEPAGE = "https://github.com/M0r13n/pyais" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=79d9e278b76e3e5b3358cd70b328173c" + +SRC_URI = "git://github.com/M0r13n/pyais;protocol=https;branch=master" + +PV .= "+git" +SRCREV = "9ce53ae21f19e8dc6e7b841dd0ccc246898730ea" + +S = "${WORKDIR}/git" + +inherit python_setuptools_build_meta ptest-python-pytest + +PYPI_PACKAGE = "pyais" + +do_install_ptest:append() { + install -d ${D}${PTEST_PATH}/examples/ + install -Dm 0644 ${S}/examples/*.py ${D}${PTEST_PATH}/examples/ + install -Dm 0644 ${S}/examples/*.nmea ${D}${PTEST_PATH}/examples/ + install -Dm 0644 ${S}/examples/*.ais ${D}${PTEST_PATH}/examples/ +} + +RDEPENDS:${PN} = "python3-attrs python3-bitarray" +RDEPENDS:${PN}-ptest += "\ + python3-coverage \ + python3-mypy \ + python3-pytest-cov \ + "
PATCH 9/12 python3-schedule: Switch to using PEP-517 build backend
In reply to Khem RajAdd and enable ptests
--- .../conf/include/ptest-packagelists-meta-python.inc | 1 + .../recipes-devtools/python/python3-schedule_1.2.2.bb | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-)
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
@@ -76,6 +76,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-rapidjson \ python3-requests-file \ python3-requests-toolbelt \ + python3-schedule \ python3-semver \ python3-serpent \ python3-service-identity \
meta-python/recipes-devtools/python/python3-schedule_1.2.2.bb +6 -1
@@ -5,6 +5,11 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=6400f153491d45ea3459761627ca24b2" SRC_URI[sha256sum] = "15fe9c75fe5fd9b9627f3f19cc0ef1420508f9f9a46f45cd0769ef75ede5f0b7" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta ptest-python-pytest + +do_install_ptest:append() { + install -Dm 0644 ${S}/test_schedule.py ${D}${PTEST_PATH}/test_schedule.py +} RDEPENDS:${PN} += "python3-datetime python3-logging python3-math" +RDEPENDS:${PN}-ptest += "python3-pytz"
PATCH 10/12 python3-uinput: Switch to PEP-517 build backend
In reply to Khem RajAdd ptests
--- meta-python/conf/include/ptest-packagelists-meta-python.inc | 1 + meta-python/recipes-devtools/python/python3-uinput_1.0.1.bb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
@@ -92,6 +92,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-typeguard \ python3-typing-inspection \ python3-tzdata \ + python3-uinput \ python3-ujson \ python3-u-msgpack-python \ python3-unidiff \
meta-python/recipes-devtools/python/python3-uinput_1.0.1.bb +1 -1
@@ -8,7 +8,7 @@ SRC_URI[sha256sum] = "853697344b64df5537d4ae32ba6fbcf0515d51a9010910f5d501995903 PYPI_PACKAGE = "python-uinput" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta ptest-python-pytest DEPENDS += "udev" RDEPENDS:${PN} += " \
PATCH 11/12 pamela: Switch to using PEP-517 build backend
In reply to Khem Raj--- meta-python/recipes-devtools/python/pamela_1.2.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/pamela_1.2.0.bb +1 -1
@@ -6,7 +6,7 @@ SRC_URI[sha256sum] = "0ea6e2a99dded8c7783a4a06f2d31f5bdcad894d79101e8f09322e387a PYPI_PACKAGE = "pamela" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta RDEPENDS:${PN} = "libpam"
PATCH 12/12 python3-twitter: Switch to use PEP-517 build backend
In reply to Khem Raj--- meta-python/recipes-devtools/python/python3-twitter_4.15.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-twitter_4.15.0.bb +1 -1
@@ -8,7 +8,7 @@ SRC_URI[sha256sum] = "1345cbcdf0a75e2d89f424c559fd49fda4d8cd7be25cd5131e3b57bad8 PYPI_PACKAGE = "tweepy" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta RDEPENDS:${PN} += "\ python3-pip \