All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/7] python3-setuptools-scm-git-archive: add new recipe
@ 2022-05-24 12:11 Ross Burton
  2022-05-24 12:11 ` [PATCH 2/7] python3-setuptools-declarative-requirements: " Ross Burton
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Ross Burton @ 2022-05-24 12:11 UTC (permalink / raw)
  To: openembedded-devel; +Cc: nd

Some Python packages use this at build time.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 .../packagegroups/packagegroup-meta-python.bb     |  1 +
 .../python3-setuptools-scm-git-archive_1.1.bb     | 15 +++++++++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-setuptools-scm-git-archive_1.1.bb

diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
index 6ca652e12d..bab637bfb2 100644
--- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
+++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
@@ -389,6 +389,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-send2trash \
     python3-sentry-sdk \
     python3-serpent \
+    python3-setuptools-scm-git-archive \
     python3-sh \
     python3-sijax \
     python3-simpleeval \
diff --git a/meta-python/recipes-devtools/python/python3-setuptools-scm-git-archive_1.1.bb b/meta-python/recipes-devtools/python/python3-setuptools-scm-git-archive_1.1.bb
new file mode 100644
index 0000000000..472c4eb1c8
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-setuptools-scm-git-archive_1.1.bb
@@ -0,0 +1,15 @@
+SUMMARY = "setuptools_scm plugin for git archives"
+HOMEPAGE = "https://pypi.org/project/setuptools-scm-git-archive/"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=838c366f69b72c5df05c96dff79b35f2"
+
+SRC_URI[sha256sum] = "6026f61089b73fa1b5ee737e95314f41cb512609b393530385ed281d0b46c062"
+
+inherit pypi setuptools3
+
+PYPI_PACKAGE = "setuptools_scm_git_archive"
+PYPI_SRC_URI = "https://files.pythonhosted.org/packages/7e/2c/0c15b29a1b5940250bfdc4a4f53272e35cd7cf8a34159291b6b4ec9eb291/${PYPI_ARCHIVE_NAME}"
+
+DEPENDS += "python3-setuptools-scm-native"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/7] python3-setuptools-declarative-requirements: add new recipe
  2022-05-24 12:11 [PATCH 1/7] python3-setuptools-scm-git-archive: add new recipe Ross Burton
@ 2022-05-24 12:11 ` Ross Burton
  2022-05-24 12:11 ` [PATCH 3/7] python3-editables: " Ross Burton
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: Ross Burton @ 2022-05-24 12:11 UTC (permalink / raw)
  To: openembedded-devel; +Cc: nd

Some Python packages use this in their setup.cfg.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 .../packagegroups/packagegroup-meta-python.bb        |  1 +
 ...hon3-setuptools-declarative-requirements_1.2.0.bb | 12 ++++++++++++
 2 files changed, 13 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-setuptools-declarative-requirements_1.2.0.bb

diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
index bab637bfb2..594a72f526 100644
--- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
+++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
@@ -389,6 +389,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-send2trash \
     python3-sentry-sdk \
     python3-serpent \
+    python3-setuptools-declarative-requirements \
     python3-setuptools-scm-git-archive \
     python3-sh \
     python3-sijax \
diff --git a/meta-python/recipes-devtools/python/python3-setuptools-declarative-requirements_1.2.0.bb b/meta-python/recipes-devtools/python/python3-setuptools-declarative-requirements_1.2.0.bb
new file mode 100644
index 0000000000..9628656ad6
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-setuptools-declarative-requirements_1.2.0.bb
@@ -0,0 +1,12 @@
+SUMMARY = "File support for setuptools declarative setup.cfg"
+HOMEPAGE = "https://pypi.org/project/setuptools-declarative-requirements/"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
+
+SRC_URI[sha256sum] = "d11fdb5ef818c65b20bc241e0f5ef44905a5640b681dae21ba1ac1742dab1fd1"
+
+inherit pypi python_setuptools_build_meta
+
+DEPENDS += "python3-setuptools-scm-native"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 3/7] python3-editables: add new recipe
  2022-05-24 12:11 [PATCH 1/7] python3-setuptools-scm-git-archive: add new recipe Ross Burton
  2022-05-24 12:11 ` [PATCH 2/7] python3-setuptools-declarative-requirements: " Ross Burton
