Skip to contentSkip to conversation

python3-colorama: add recipe

PATCH In review Trevor Gamblin 4 participants 10 messages Jun 17, 2025 – Jun 19, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 python3-colorama: add recipe

Add existing recipe from meta-python, since pytest lists it as a dependency. This also puts it in maintainers.inc with myself as maintainer.

---
 meta/conf/distro/include/maintainers.inc           |  1 +
 .../python/python3-colorama_0.4.6.bb               | 14 ++++++++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-colorama_0.4.6.bb
meta/conf/distro/include/maintainers.inc +1 -0
index b6cf4b7cfa..5d2ac05b27 100644
@@ -623,6 +623,7 @@ RECIPE_MAINTAINER:pn-python3-beartype = "Marta Rybczynska <marta.rybczynska@ygre
 RECIPE_MAINTAINER:pn-python3-booleanpy = "zhengrq.fnst <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-build = "Ross Burton <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-calver = "Trevor Gamblin <[email protected]>"
+RECIPE_MAINTAINER:pn-python3-colorama = "Trevor Gamblin <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-certifi = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-cffi = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-chardet = "Tim Orling <[email protected]>"
meta/recipes-devtools/python/python3-colorama_0.4.6.bb new file +14 -0
new file mode 100644
index 0000000000..3871244031
@@ -0,0 +1,14 @@
+SUMMARY = "Cross-platform colored terminal text."
+HOMEPAGE = "https://github.com/tartley/colorama"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b4936429a56a652b84c5c01280dcaa26"
+
+inherit pypi python_setuptools_build_meta
+
+SRC_URI[sha256sum] = "08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"
+
+DEPENDS += " \
+	python3-hatchling-native \
+"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.49.0
#1 lore raw

PATCH 2/5 python3-setuptools-scm: upgrade 8.2.1 -> 8.3.1

Changelog: https://github.com/pypa/setuptools-scm/compare/v8.3.0...v8.3.1

---
 ...-setuptools-scm_8.2.1.bb => python3-setuptools-scm_8.3.1.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-setuptools-scm_8.2.1.bb => python3-setuptools-scm_8.3.1.bb} (90%)
meta/recipes-devtools/python/python3-setuptools-scm_8.3.1.bb renamed from meta/recipes-devtools/python/python3-setuptools-scm_8.2.1.bb +1 -1
similarity index 90%
rename from meta/recipes-devtools/python/python3-setuptools-scm_8.2.1.bb
rename to meta/recipes-devtools/python/python3-setuptools-scm_8.3.1.bb
index e35ef7c25e..70eaf312d3 100644
@@ -6,7 +6,7 @@ argument or in a SCM managed file."
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=838c366f69b72c5df05c96dff79b35f2"
 
-SRC_URI[sha256sum] = "51cfdd1deefc9b8c08d1a61e940a59c4dec39eb6c285d33fa2f1b4be26c7874d"
+SRC_URI[sha256sum] = "3d555e92b75dacd037d32bafdf94f97af51ea29ae8c7b234cf94b7a5bd242a63"
 
 PYPI_PACKAGE = "setuptools_scm"
 UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
Signature · 1 line
2.49.0
#2 lore raw

PATCH 3/5 python3: upgrade 3.13.4 -> 3.13.5

In reply to Trevor Gamblin

Changelog: https://docs.python.org/3/whatsnew/changelog.html#python-3-13-5-final

ptests look OK:

|443 tests OK.
|
|Total duration: 2 min 43 sec
|Total tests: run=44,050 skipped=2,309
|Total test files: run=471/480 skipped=28 resource_denied=9
|Result: SUCCESS
|DURATION: 164
|END: /usr/lib/python3/ptest
|2025-06-17T14:05
|STOP: ptest-runner
|TOTAL: 1 FAIL: 0

Reproducibility OK:

|2025-06-17 10:34:28,071 - oe-selftest - INFO -  ... ok
|2025-06-17 10:35:04,539 - oe-selftest - INFO - ----------------------------------------------------------------------
|2025-06-17 10:35:04,539 - oe-selftest - INFO - Ran 1 test in 1429.952s
|2025-06-17 10:35:04,539 - oe-selftest - INFO - OK
|2025-06-17 10:35:08,924 - oe-selftest - INFO - RESULTS:
|2025-06-17 10:35:08,924 - oe-selftest - INFO - RESULTS - reproducible.ReproducibleTests.test_reproducible_builds: PASSED (1393.34s)
|2025-06-17 10:35:08,925 - oe-selftest - INFO - SUMMARY:
|2025-06-17 10:35:08,925 - oe-selftest - INFO - oe-selftest () - Ran 1 test in 1429.952s
|2025-06-17 10:35:08,925 - oe-selftest - INFO - oe-selftest - OK - All required tests passed (successes=1, skipped=0, failures=0, errors=0)
---
 .../python/{python3_3.13.4.bb => python3_3.13.5.bb}             | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3_3.13.4.bb => python3_3.13.5.bb} (99%)
