Skip to contentSkip to conversation

python3-poetry-core: add v1.0.8

PATCH In review Tim Orling 2 participants 12 messages Mar 1, 2022 – Mar 2, 2022

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

PATCH 1/9 python3-poetry-core: add v1.0.8

A PEP 517 build backend implementation developed for Poetry. This project is intended to be a light weight, fully compliant, self-contained package allowing PEP 517 compatible build frontends to build Poetry managed projects.

---
 .../python/python3-poetry-core_1.0.8.bb       | 56 +++++++++++++++++++
 1 file changed, 56 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-poetry-core_1.0.8.bb
meta-python/recipes-devtools/python/python3-poetry-core_1.0.8.bb new file +56 -0
new file mode 100644
index 0000000000..0941af9ff9
@@ -0,0 +1,56 @@
+SUMMARY = "Poetry PEP 517 Build Backend"
+DESCRIPTION = "Poetry PEP 517 Build Backend"
+HOMEPAGE = "https://github.com/python-poetry/poetry-core"
+BUGTRACKER = "https://github.com/python-poetry/poetry-core"
+CHANGELOG = "https://github.com/python-poetry/poetry-core/blob/master/CHANGELOG.md"
+
+LICENSE = "Apache-2.0 & BSD-2-Clause & MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=104d5c3c653aeededf4076773aa4c236 \
+                    file://poetry/core/_vendor/attrs.LICENSE;md5=75bb9823a2778b5a2bd9b793fac93ea2 \
+                    file://poetry/core/_vendor/jsonschema/COPYING;md5=6554d3a51d7cb0b611891317f3c69057 \
+                    file://poetry/core/_vendor/jsonschema/LICENSE;md5=2ecb81765361195731a6f72a89e449fd \
+                    file://poetry/core/_vendor/lark-parser.LICENSE;md5=b37b83a9cf129d92ee65aaa71c01ce72 \
+                    file://poetry/core/_vendor/packaging/LICENSE;md5=7a6e56c9d54ecd731ab31c52de7942f0 \
+                    file://poetry/core/_vendor/packaging/LICENSE.APACHE;md5=29256199be2a609aac596980ffc11996 \
+                    file://poetry/core/_vendor/packaging/LICENSE.BSD;md5=f405810d173a1618433827928768bcd2 \
+                    file://poetry/core/_vendor/pyparsing.LICENSE;md5=fb46329938e6bc829b256e37d5c1e31a \
+                    file://poetry/core/_vendor/pyrsistent/LICENSE.mit;md5=1211a1ac6eac40020d0f99c39b4e4270 \
+                    file://poetry/core/_vendor/six.LICENSE;md5=6a574656da93d9ef05431b45907e35b6 \
+                    file://poetry/core/_vendor/tomlkit/LICENSE;md5=be329e5ef9c9fe86738c9afe6ef3c11c \
+                    "
+
+SRC_URI[sha256sum] = "951fc7c1f8d710a94cb49019ee3742125039fc659675912ea614ac2aa405b118"
+
+inherit pip_install_wheel python3native python3-dir pypi setuptools3-base
+
+RDEPENDS:${PN}:append:class-target = "\
+    python3-compression \
+    python3-core \
+    python3-crypt \
+    python3-io \
+    python3-json \
+    python3-logging \
+    python3-netclient \
+    python3-pathlib2 \
+    python3-pprint \
+    python3-shell \
+"
+
+RDEPENDS:${PN} += "\
+    python3-pip \
+    python3-six \
+"
+
+do_configure () {
+    mkdir -p ${B}/dist
+    cat > ${B}/build-it.py << EOF
+from poetry.core.masonry import api
+api.build_wheel('${B}/dist')
+EOF 
+}
+
+do_compile () {
+    ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${B}/build-it.py
+}
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.30.2
author
#1 lore raw

PATCH 2/9 poetry_core: add helper class

poetry.core.masonry.api is one of the common PEP-517 build backends.

