* [meta-python][PATCH 1/2] python3-colorclass: Switch to PEP-517 build backend
@ 2025-04-12 4:17 Khem Raj
2025-04-12 4:17 ` [meta-python][PATCH 2/2] python3-robotframework-seriallibrary: Switch to PEP-517 poetry " Khem Raj
0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2025-04-12 4:17 UTC (permalink / raw)
To: openembedded-devel; +Cc: Khem Raj
Use poetry build system
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
.../0001-pyproject.toml-Use-poetry-core.patch | 30 +++++++++++++++++++
.../python/python3-colorclass_2.2.2.bb | 3 +-
2 files changed, 32 insertions(+), 1 deletion(-)
create mode 100644 meta-python/recipes-devtools/python/python3-colorclass/0001-pyproject.toml-Use-poetry-core.patch
diff --git a/meta-python/recipes-devtools/python/python3-colorclass/0001-pyproject.toml-Use-poetry-core.patch b/meta-python/recipes-devtools/python/python3-colorclass/0001-pyproject.toml-Use-poetry-core.patch
new file mode 100644
index 0000000000..d3e29d0a15
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-colorclass/0001-pyproject.toml-Use-poetry-core.patch
@@ -0,0 +1,30 @@
+From 32a8a6bff42dfa493ae3c4a722109f2d3a32108e Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Fri, 11 Apr 2025 19:14:16 -0700
+Subject: [PATCH] pyproject.toml: Use poetry-core
+
+Needed for using latest poetry infrastructure
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ pyproject.toml | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 65eaec9..50d26cc 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -58,9 +58,9 @@ documentation = "https://github.com/matthewdeanmartin/colorclass"
+ # per vermin's estimation
+ python = ">=2.6 || >=3.0"
+
+-[tool.poetry.dev-dependencies]
++[tool.poetry.group.dev.dependencies]
+ pytest = "==6.0.1"
+
+ [build-system]
+-requires = ["poetry>=0.12"]
+-build-backend = "poetry.masonry.api"
++requires = ["poetry-core"]
++build-backend = "poetry.core.masonry.api"
diff --git a/meta-python/recipes-devtools/python/python3-colorclass_2.2.2.bb b/meta-python/recipes-devtools/python/python3-colorclass_2.2.2.bb
index e605b459ce..498682cd6d 100644
--- a/meta-python/recipes-devtools/python/python3-colorclass_2.2.2.bb
+++ b/meta-python/recipes-devtools/python/python3-colorclass_2.2.2.bb
@@ -4,8 +4,9 @@ LICENSE = "MIT"
SECTION = "devel/python"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1b2a533055839e54558a727657c1c73e"
-inherit pypi setuptools3
+inherit pypi python_poetry_core
+SRC_URI += "file://0001-pyproject.toml-Use-poetry-core.patch"
SRC_URI[sha256sum] = "6d4fe287766166a98ca7bc6f6312daf04a0481b1eda43e7173484051c0ab4366"
PYPI_PACKAGE = "colorclass"
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [meta-python][PATCH 2/2] python3-robotframework-seriallibrary: Switch to PEP-517 poetry build backend
2025-04-12 4:17 [meta-python][PATCH 1/2] python3-colorclass: Switch to PEP-517 build backend Khem Raj
@ 2025-04-12 4:17 ` Khem Raj
0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2025-04-12 4:17 UTC (permalink / raw)
To: openembedded-devel; +Cc: Khem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
...roject.toml-Replace-install_requires.patch | 31 +++++++++++++++++++
...hon3-robotframework-seriallibrary_0.4.3.bb | 3 +-
2 files changed, 33 insertions(+), 1 deletion(-)
create mode 100644 meta-python/recipes-devtools/python/python3-robotframework-seriallibrary/0001-pyproject.toml-Replace-install_requires.patch
diff --git a/meta-python/recipes-devtools/python/python3-robotframework-seriallibrary/0001-pyproject.toml-Replace-install_requires.patch b/meta-python/recipes-devtools/python/python3-robotframework-seriallibrary/0001-pyproject.toml-Replace-install_requires.patch
new file mode 100644
index 0000000000..b4a58ca607
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-robotframework-seriallibrary/0001-pyproject.toml-Replace-install_requires.patch
@@ -0,0 +1,31 @@
+From 29ca728481a275cc46fdf4f32b3aac5706aa0904 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Fri, 11 Apr 2025 21:03:43 -0700
+Subject: [PATCH] pyproject.toml: Replace install_requires
+
+install_requires is used with setuptools, with poetry it needs
+to use poetry.dependencies
+
+Fixes
+poetry.core.constraints.version.exceptions.ParseConstraintError: Could not parse version constraint: robotframework
+
+Upstream-Status: Submitted [https://github.com/whosaysni/robotframework-seriallibrary/pull/25]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ pyproject.toml | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index be9f51a..0ade7ee 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -24,7 +24,5 @@ packages = [
+ ]
+
+ [tool.poetry.dependencies]
+-install_requires=["robotframework", "pyserial"]
+-
+-
+-
++robotframework = ">=4.0"
++pyserial = ">=3.0"
diff --git a/meta-python/recipes-devtools/python/python3-robotframework-seriallibrary_0.4.3.bb b/meta-python/recipes-devtools/python/python3-robotframework-seriallibrary_0.4.3.bb
index c48c3e2cec..7f282c0fbe 100644
--- a/meta-python/recipes-devtools/python/python3-robotframework-seriallibrary_0.4.3.bb
+++ b/meta-python/recipes-devtools/python/python3-robotframework-seriallibrary_0.4.3.bb
@@ -3,11 +3,12 @@ HOMEPAGE = "https://github.com/whosaysni/robotframework-seriallibrary"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ad407cda031a6aaf51a1fecaaa6e7d29"
+SRC_URI += "file://0001-pyproject.toml-Replace-install_requires.patch"
SRC_URI[sha256sum] = "f20befe5c1106dd8ddca9f60a2f18bf5ec7d5f06f6f09a03fa66bae54777e6bb"
PYPI_PACKAGE = "robotframework-seriallibrary"
-inherit pypi setuptools3
+inherit pypi python_poetry_core
RDEPENDS:${PN} += " \
python3-pyserial \
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-12 4:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-12 4:17 [meta-python][PATCH 1/2] python3-colorclass: Switch to PEP-517 build backend Khem Raj
2025-04-12 4:17 ` [meta-python][PATCH 2/2] python3-robotframework-seriallibrary: Switch to PEP-517 poetry " Khem Raj
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.