meta/recipes-devtools/python/python3_3.13.5.bb renamed from meta/recipes-devtools/python/python3_3.13.4.bb +1 -1
similarity index 99%
rename from meta/recipes-devtools/python/python3_3.13.4.bb
rename to meta/recipes-devtools/python/python3_3.13.5.bb
index 5b49fee3bf..eb1f358eb3 100644
@@ -36,7 +36,7 @@ SRC_URI:append:class-native = " \
            file://0001-Lib-sysconfig.py-use-prefix-value-from-build-configu.patch \
            "
 
-SRC_URI[sha256sum] = "27b15a797562a2971dce3ffe31bb216042ce0b995b39d768cf15f784cc757365"
+SRC_URI[sha256sum] = "93e583f243454e6e9e4588ca2c2662206ad961659863277afcdb96801647d640"
 
 # exclude pre-releases for both python 2.x and 3.x
 UPSTREAM_CHECK_REGEX = "[Pp]ython-(?P<pver>\d+(\.\d+)+).tar"
Signature · 1 line
2.49.0
#3 lore raw

Re: [OE-core][PATCH 3/5] python3: upgrade 3.13.4 -> 3.13.5

Quoted 28 lines · Trevor Gamblin

Changelog: https://docs.python.org/3/whatsnew/changelog.html#python-3-13-5-final

ptests look OK:

|443 tests OK.
|
|Total duration: 2 min 43 sec
|Total tests: run=44,050 skipped=2,309
|Total test files: run=471/480 skipped=28 resource_denied=9
|Result: SUCCESS
|DURATION: 164
|END: /usr/lib/python3/ptest
|2025-06-17T14:05
|STOP: ptest-runner
|TOTAL: 1 FAIL: 0

Reproducibility OK:

|2025-06-17 10:34:28,071 - oe-selftest - INFO -  ... ok
|2025-06-17 10:35:04,539 - oe-selftest - INFO - ----------------------------------------------------------------------
|2025-06-17 10:35:04,539 - oe-selftest - INFO - Ran 1 test in 1429.952s
|2025-06-17 10:35:04,539 - oe-selftest - INFO - OK
|2025-06-17 10:35:08,924 - oe-selftest - INFO - RESULTS:
|2025-06-17 10:35:08,924 - oe-selftest - INFO - RESULTS - reproducible.ReproducibleTests.test_reproducible_builds: PASSED (1393.34s)
|2025-06-17 10:35:08,925 - oe-selftest - INFO - SUMMARY:
|2025-06-17 10:35:08,925 - oe-selftest - INFO - oe-selftest () - Ran 1 test in 1429.952s
|2025-06-17 10:35:08,925 - oe-selftest - INFO - oe-selftest - OK - All required tests passed (successes=1, skipped=0, failures=0, errors=0)
Quoted 2 lines

---

Hi Trevor,

Thanks for your patch.

I believe we still have a ptest failure related to this upgrade:

Failed ptests:
{'python3-pytz': ['pytz/tests/test_docs.py:test_suite',

                  'pytz/tests/test_tzinfo.py:test_suite']}

https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/1724
https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/1724

Ptest logs can be found here:

https://valkyrie.yocto.io/pub/non-release/20250617-94/testresults/qemuarm64-ptest/core-image-ptest-python3-pytz/
https://valkyrie.yocto.io/pub/non-release/20250617-94/testresults/qemux86-64-ptest/core-image-ptest-python3-pytz/

Signature · 3 lines
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#4 lore raw

PATCH 4/5 python3-pytest: upgrade 8.3.5 -> 8.4.0

In reply to Trevor Gamblin

Changelog: https://docs.pytest.org/en/stable/changelog.html#pytest-8-4-0-2025-06-02

Add colorama (moved to oe-core from meta-python) and pygments to RDEPENDS.

---
 .../{python3-pytest_8.3.5.bb => python3-pytest_8.4.0.bb}    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/python/{python3-pytest_8.3.5.bb => python3-pytest_8.4.0.bb} (87%)