@ 2022-05-24 12:11 ` Ross Burton
  2022-05-24 12:11 ` [PATCH 4/7] python3-pathspec: " Ross Burton
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: Ross Burton @ 2022-05-24 12:11 UTC (permalink / raw)
  To: openembedded-devel; +Cc: nd

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 .../packagegroups/packagegroup-meta-python.bb         |  1 +
 .../recipes-devtools/python/python3-editables_0.3.bb  | 11 +++++++++++
 2 files changed, 12 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-editables_0.3.bb

diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
index 594a72f526..7836853cd5 100644
--- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
+++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
@@ -106,6 +106,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-dominate \
     python3-dynamic-dispatch \
     python3-ecdsa \
+    python3-editables \
     python3-editor \
     python3-email-validator \
     python3-engineio \
diff --git a/meta-python/recipes-devtools/python/python3-editables_0.3.bb b/meta-python/recipes-devtools/python/python3-editables_0.3.bb
new file mode 100644
index 0000000000..b42ff06872
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-editables_0.3.bb
@@ -0,0 +1,11 @@
+SUMMARY = "A Python library for creating editable wheels"
+HOMEPAGE = "https://github.com/pfmoore/editables"
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=41bc1be47b7bb8240db3ef928c7cb0bf"
+
+SRC_URI[sha256sum] = "167524e377358ed1f1374e61c268f0d7a4bf7dbd046c656f7b410cde16161b1a"
+
+inherit pypi python_setuptools_build_meta
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 4/7] python3-pathspec: add new recipe
  2022-05-24 12:11 [PATCH 1/7] python3-setuptools-scm-git-archive: add new recipe Ross Burton
  2022-05-24 12:11 ` [PATCH 2/7] python3-setuptools-declarative-requirements: " Ross Burton
  2022-05-24 12:11 ` [PATCH 3/7] python3-editables: " Ross Burton
@ 2022-05-24 12:11 ` Ross Burton
  2022-05-24 12:11 ` [PATCH 5/7] python3-hatchling: add new recipe and build class Ross Burton
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: Ross Burton @ 2022-05-24 12:11 UTC (permalink / raw)
  To: openembedded-devel; +Cc: nd

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 .../packagegroups/packagegroup-meta-python.bb         |  1 +
 .../recipes-devtools/python/python3-pathspec_0.9.0.bb | 11 +++++++++++
 2 files changed, 12 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-pathspec_0.9.0.bb

diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
index 7836853cd5..2fcf34260c 100644
--- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
+++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
@@ -270,6 +270,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-parso \
     python3-passlib \
     python3-pastedeploy \
+    python3-pathspec \
     python3-pathtools3 \
     python3-pep8 \
     python3-periphery \
diff --git a/meta-python/recipes-devtools/python/python3-pathspec_0.9.0.bb b/meta-python/recipes-devtools/python/python3-pathspec_0.9.0.bb
new file mode 100644
index 0000000000..641f1cfd87
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pathspec_0.9.0.bb
@@ -0,0 +1,11 @@
+SUMMARY = "Utility library for gitignore style pattern matching of file paths."
+HOMEPAGE = "https://github.com/cpburnz/python-path-specification"
+SECTION = "devel/python"
+LICENSE = "MPL-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad"
+
+SRC_URI[sha256sum] = "e564499435a2673d586f6b2130bb5b95f04a3ba06f81b8f895b651a3c76aabb1"
+
+inherit pypi setuptools3
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 5/7] python3-hatchling: add new recipe and build class
  2022-05-24 12:11 [PATCH 1/7] python3-setuptools-scm-git-archive: add new recipe Ross Burton
                   ` (2 preceding siblings ...)
  2022-05-24 12:11 ` [PATCH 4/7] python3-pathspec: " Ross Burton