---
 meta-python/classes/poetry_core.bbclass | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta-python/classes/poetry_core.bbclass
meta-python/classes/poetry_core.bbclass new file +15 -0
new file mode 100644
index 0000000000..4b3f9631e2
@@ -0,0 +1,15 @@
+inherit pip_install_wheel python3native python3-dir setuptools3-base
+
+DEPENDS += "python3 python3-poetry-core-native python3-pip-native"
+
+do_configure () {
+    mkdir -p ${S}/dist
+    cat > ${S}/build-it.py << EOF
+from poetry.core.masonry import api
+api.build_wheel('${S}/dist')
+EOF
+}
+
+do_compile () {
+    ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/build-it.py
+}
Signature · 1 line
2.30.2
author
#2 lore raw

PATCH 3/9 python3-dnspython: inherit poetry_core

In reply to Tim Orling

Use PEP-517 build-backend instead of setuptools3.

---
 meta-python/recipes-devtools/python/python3-dnspython_2.2.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-dnspython_2.2.0.bb +1 -1
index ee670af824..cf76a142b5 100644
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=5af50906b5929837f667dfe31052bd34"
 
 SRC_URI[sha256sum] = "e79351e032d0b606b98d38a4b0e6e2275b31a5b85c873e587cc11b73aca026d6"
 
-inherit pypi setuptools3 ptest
+inherit pypi poetry_core ptest
 
 SRC_URI += " \
 	file://run-ptest \
Signature · 1 line
2.30.2
author
#3 lore raw

PATCH 4/9 python3-pkconfig: inherit poetry_core

In reply to Tim Orling

Use PEP-517 build-backend instead of setuptools3.

---
 meta-python/recipes-devtools/python/python3-pkgconfig_1.5.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-pkgconfig_1.5.5.bb +1 -1
index 2d68a78e37..c5a74796a0 100644
@@ -10,7 +10,7 @@ RDEPENDS:${PN} = "pkgconfig \
                  ${PYTHON_PN}-shell \
                  "
 
-inherit pypi setuptools3
+inherit pypi poetry_core
 
 BBCLASSEXTEND = "native"
 
Signature · 1 line
2.30.2
#4 lore raw

Re: [oe] [meta-python][PATCH 4/9] python3-pkconfig: inherit poetry_core

typo in subject line but I fixed it in master-next

Quoted 33 lines · Tim Orling

Use PEP-517 build-backend instead of setuptools3.

---
 meta-python/recipes-devtools/python/python3-pkgconfig_1.5.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-pkgconfig_1.5.5.bb +1 -2
index 2d68a78e37..c5a74796a0 100644
@@ -10,7 +10,7 @@ RDEPENDS:${PN} = "pkgconfig \
                  ${PYTHON_PN}-shell \
                  "
 
-inherit pypi setuptools3
+inherit pypi poetry_core
 
 BBCLASSEXTEND = "native"
 
--

2.30.2

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

author
#5 lore raw

Re: [oe] [meta-python][PATCH 4/9] python3-pkconfig: inherit poetry_core

Quoted 2 lines · Khem Raj

typo in subject line but I fixed it in master-next

Grr. I think I need to see the eye doctor again

Quoted 40 lines · Tim Orling

Review

Quoted 9 lines

Use PEP-517 build-backend instead of setuptools3.

---
 meta-python/recipes-devtools/python/python3-pkgconfig_1.5.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

python3-pkgconfig_1.5.5.bb b/meta-python/recipes-devtools/python/ python3-pkgconfig_1.5.5.bb

Quoted 16 lines

index 2d68a78e37..c5a74796a0 100644

meta-python/recipes-devtools/python/python3-pkgconfig_1.5.5.bb +1 -2
@@ -10,7 +10,7 @@ RDEPENDS:${PN} = "pkgconfig \
                  ${PYTHON_PN}-shell \
                  "
 
-inherit pypi setuptools3
+inherit pypi poetry_core
 
 BBCLASSEXTEND = "native"
 
--

2.30.2

Quoted 3 lines

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

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