meta/recipes-devtools/python/python3-pytest_8.4.0.bb renamed from meta/recipes-devtools/python/python3-pytest_8.3.5.bb +4 -2
similarity index 87%
rename from meta/recipes-devtools/python/python3-pytest_8.3.5.bb
rename to meta/recipes-devtools/python/python3-pytest_8.4.0.bb
index 4d4e8b8511..e811855c77 100644
@@ -5,21 +5,23 @@ DESCRIPTION = "The pytest framework makes it easy to write small tests, yet scal
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=bd27e41b6550fe0fc45356d1d81ee37c"
 
-SRC_URI[sha256sum] = "f4efe70cc14e511565ac476b57c279e12a855b11f48f212af1080ef2263d3845"
+SRC_URI[sha256sum] = "14d920b48472ea0dbf68e45b96cd1ffda4705f33307dcc86c676c1b5104838a6"
 
 DEPENDS += "python3-setuptools-scm-native"
 
 inherit update-alternatives pypi python_setuptools_build_meta
 
 RDEPENDS:${PN} += " \
-    python3-xml \
+    python3-colorama \
     python3-debugger \
     python3-doctest \
     python3-iniconfig \
     python3-json \
     python3-packaging \
     python3-pluggy \
+    python3-pygments \
     python3-tomllib \
+    python3-xml \
 "
 
 ALTERNATIVE:${PN} += "py.test pytest"
Signature · 1 line
2.49.0
#5 lore raw

PATCH 5/5 maintainers.inc: sort Python recipes alphabetically

In reply to Trevor Gamblin

There are a small number of these that are out of place, so re-sort the entire list to clean it up.

---
 meta/conf/distro/include/maintainers.inc | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
meta/conf/distro/include/maintainers.inc +10 -10
index 5d2ac05b27..870c81e85f 100644
@@ -623,11 +623,11 @@ RECIPE_MAINTAINER:pn-python3-beartype = "Marta Rybczynska <marta.rybczynska@ygre
 RECIPE_MAINTAINER:pn-python3-booleanpy = "zhengrq.fnst <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-build = "Ross Burton <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-calver = "Trevor Gamblin <[email protected]>"
-RECIPE_MAINTAINER:pn-python3-colorama = "Trevor Gamblin <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-certifi = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-cffi = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-chardet = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-click = "Wang Mingyu <[email protected]>"
+RECIPE_MAINTAINER:pn-python3-colorama = "Trevor Gamblin <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-cryptography = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-cryptography-vectors = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-cython = "Trevor Gamblin <[email protected]>"
@@ -638,29 +638,25 @@ RECIPE_MAINTAINER:pn-python3-dtc = "Trevor Gamblin <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-dtschema = "Bruce Ashfield <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-dtschema-wrapper = "Bruce Ashfield <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-editables = "Ross Burton <[email protected]>"
-RECIPE_MAINTAINER:pn-python3-pycryptodome = "Joshua Watt <[email protected]>"
-RECIPE_MAINTAINER:pn-python3-pycryptodomex = "Joshua Watt <[email protected]>"
-RECIPE_MAINTAINER:pn-python3-pyproject-metadata = "Trevor Gamblin <[email protected]>"
-RECIPE_MAINTAINER:pn-python3-pyrsistent = "Bruce Ashfield <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-extras = "Trevor Gamblin <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-flit-core = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-git = "Trevor Gamblin <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-gitdb = "Trevor Gamblin <[email protected]>"
-RECIPE_MAINTAINER:pn-python3-hatchling = "Ross Burton <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-hatch-fancy-pypi-readme = "Ross Burton <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-hatch-vcs = "Ross Burton <[email protected]>"
+RECIPE_MAINTAINER:pn-python3-hatchling = "Ross Burton <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-hypothesis = "Trevor Gamblin <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-idna = "Bruce Ashfield <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-imagesize = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-iniconfig = "Tim Orling <[email protected]>"
-RECIPE_MAINTAINER:pn-python3-iso8601 = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-installer = "Ross Burton <[email protected]>"
+RECIPE_MAINTAINER:pn-python3-iso8601 = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-jinja2 = "Richard Purdie <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-jsonpointer = "Bruce Ashfield <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-jsonschema = "Bruce Ashfield <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-jsonschema-specifications = "Bruce Ashfield <[email protected]>"
-RECIPE_MAINTAINER:pn-python3-license-expression = "Wang Mingyu <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-libarchive-c = "Joshua Watt <[email protected]>"
+RECIPE_MAINTAINER:pn-python3-license-expression = "Wang Mingyu <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-lxml = "Khem Raj <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-magic = "Joshua Watt <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-mako = "Trevor Gamblin <[email protected]>"
@@ -686,12 +682,16 @@ RECIPE_MAINTAINER:pn-python3-psutil = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-pyasn1 = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-pycairo = "Zang Ruochen <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-pycparser = "Tim Orling <[email protected]>"
+RECIPE_MAINTAINER:pn-python3-pycryptodome = "Joshua Watt <[email protected]>"
+RECIPE_MAINTAINER:pn-python3-pycryptodomex = "Joshua Watt <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-pyelftools = "Joshua Watt <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-pygments = "Trevor Gamblin <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-pygobject = "Zang Ruochen <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-pyopenssl = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-pyparsing = "Trevor Gamblin <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-pyproject-hooks = "Ross Burton <[email protected]>"
+RECIPE_MAINTAINER:pn-python3-pyproject-metadata = "Trevor Gamblin <[email protected]>"
+RECIPE_MAINTAINER:pn-python3-pyrsistent = "Bruce Ashfield <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-pysocks = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-pytest = "Trevor Gamblin <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-pytest-subtests = "Tim Orling <[email protected]>"
@@ -717,14 +717,14 @@ RECIPE_MAINTAINER:pn-python3-snowballstemmer = "Tim Orling <tim.orling@konsulko.
 RECIPE_MAINTAINER:pn-python3-sortedcontainers = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-spdx-tools = "Marta Rybczynska <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-sphinx = "Trevor Gamblin <[email protected]>"