@ 2022-05-24 12:11 ` Ross Burton
  2022-05-24 20:32   ` [oe] " Khem Raj
  2022-05-24 12:11 ` [PATCH 6/7] python3-traitlets: upgrade to 5.2.1 Ross Burton
  2022-05-24 12:11 ` [PATCH 7/7] python3-cppy: fix inherits and DEPENDS Ross Burton
  5 siblings, 1 reply; 10+ messages in thread
From: Ross Burton @ 2022-05-24 12:11 UTC (permalink / raw)
  To: openembedded-devel; +Cc: nd

Hatchling is the build backend used by the Hatch tool.  Add the recipe
and a pep517 build class.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta-python/classes/python_hatchling.bbclass  |  5 +++++
 .../packagegroups/packagegroup-meta-python.bb |  1 +
 .../python/python3-hatchling_1.3.0.bb         | 21 +++++++++++++++++++
 3 files changed, 27 insertions(+)
 create mode 100644 meta-python/classes/python_hatchling.bbclass
 create mode 100644 meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb

diff --git a/meta-python/classes/python_hatchling.bbclass b/meta-python/classes/python_hatchling.bbclass
new file mode 100644
index 0000000000..b3cbe23601
--- /dev/null
+++ b/meta-python/classes/python_hatchling.bbclass
@@ -0,0 +1,5 @@
+inherit python_pep517 python3native python3-dir setuptools3-base
+
+DEPENDS += "python3-hatchling-native"
+
+PEP517_BUILD_API = "hatchling.build"
diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
index 2fcf34260c..80ec0720fd 100644
--- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
+++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
@@ -168,6 +168,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-h11 \
     python3-h2 \
     python3-h5py \
+    python3-hatchling \
     python3-haversine \
     python3-hpack \
     python3-html2text \
diff --git a/meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb b/meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb
new file mode 100644
index 0000000000..a6550a9732
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb
@@ -0,0 +1,21 @@
+SUMMARY = "The extensible, standards compliant build backend used by Hatch"
+HOMEPAGE = "https://hatch.pypa.io/latest/"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=cbe2fd33fc9297692812fc94b7d27fd9"
+
+inherit pypi python_hatchling
+
+DEPENDS += "python3-pluggy-native python3-tomli-native python3-pathspec-native python3-packaging-native python3-editables-native"
+DEPENDS:remove:class-native = "python3-hatchling-native"
+
+SRC_URI[sha256sum] = "1401d45d3dd6a5910f64d539acaa943486d5e8b7dda1a97f2b0040fdddc5b85e"
+
+# Until we have a proper tool to invoke PEP517 builds, hatchling can't
+# bootstrap itself automatically.
+PEP517_BUILD_API = "hatchling.ouroboros"
+
+do_compile:prepend() {
+    export PYTHONPATH=src
+}
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 6/7] python3-traitlets: upgrade to 5.2.1
  2022-05-24 12:11 [PATCH 1/7] python3-setuptools-scm-git-archive: add new recipe Ross Burton
                   ` (3 preceding siblings ...)
  2022-05-24 12:11 ` [PATCH 5/7] python3-hatchling: add new recipe and build class Ross Burton
@ 2022-05-24 12:11 ` Ross Burton
  2022-05-24 12:11 ` [PATCH 7/7] python3-cppy: fix inherits and DEPENDS Ross Burton
  5 siblings, 0 replies; 10+ messages in thread
From: Ross Burton @ 2022-05-24 12:11 UTC (permalink / raw)
  To: openembedded-devel; +Cc: nd

This now uses hatching to build.

Also remove redundant PYPI_PACKAGE assignment.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 ...ython3-traitlets_5.2.0.bb => python3-traitlets_5.2.1.bb} | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-traitlets_5.2.0.bb => python3-traitlets_5.2.1.bb} (67%)