Quoted 3 lines

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

[email protected]]

Quoted 2 lines

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

author
#6 lore raw

PATCH 5/9 python3-iso8601: inherit poetry_core

In reply to Tim Orling

Use PEP-517 build-backend instead of setuptools3.

---
 meta-python/recipes-devtools/python/python3-iso8601_1.0.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-iso8601_1.0.2.bb +1 -1
index 474c2a8140..aabc47d69b 100644
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=b05625f2336fa024e8d57e65c6595844"
 
 SRC_URI[sha256sum] = "27f503220e6845d9db954fb212b95b0362d8b7e6c1b2326a87061c3de93594b1"
 
-inherit pypi setuptools3
+inherit pypi poetry_core
 
 RDEPENDS:${PN} += "\
     ${PYTHON_PN}-datetime \
Signature · 1 line
2.30.2
author
#7 lore raw

PATCH 6/9 python3-rsa: inherit poetry_core

In reply to Tim Orling

Use PEP-517 build-backend instead of setuptools3.

---
 meta-python/recipes-devtools/python/python3-rsa_4.8.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-rsa_4.8.bb +1 -1
index d0a18f92e5..7e572a933d 100644
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c403f6882d4f97a9cd927df987d55634"
 
 SRC_URI[sha256sum] = "5c6bd9dc7a543b7fe4304a631f8a8a3b674e2bbfc49c2ae96200cdbe55df6b17"
 
-inherit pypi setuptools3 update-alternatives
+inherit pypi poetry_core update-alternatives
 
 ALTERNATIVE:${PN} = "\
     pyrsa-decrypt \
Signature · 1 line
2.30.2
author
#8 lore raw

PATCH 7/9 python3-isort: inherit poetry_core

In reply to Tim Orling

Use PEP-517 build-backend instead of setuptools3.

---
 meta-python/recipes-devtools/python/python3-isort_5.10.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-isort_5.10.1.bb +1 -1
index 5cb41c5fcf..6a6d5ed130 100644
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=6;endline=6;md5=8227180126797a0148
 
 SRC_URI[sha256sum] = "e8443a5e7a020e9d7f97f1d7d9cd17c88bcb3bc7e218bf9cf5095fe550be2951"
 
-inherit pypi setuptools3
+inherit pypi poetry_core
 
 RDEPENDS:${PN} += "\
     ${PYTHON_PN}-datetime \
Signature · 1 line
2.30.2
author
#9 lore raw

PATCH 8/9 python3-pymisp: inherit poetry_core

In reply to Tim Orling

* Use PEP-517 build-backend instead of setuptools3.
* Also set PIP_INSTALL_PACKAGE = "pymisp"

---
 meta-python/recipes-devtools/python/python3-pymisp_2.4.152.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-pymisp_2.4.152.bb +3 -1
index 254330bf5d..18f5f9cd90 100644
@@ -7,7 +7,9 @@ SRC_URI = "git://github.com/MISP/PyMISP.git;protocol=https;branch=main"
 SRCREV = "d991e53f9a9641f454e116e83d2913edf405a53f"
 S = "${WORKDIR}/git"
 
-inherit setuptools3
+inherit poetry_core
+
+PIP_INSTALL_PACKAGE = "pymisp"
 
 RDEPENDS:${PN} += " \
     ${PYTHON_PN}-dateutil \
Signature · 1 line
2.30.2
author
#10 lore raw

PATCH 9/9 python3-aiofiles: inherit poetry_core

In reply to Tim Orling

Use PEP-517 build-backend instead of setuptools3.

---
 meta-python/recipes-devtools/python/python3-aiofiles_0.8.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-aiofiles_0.8.0.bb +1 -1
index f7a75ec1ef..d3bca2c213 100644
@@ -8,7 +8,7 @@ SRC_URI[sha256sum] = "8334f23235248a3b2e83b2c3a78a22674f39969b96397126cc93664d9a
 
 PYPI_PACKAGE = "aiofiles"
 
