diff mbox series

[meta-python,1/2] python3-setuptools-git-versioning: Add recipe

Message ID 20251023025102.3182631-1-raj.khem@gmail.com
State New
Headers show
Series [meta-python,1/2] python3-setuptools-git-versioning: Add recipe | expand

Commit Message

Khem Raj Oct. 23, 2025, 2:51 a.m. UTC
Some packages e.g. python3-cytoolz are needing it now.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 ...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

Comments

Ankur Tyagi Oct. 23, 2025, 3:37 a.m. UTC | #1
On Thu, Oct 23, 2025 at 3:51 PM Khem Raj via lists.openembedded.org
<raj.khem=gmail.com@lists.openembedded.org> wrote:
>
> Some packages e.g. python3-cytoolz are needing it now.
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  ...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
>
> diff --git a/meta-python/recipes-devtools/python/python3-setuptools-git-versioning_2.1.0.bb b/meta-python/recipes-devtools/python/python3-setuptools-git-versioning_2.1.0.bb
> new file mode 100644
> index 0000000000..0da9d26dd3
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-setuptools-git-versioning_2.1.0.bb
> @@ -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-packaging and python3-setuptools are already added

> +                                  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: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ankur.tyagi85@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Khem Raj Oct. 23, 2025, 3:48 a.m. UTC | #2
On Wed, Oct 22, 2025 at 8:37 PM Ankur Tyagi <ankur.tyagi85@gmail.com> wrote:

> On Thu, Oct 23, 2025 at 3:51 PM Khem Raj via lists.openembedded.org
> <raj.khem=gmail.com@lists.openembedded.org> wrote:
> >
> > Some packages e.g. python3-cytoolz are needing it now.
> >
> > Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > ---
> >  ...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
> >
> > diff --git a/meta-python/recipes-devtools/python/
> python3-setuptools-git-versioning_2.1.0.bb
> b/meta-python/recipes-devtools/python/
> python3-setuptools-git-versioning_2.1.0.bb
> > new file mode 100644
> > index 0000000000..0da9d26dd3
> > --- /dev/null
> > +++ b/meta-python/recipes-devtools/python/
> python3-setuptools-git-versioning_2.1.0.bb
> > @@ -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-packaging and python3-setuptools are already added


Good catch !


>
> > +                                  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: openembedded-devel+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> ankur.tyagi85@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
>
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-setuptools-git-versioning_2.1.0.bb b/meta-python/recipes-devtools/python/python3-setuptools-git-versioning_2.1.0.bb
new file mode 100644
index 0000000000..0da9d26dd3
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-setuptools-git-versioning_2.1.0.bb
@@ -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"