diff --git a/meta-python/recipes-devtools/python/python3-traitlets_5.2.0.bb b/meta-python/recipes-devtools/python/python3-traitlets_5.2.1.bb
similarity index 67%
rename from meta-python/recipes-devtools/python/python3-traitlets_5.2.0.bb
rename to meta-python/recipes-devtools/python/python3-traitlets_5.2.1.bb
index 56ebaac675..3bc977279a 100644
--- a/meta-python/recipes-devtools/python/python3-traitlets_5.2.0.bb
+++ b/meta-python/recipes-devtools/python/python3-traitlets_5.2.1.bb
@@ -4,13 +4,11 @@ AUTHOR = "IPython Development Team <ipython-dev@scipy.org>"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://COPYING.md;md5=9c125dfc5ff5364d40b5f56f02cd9de3"
 
-PYPI_PACKAGE = "traitlets"
+SRC_URI[sha256sum] = "a415578cde1985f1b773faefe49e9f078d345f38665ce3e9e914ec7b41150ce9"
 
-SRC_URI[sha256sum] = "60474f39bf1d39a11e0233090b99af3acee93bbc2281777e61dd8c87da8a0014"
+inherit pypi python_hatchling
 
 RDEPENDS:${PN} = "\
     ${PYTHON_PN}-ipython-genutils \
     ${PYTHON_PN}-decorator \
 "
-
-inherit pypi python_setuptools_build_meta
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 7/7] python3-cppy: fix inherits and DEPENDS
  2022-05-24 12:11 [PATCH 1/7] python3-setuptools-scm-git-archive: add new recipe Ross Burton
                   ` (4 preceding siblings ...)
  2022-05-24 12:11 ` [PATCH 6/7] python3-traitlets: upgrade to 5.2.1 Ross Burton
@ 2022-05-24 12:11 ` Ross Burton
  5 siblings, 0 replies; 10+ messages in thread
From: Ross Burton @ 2022-05-24 12:11 UTC (permalink / raw)
  To: openembedded-devel; +Cc: nd

This recipe inherited python_flit_core, but actually builds with setuptools.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta-python/recipes-devtools/python/python3-cppy_1.2.1.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-python/recipes-devtools/python/python3-cppy_1.2.1.bb b/meta-python/recipes-devtools/python/python3-cppy_1.2.1.bb
index 57ef3b2776..270f74963d 100644
--- a/meta-python/recipes-devtools/python/python3-cppy_1.2.1.bb
+++ b/meta-python/recipes-devtools/python/python3-cppy_1.2.1.bb
@@ -7,11 +7,11 @@ SRC_URI[sha256sum] = "83b43bf17b1085ac15c5debdb42154f138b928234b21447358981f69d0
 
 RDEPENDS:${PN} += "python3-setuptools python3-distutils"
 
-inherit pypi python_flit_core 
+inherit pypi python_setuptools_build_meta
 
 SRC_URI += " file://0001-Fix-build-error-as-following.patch \
            "
 
-DEPENDS += "python3-setuptools-native"
+DEPENDS += "python3-setuptools-scm-native"
 
 BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [oe] [PATCH 5/7] python3-hatchling: add new recipe and build class
  2022-05-24 12:11 ` [PATCH 5/7] python3-hatchling: add new recipe and build class Ross Burton
@ 2022-05-24 20:32   ` Khem Raj
  2022-05-25 10:37     ` Ross Burton
  0 siblings, 1 reply; 10+ messages in thread
From: Khem Raj @ 2022-05-24 20:32 UTC (permalink / raw)
  To: Ross Burton; +Cc: openembeded-devel, nd

Its failing YP compat checks see

https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/1778