+RECIPE_MAINTAINER:pn-python3-sphinx-rtd-theme = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-sphinxcontrib-applehelp = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-sphinxcontrib-devhelp = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-sphinxcontrib-htmlhelp = "Tim Orling <[email protected]>"
-RECIPE_MAINTAINER:pn-python3-sphinxcontrib-jsmath = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-sphinxcontrib-jquery = "Tim Orling <[email protected]>"
+RECIPE_MAINTAINER:pn-python3-sphinxcontrib-jsmath = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-sphinxcontrib-qthelp = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-sphinxcontrib-serializinghtml = "Tim Orling <[email protected]>"
-RECIPE_MAINTAINER:pn-python3-sphinx-rtd-theme = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-subunit = "Trevor Gamblin <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-testtools = "Trevor Gamblin <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-trove-classifiers = "Trevor Gamblin <[email protected]>"
Signature · 1 line
2.49.0
#6 lore raw
In reply to Trevor Gamblin
Quoted 1 line · Trevor Gamblin via lists.openembedded.org

+inherit pypi python_setuptools_build_meta

So this package uses a modern setuptools to build.

Quoted 3 lines

+DEPENDS += " \
+ python3-hatchling-native \
+"

So this package uses hatchling to build.

One of these is wrong :)

I suspect the recipe should inherit python_hatchling and not have a DEPENDS?

Ross

#7 lore raw
Quoted 4 lines · Ross Burton
Quoted 1 line · Trevor Gamblin via lists.openembedded.org

+inherit pypi python_setuptools_build_meta

So this package uses a modern setuptools to build.

Quoted 8 lines
Quoted 3 lines

+DEPENDS += " \
+ python3-hatchling-native \
+"

So this package uses hatchling to build.

One of these is wrong :)

I suspect the recipe should inherit python_hatchling and not have a DEPENDS?

You may be right. Trying out a build with the change now. If it works I'll re-send.

Quoted 3 lines

Ross

#8 lore raw
Quoted 10 lines · Trevor Gamblin via lists.openembedded.org
Quoted 8 lines · Ross Burton
Quoted 1 line · Trevor Gamblin via lists.openembedded.org

+inherit pypi python_setuptools_build_meta

So this package uses a modern setuptools to build.

Quoted 3 lines

+DEPENDS += " \
+ python3-hatchling-native \
+"

Quoted 9 lines
Quoted 6 lines

So this package uses hatchling to build.

One of these is wrong :)

I suspect the recipe should inherit python_hatchling and not have a DEPENDS?

You may be right. Trying out a build with the change now. If it works I'll re-send.

I did tweak the version in master-next since I needed to retest other things as well. I think it has tested ok...

Cheers,

Richard

#9 lore raw
Quoted 15 lines · Richard Purdie
Quoted 13 lines · Trevor Gamblin via lists.openembedded.org
Quoted 12 lines · Ross Burton
Quoted 1 line · Trevor Gamblin via lists.openembedded.org

+inherit pypi python_setuptools_build_meta

So this package uses a modern setuptools to build.

Quoted 3 lines

+DEPENDS += " \
+ python3-hatchling-native \
+"

So this package uses hatchling to build.

One of these is wrong :)

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

I suspect the recipe should inherit python_hatchling and not have a DEPENDS?

You may be right. Trying out a build with the change now. If it works I'll re-send.

I did tweak the version in master-next since I needed to retest other things as well. I think it has tested ok...

I see that now. LGTM.

Quoted 4 lines

Cheers,

Richard