Skip to contentSkip to conversation

python3-setuptools-scm-git-archive: add new recipe

PATCH In review Ross Burton 2 participants 10 messages May 24, 2022 – May 25, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/7 python3-setuptools-scm-git-archive: add new recipe

Some Python packages use this at build time.

---
 .../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
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -0
index 6ca652e12d..bab637bfb2 100644
@@ -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 \
meta-python/recipes-devtools/python/python3-setuptools-scm-git-archive_1.1.bb new file +15 -0
new file mode 100644
index 0000000000..472c4eb1c8
@@ -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"
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/7 python3-setuptools-declarative-requirements: add new recipe

Some Python packages use this in their setup.cfg.

---
 .../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
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -0
index bab637bfb2..594a72f526 100644
@@ -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 \
meta-python/recipes-devtools/python/python3-setuptools-declarative-requirements_1.2.0.bb new file +12 -0
new file mode 100644
index 0000000000..9628656ad6
@@ -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"
Signature · 1 line
2.25.1
#2 lore raw

PATCH 3/7 python3-editables: add new recipe

In reply to Ross Burton
---
 .../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
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -0
index 594a72f526..7836853cd5 100644
@@ -106,6 +106,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-dominate \
     python3-dynamic-dispatch \
     python3-ecdsa \
+    python3-editables \
     python3-editor \
     python3-email-validator \
     python3-engineio \
meta-python/recipes-devtools/python/python3-editables_0.3.bb new file +11 -0
new file mode 100644
index 0000000000..b42ff06872
@@ -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"
Signature · 1 line
2.25.1
#3 lore raw

PATCH 4/7 python3-pathspec: add new recipe

In reply to Ross Burton
---
 .../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
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -0
index 7836853cd5..2fcf34260c 100644
@@ -270,6 +270,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-parso \
     python3-passlib \
     python3-pastedeploy \
+    python3-pathspec \
     python3-pathtools3 \
     python3-pep8 \
     python3-periphery \
meta-python/recipes-devtools/python/python3-pathspec_0.9.0.bb new file +11 -0
new file mode 100644
index 0000000000..641f1cfd87
@@ -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"
Signature · 1 line
2.25.1
#4 lore raw

PATCH 5/7 python3-hatchling: add new recipe and build class

In reply to Ross Burton

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

---
 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
meta-python/classes/python_hatchling.bbclass new file +5 -0
new file mode 100644
index 0000000000..b3cbe23601
@@ -0,0 +1,5 @@
+inherit python_pep517 python3native python3-dir setuptools3-base
+
+DEPENDS += "python3-hatchling-native"
+
+PEP517_BUILD_API = "hatchling.build"
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -0
index 2fcf34260c..80ec0720fd 100644
@@ -168,6 +168,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-h11 \
     python3-h2 \
     python3-h5py \
+    python3-hatchling \
     python3-haversine \
     python3-hpack \
     python3-html2text \
meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb new file +21 -0
new file mode 100644
index 0000000000..a6550a9732
@@ -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"
Signature · 1 line
2.25.1
#5 lore raw

Re: [oe] [PATCH 5/7] python3-hatchling: add new recipe and build class

Its failing YP compat checks see

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

Quoted 75 lines · Ross Burton

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

---
 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
meta-python/classes/python_hatchling.bbclass new file +5 -0
new file mode 100644
index 0000000000..b3cbe23601
@@ -0,0 +1,5 @@
+inherit python_pep517 python3native python3-dir setuptools3-base
+
+DEPENDS += "python3-hatchling-native"
+
+PEP517_BUILD_API = "hatchling.build"
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -0
index 2fcf34260c..80ec0720fd 100644
@@ -168,6 +168,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-h11 \
     python3-h2 \
     python3-h5py \
+    python3-hatchling \
     python3-haversine \
     python3-hpack \
     python3-html2text \
meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb new file +21 -1
new file mode 100644
index 0000000000..a6550a9732
@@ -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: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#6 lore raw

Re: [oe] [PATCH 5/7] python3-hatchling: add new recipe and build class

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

Ross

Quoted 81 lines · Khem Raj

Its failing YP compat checks see

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

Quoted 74 lines · Ross Burton

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

---

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

meta-python/classes/python_hatchling.bbclass new file +5 -0
new file mode 100644
index 0000000000..b3cbe23601
@@ -0,0 +1,5 @@
+inherit python_pep517 python3native python3-dir setuptools3-base
+
+DEPENDS += "python3-hatchling-native"
+
+PEP517_BUILD_API = "hatchling.build"
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -0
index 2fcf34260c..80ec0720fd 100644
@@ -168,6 +168,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
    python3-h11 \
    python3-h2 \
    python3-h5py \
+    python3-hatchling \
    python3-haversine \
    python3-hpack \
    python3-html2text \
meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb new file +21 -1
new file mode 100644
index 0000000000..a6550a9732
@@ -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: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#7 lore raw

Re: [oe] [PATCH 5/7] python3-hatchling: add new recipe and build class

Quoted 3 lines · Ross Burton

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

yeah figured

Quoted 84 lines

Ross

Quoted 81 lines · Khem Raj

Its failing YP compat checks see

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

Quoted 74 lines · Ross Burton

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

---

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

meta-python/classes/python_hatchling.bbclass new file +5 -0
new file mode 100644
index 0000000000..b3cbe23601
@@ -0,0 +1,5 @@
+inherit python_pep517 python3native python3-dir setuptools3-base
+
+DEPENDS += "python3-hatchling-native"
+
+PEP517_BUILD_API = "hatchling.build"
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -0
index 2fcf34260c..80ec0720fd 100644
@@ -168,6 +168,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
    python3-h11 \
    python3-h2 \
    python3-h5py \
+    python3-hatchling \
    python3-haversine \
    python3-hpack \
    python3-html2text \
meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb new file +21 -1
new file mode 100644
index 0000000000..a6550a9732
@@ -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: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#8 lore raw

PATCH 6/7 python3-traitlets: upgrade to 5.2.1

In reply to Ross Burton

This now uses hatching to build.

Also remove redundant PYPI_PACKAGE assignment.

---
 ...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%)
meta-python/recipes-devtools/python/python3-traitlets_5.2.1.bb renamed from meta-python/recipes-devtools/python/python3-traitlets_5.2.0.bb +2 -4
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
@@ -4,13 +4,11 @@ AUTHOR = "IPython Development Team <[email protected]>"
 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
Signature · 1 line
2.25.1
#9 lore raw

PATCH 7/7 python3-cppy: fix inherits and DEPENDS

In reply to Ross Burton

This recipe inherited python_flit_core, but actually builds with setuptools.

---
 meta-python/recipes-devtools/python/python3-cppy_1.2.1.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-python/recipes-devtools/python/python3-cppy_1.2.1.bb +2 -2
index 57ef3b2776..270f74963d 100644
@@ -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"
Signature · 1 line
2.25.1