Skip to contentSkip to conversation

python3-setuptools-git-versioning: Add recipe

PATCH In review Khem Raj 2 participants 4 messages Oct 23, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 python3-setuptools-git-versioning: Add recipe

Some packages e.g. python3-cytoolz are needing it now.

---
 ...python3-setuptools-git-versioning_2.1.0.bb | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-setuptools-git-versioning_2.1.0.bb
meta-python/recipes-devtools/python/python3-setuptools-git-versioning_2.1.0.bb new file +20 -0
new file mode 100644
index 0000000000..0da9d26dd3
@@ -0,0 +1,20 @@
+SUMMARY = "Use git repo data for building a version number according PEP-440"
+HOMEPAGE = "https://setuptools-git-versioning.readthedocs.io"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=92e79e3a844e66731724600f3ac9c0d8"
+
+SRC_URI[sha256sum] = "6aef5b8bb1cfb953b6b343d27cbfc561d96cf2a2ee23c2e0dd3591042a059921"
+
+inherit pypi setuptools3
+
+PACKAGECONFIG ?= ""
+PACKAGECONFIG[python-version-smaller-3-dot-11] = ",,,python3-tomli"
+
+RDEPENDS:${PN} += "python3-packaging python3-setuptools \
+                   python3-core python3-datetime python3-logging \
+				   python3-packaging python3-pprint python3-setuptools \
+				   python3-tomllib"
+
+PYPI_PACKAGE = "setuptools_git_versioning"
+
+BBCLASSEXTEND += "native"
author
#1 lore raw

PATCH 2/2 python3-cytoolz: Switch to PEP-517 build backend

The project has a proper pyproject.toml which declares the setuptools.build.meta PEP-517 backend.

Fixes

WARNING: python3-cytoolz-1.1.0-r0 do_check_backend: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 meta-python/recipes-devtools/python/python3-cytoolz_1.1.0.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-cytoolz_1.1.0.bb +3 -1
index 9840fbfbd6..a75948a006 100644
@@ -7,6 +7,8 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d422ebce3e9c6447563bd410e9b22f2e"
 
 SRC_URI[sha256sum] = "13a7bf254c3c0d28b12e2290b82aed0f0977a4c2a2bf84854fcdc7796a29f3b0"
 
-inherit pypi setuptools3 cython
+inherit pypi python_setuptools_build_meta cython
+
+DEPENDS += "python3-setuptools-git-versioning-native"
 
 RDEPENDS:${PN} += "python3-toolz"
#2 lore raw
In reply to Khem Raj
Quoted 20 lines · Khem Raj via lists.openembedded.org

Some packages e.g. python3-cytoolz are needing it now.

---
 ...python3-setuptools-git-versioning_2.1.0.bb | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-setuptools-git-versioning_2.1.0.bb
meta-python/recipes-devtools/python/python3-setuptools-git-versioning_2.1.0.bb new file +5 -0
new file mode 100644
index 0000000000..0da9d26dd3
@@ -0,0 +1,20 @@
+SUMMARY = "Use git repo data for building a version number according PEP-440"
+HOMEPAGE = "https://setuptools-git-versioning.readthedocs.io"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=92e79e3a844e66731724600f3ac9c0d8"
+

meta-python/recipes-devtools/python/python3-setuptools-git-versioning_2.1.0.bb line 15

Quoted 10 lines
meta-python/recipes-devtools/python/python3-setuptools-git-versioning_2.1.0.bb new file +10 -0
+SRC_URI[sha256sum] = "6aef5b8bb1cfb953b6b343d27cbfc561d96cf2a2ee23c2e0dd3591042a059921"
+
+inherit pypi setuptools3
+
+PACKAGECONFIG ?= ""
+PACKAGECONFIG[python-version-smaller-3-dot-11] = ",,,python3-tomli"
+
+RDEPENDS:${PN} += "python3-packaging python3-setuptools \
+                   python3-core python3-datetime python3-logging \
+                                  python3-packaging python3-pprint python3-setuptools \

python3-packaging and python3-setuptools are already added

Quoted 14 lines
meta-python/recipes-devtools/python/python3-setuptools-git-versioning_2.1.0.bb new file +5 -1
+                                  python3-tomllib"
+
+PYPI_PACKAGE = "setuptools_git_versioning"
+
+BBCLASSEXTEND += "native"
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#120911): https://lists.openembedded.org/g/openembedded-devel/message/120911
Mute This Topic: https://lists.openembedded.org/mt/115904614/3619737
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#3 lore raw
Quoted 41 lines · Ankur Tyagi
Quoted 8 lines · Khem Raj via lists.openembedded.org

Some packages e.g. python3-cytoolz are needing it now.

---
 ...python3-setuptools-git-versioning_2.1.0.bb | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/

python3-setuptools-git-versioning_2.1.0.bb

Review

Quoted 2 lines
(quoted diff) +0 -0

python3-setuptools-git-versioning_2.1.0.bb
b/meta-python/recipes-devtools/python/
python3-setuptools-git-versioning_2.1.0.bb

meta-python/recipes-devtools/python/

Quoted 4 lines

new file mode 100644
index 0000000000..0da9d26dd3

meta-python/recipes-devtools/python/ new file +0 -0

python3-setuptools-git-versioning_2.1.0.bb

meta-python/recipes-devtools/python/ line 1

Quoted 2 lines
meta-python/recipes-devtools/python/ new file +1 -0
@@ -0,0 +1,20 @@
+SUMMARY = "Use git repo data for building a version number according

PEP-440"

meta-python/recipes-devtools/python/ line 6

Quoted 5 lines
meta-python/recipes-devtools/python/ new file +5 -0
+HOMEPAGE = "https://setuptools-git-versioning.readthedocs.io"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=92e79e3a844e66731724600f3ac9c0d8"
+
+SRC_URI[sha256sum] =

"6aef5b8bb1cfb953b6b343d27cbfc561d96cf2a2ee23c2e0dd3591042a059921"

meta-python/recipes-devtools/python/ line 15

Quoted 9 lines
meta-python/recipes-devtools/python/ new file +9 -0
+
+inherit pypi setuptools3
+
+PACKAGECONFIG ?= ""
+PACKAGECONFIG[python-version-smaller-3-dot-11] = ",,,python3-tomli"
+
+RDEPENDS:${PN} += "python3-packaging python3-setuptools \
+                   python3-core python3-datetime python3-logging \
+                                  python3-packaging python3-pprint

python3-setuptools \

Quoted 1 line

python3-packaging and python3-setuptools are already added

Good catch !

Quoted 18 lines
Quoted 10 lines
meta-python/recipes-devtools/python/ new file +5 -1
+                                  python3-tomllib"
+
+PYPI_PACKAGE = "setuptools_git_versioning"
+
+BBCLASSEXTEND += "native"
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group. View/Reply Online (#120911):

https://lists.openembedded.org/g/openembedded-devel/message/120911

Quoted 3 lines

Mute This Topic: https://lists.openembedded.org/mt/115904614/3619737
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [

[email protected]]

Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-