On Tue, May 24, 2022 at 5:12 AM Ross Burton <ross.burton@arm.com> wrote:
>
> Hatchling is the build backend used by the Hatch tool.  Add the recipe
> and a pep517 build class.
>
> Signed-off-by: Ross Burton <ross.burton@arm.com>
> ---
>  meta-python/classes/python_hatchling.bbclass  |  5 +++++
>  .../packagegroups/packagegroup-meta-python.bb |  1 +
>  .../python/python3-hatchling_1.3.0.bb         | 21 +++++++++++++++++++
>  3 files changed, 27 insertions(+)
>  create mode 100644 meta-python/classes/python_hatchling.bbclass
>  create mode 100644 meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb
>
> diff --git a/meta-python/classes/python_hatchling.bbclass b/meta-python/classes/python_hatchling.bbclass
> new file mode 100644
> index 0000000000..b3cbe23601
> --- /dev/null
> +++ b/meta-python/classes/python_hatchling.bbclass
> @@ -0,0 +1,5 @@
> +inherit python_pep517 python3native python3-dir setuptools3-base
> +
> +DEPENDS += "python3-hatchling-native"
> +
> +PEP517_BUILD_API = "hatchling.build"
> diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
> index 2fcf34260c..80ec0720fd 100644
> --- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
> +++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
> @@ -168,6 +168,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
>      python3-h11 \
>      python3-h2 \
>      python3-h5py \
> +    python3-hatchling \
>      python3-haversine \
>      python3-hpack \
>      python3-html2text \
> diff --git a/meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb b/meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb
> new file mode 100644
> index 0000000000..a6550a9732
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb
> @@ -0,0 +1,21 @@
> +SUMMARY = "The extensible, standards compliant build backend used by Hatch"
> +HOMEPAGE = "https://hatch.pypa.io/latest/"
> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=cbe2fd33fc9297692812fc94b7d27fd9"
> +
> +inherit pypi python_hatchling
> +
> +DEPENDS += "python3-pluggy-native python3-tomli-native python3-pathspec-native python3-packaging-native python3-editables-native"
> +DEPENDS:remove:class-native = "python3-hatchling-native"
> +
> +SRC_URI[sha256sum] = "1401d45d3dd6a5910f64d539acaa943486d5e8b7dda1a97f2b0040fdddc5b85e"
> +
> +# Until we have a proper tool to invoke PEP517 builds, hatchling can't
> +# bootstrap itself automatically.
> +PEP517_BUILD_API = "hatchling.ouroboros"
> +
> +do_compile:prepend() {
> +    export PYTHONPATH=src
> +}
> +
> +BBCLASSEXTEND = "native nativesdk"
> --
> 2.25.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#97246): https://lists.openembedded.org/g/openembedded-devel/message/97246
> Mute This Topic: https://lists.openembedded.org/mt/91309500/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [oe] [PATCH 5/7] python3-hatchling: add new recipe and build class
  2022-05-24 20:32   ` [oe] " Khem Raj
@ 2022-05-25 10:37     ` Ross Burton
  2022-05-25 15:08       ` Khem Raj
  0 siblings, 1 reply; 10+ messages in thread
From: Ross Burton @ 2022-05-25 10:37 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembeded-devel, nd

Sorry, forgot to say that this series depends on a patch I’ve sent for oe-core (to add pluggy-native).

Ross

> On 24 May 2022, at 21:32, Khem Raj <raj.khem@gmail.com> wrote:
> 
> Its failing YP compat checks see
> 
> https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/1778
> 
> On Tue, May 24, 2022 at 5:12 AM Ross Burton <ross.burton@arm.com> wrote:
>> 
>> Hatchling is the build backend used by the Hatch tool.  Add the recipe
>> and a pep517 build class.
>> 
>> Signed-off-by: Ross Burton <ross.burton@arm.com>
>> ---
>> meta-python/classes/python_hatchling.bbclass  |  5 +++++
>> .../packagegroups/packagegroup-meta-python.bb |  1 +
>> .../python/python3-hatchling_1.3.0.bb         | 21 +++++++++++++++++++
>> 3 files changed, 27 insertions(+)
>> create mode 100644 meta-python/classes/python_hatchling.bbclass
>> create mode 100644 meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb
>> 
>> diff --git a/meta-python/classes/python_hatchling.bbclass b/meta-python/classes/python_hatchling.bbclass
>> new file mode 100644
>> index 0000000000..b3cbe23601
>> --- /dev/null
>> +++ b/meta-python/classes/python_hatchling.bbclass
>> @@ -0,0 +1,5 @@
>> +inherit python_pep517 python3native python3-dir setuptools3-base
>> +
>> +DEPENDS += "python3-hatchling-native"
>> +
>> +PEP517_BUILD_API = "hatchling.build"
>> diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
>> index 2fcf34260c..80ec0720fd 100644
>> --- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
>> +++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
>> @@ -168,6 +168,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
>>     python3-h11 \
>>     python3-h2 \
>>     python3-h5py \
>> +    python3-hatchling \
>>     python3-haversine \
>>     python3-hpack \
>>     python3-html2text \
>> diff --git a/meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb b/meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb
>> new file mode 100644
>> index 0000000000..a6550a9732
>> --- /dev/null
>> +++ b/meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb
>> @@ -0,0 +1,21 @@
>> +SUMMARY = "The extensible, standards compliant build backend used by Hatch"
>> +HOMEPAGE = "https://hatch.pypa.io/latest/"
>> +LICENSE = "MIT"
>> +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=cbe2fd33fc9297692812fc94b7d27fd9"
>> +
>> +inherit pypi python_hatchling
>> +
>> +DEPENDS += "python3-pluggy-native python3-tomli-native python3-pathspec-native python3-packaging-native python3-editables-native"
>> +DEPENDS:remove:class-native = "python3-hatchling-native"
>> +
>> +SRC_URI[sha256sum] = "1401d45d3dd6a5910f64d539acaa943486d5e8b7dda1a97f2b0040fdddc5b85e"
>> +
>> +# Until we have a proper tool to invoke PEP517 builds, hatchling can't
>> +# bootstrap itself automatically.
>> +PEP517_BUILD_API = "hatchling.ouroboros"
>> +
>> +do_compile:prepend() {
>> +    export PYTHONPATH=src
>> +}
>> +
>> +BBCLASSEXTEND = "native nativesdk"
>> --
>> 2.25.1
>> 
>> 
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#97246): https://lists.openembedded.org/g/openembedded-devel/message/97246
>> Mute This Topic: https://lists.openembedded.org/mt/91309500/1997914
>> Group Owner: openembedded-devel+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [oe] [PATCH 5/7] python3-hatchling: add new recipe and build class
  2022-05-25 10:37     ` Ross Burton