-inherit pypi setuptools3
+inherit pypi poetry_core
 
 RDEPENDS:${PN} = "\
     ${PYTHON_PN}-asyncio \
Signature · 1 line
2.30.2
#11 lore raw
In reply to Tim Orling

with latest core/master-next it needs to set PIP_INSTALL_PACKAGE, i have added a patch to do so.

Quoted 85 lines · Tim Orling

A PEP 517 build backend implementation developed for Poetry. This project is intended to be a light weight, fully compliant, self-contained package allowing PEP 517 compatible build frontends to build Poetry managed projects.

---
 .../python/python3-poetry-core_1.0.8.bb       | 56 +++++++++++++++++++
 1 file changed, 56 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-poetry-core_1.0.8.bb
meta-python/recipes-devtools/python/python3-poetry-core_1.0.8.bb new file +56 -1
new file mode 100644
index 0000000000..0941af9ff9
@@ -0,0 +1,56 @@
+SUMMARY = "Poetry PEP 517 Build Backend"
+DESCRIPTION = "Poetry PEP 517 Build Backend"
+HOMEPAGE = "https://github.com/python-poetry/poetry-core"
+BUGTRACKER = "https://github.com/python-poetry/poetry-core"
+CHANGELOG = "https://github.com/python-poetry/poetry-core/blob/master/CHANGELOG.md"
+
+LICENSE = "Apache-2.0 & BSD-2-Clause & MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=104d5c3c653aeededf4076773aa4c236 \
+                    file://poetry/core/_vendor/attrs.LICENSE;md5=75bb9823a2778b5a2bd9b793fac93ea2 \
+                    file://poetry/core/_vendor/jsonschema/COPYING;md5=6554d3a51d7cb0b611891317f3c69057 \
+                    file://poetry/core/_vendor/jsonschema/LICENSE;md5=2ecb81765361195731a6f72a89e449fd \
+                    file://poetry/core/_vendor/lark-parser.LICENSE;md5=b37b83a9cf129d92ee65aaa71c01ce72 \
+                    file://poetry/core/_vendor/packaging/LICENSE;md5=7a6e56c9d54ecd731ab31c52de7942f0 \
+                    file://poetry/core/_vendor/packaging/LICENSE.APACHE;md5=29256199be2a609aac596980ffc11996 \
+                    file://poetry/core/_vendor/packaging/LICENSE.BSD;md5=f405810d173a1618433827928768bcd2 \
+                    file://poetry/core/_vendor/pyparsing.LICENSE;md5=fb46329938e6bc829b256e37d5c1e31a \
+                    file://poetry/core/_vendor/pyrsistent/LICENSE.mit;md5=1211a1ac6eac40020d0f99c39b4e4270 \
+                    file://poetry/core/_vendor/six.LICENSE;md5=6a574656da93d9ef05431b45907e35b6 \
+                    file://poetry/core/_vendor/tomlkit/LICENSE;md5=be329e5ef9c9fe86738c9afe6ef3c11c \
+                    "
+
+SRC_URI[sha256sum] = "951fc7c1f8d710a94cb49019ee3742125039fc659675912ea614ac2aa405b118"
+
+inherit pip_install_wheel python3native python3-dir pypi setuptools3-base
+
+RDEPENDS:${PN}:append:class-target = "\
+    python3-compression \
+    python3-core \
+    python3-crypt \
+    python3-io \
+    python3-json \
+    python3-logging \
+    python3-netclient \
+    python3-pathlib2 \
+    python3-pprint \
+    python3-shell \
+"
+
+RDEPENDS:${PN} += "\
+    python3-pip \
+    python3-six \
+"
+
+do_configure () {
+    mkdir -p ${B}/dist
+    cat > ${B}/build-it.py << EOF
+from poetry.core.masonry import api
+api.build_wheel('${B}/dist')
+EOF
+}
+
+do_compile () {
+    ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${B}/build-it.py
+}
+
+BBCLASSEXTEND = "native nativesdk"
--

2.30.2

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