@ 2022-05-25 15:08       ` Khem Raj
  0 siblings, 0 replies; 10+ messages in thread
From: Khem Raj @ 2022-05-25 15:08 UTC (permalink / raw)
  To: Ross Burton; +Cc: openembeded-devel, nd

On Wed, May 25, 2022 at 3:37 AM Ross Burton <Ross.Burton@arm.com> wrote:
>
> Sorry, forgot to say that this series depends on a patch I’ve sent for oe-core (to add pluggy-native).
>

yeah figured

> Ross
>
> > On 24 May 2022, at 21:32, Khem Raj <raj.khem@gmail.com> wrote:
> >
> > Its failing YP compat checks see
> >
> > https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/1778
> >
> > On Tue, May 24, 2022 at 5:12 AM Ross Burton <ross.burton@arm.com> wrote:
> >>
> >> Hatchling is the build backend used by the Hatch tool.  Add the recipe
> >> and a pep517 build class.
> >>
> >> Signed-off-by: Ross Burton <ross.burton@arm.com>
> >> ---
> >> meta-python/classes/python_hatchling.bbclass  |  5 +++++
> >> .../packagegroups/packagegroup-meta-python.bb |  1 +
> >> .../python/python3-hatchling_1.3.0.bb         | 21 +++++++++++++++++++
> >> 3 files changed, 27 insertions(+)
> >> create mode 100644 meta-python/classes/python_hatchling.bbclass
> >> create mode 100644 meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb
> >>
> >> diff --git a/meta-python/classes/python_hatchling.bbclass b/meta-python/classes/python_hatchling.bbclass
> >> new file mode 100644
> >> index 0000000000..b3cbe23601
> >> --- /dev/null
> >> +++ b/meta-python/classes/python_hatchling.bbclass
> >> @@ -0,0 +1,5 @@
> >> +inherit python_pep517 python3native python3-dir setuptools3-base
> >> +
> >> +DEPENDS += "python3-hatchling-native"
> >> +
> >> +PEP517_BUILD_API = "hatchling.build"
> >> diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
> >> index 2fcf34260c..80ec0720fd 100644
> >> --- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
> >> +++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
> >> @@ -168,6 +168,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
> >>     python3-h11 \
> >>     python3-h2 \
> >>     python3-h5py \
> >> +    python3-hatchling \
> >>     python3-haversine \
> >>     python3-hpack \
> >>     python3-html2text \
> >> diff --git a/meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb b/meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb
> >> new file mode 100644
> >> index 0000000000..a6550a9732
> >> --- /dev/null
> >> +++ b/meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb
> >> @@ -0,0 +1,21 @@
> >> +SUMMARY = "The extensible, standards compliant build backend used by Hatch"
> >> +HOMEPAGE = "https://hatch.pypa.io/latest/"
> >> +LICENSE = "MIT"
> >> +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=cbe2fd33fc9297692812fc94b7d27fd9"
> >> +
> >> +inherit pypi python_hatchling
> >> +
> >> +DEPENDS += "python3-pluggy-native python3-tomli-native python3-pathspec-native python3-packaging-native python3-editables-native"
> >> +DEPENDS:remove:class-native = "python3-hatchling-native"
> >> +
> >> +SRC_URI[sha256sum] = "1401d45d3dd6a5910f64d539acaa943486d5e8b7dda1a97f2b0040fdddc5b85e"
> >> +
> >> +# Until we have a proper tool to invoke PEP517 builds, hatchling can't
> >> +# bootstrap itself automatically.
> >> +PEP517_BUILD_API = "hatchling.ouroboros"
> >> +
> >> +do_compile:prepend() {
> >> +    export PYTHONPATH=src
> >> +}
> >> +
> >> +BBCLASSEXTEND = "native nativesdk"
> >> --
> >> 2.25.1
> >>
> >>
> >> -=-=-=-=-=-=-=-=-=-=-=-
> >> Links: You receive all messages sent to this group.
> >> View/Reply Online (#97246): https://lists.openembedded.org/g/openembedded-devel/message/97246
> >> Mute This Topic: https://lists.openembedded.org/mt/91309500/1997914
> >> Group Owner: openembedded-devel+owner@lists.openembedded.org
> >> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> >> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-05-25 15:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-24 12:11 [PATCH 1/7] python3-setuptools-scm-git-archive: add new recipe Ross Burton
2022-05-24 12:11 ` [PATCH 2/7] python3-setuptools-declarative-requirements: " Ross Burton
2022-05-24 12:11 ` [PATCH 3/7] python3-editables: " Ross Burton
2022-05-24 12:11 ` [PATCH 4/7] python3-pathspec: " Ross Burton
2022-05-24 12:11 ` [PATCH 5/7] python3-hatchling: add new recipe and build class Ross Burton
2022-05-24 20:32   ` [oe] " Khem Raj
2022-05-25 10:37     ` Ross Burton
2022-05-25 15:08       ` Khem Raj
2022-05-24 12:11 ` [PATCH 6/7] python3-traitlets: upgrade to 5.2.1 Ross Burton
2022-05-24 12:11 ` [PATCH 7/7] python3-cppy: fix inherits and DEPENDS Ross Burton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.