summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-python/recipes-devtools/python/python3-robotframework-seriallibrary/0001-pyproject.toml-Replace-install_requires.patch31
-rw-r--r--meta-python/recipes-devtools/python/python3-robotframework-seriallibrary_0.4.3.bb3
2 files changed, 33 insertions, 1 deletions
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 @@
1From 29ca728481a275cc46fdf4f32b3aac5706aa0904 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 11 Apr 2025 21:03:43 -0700
4Subject: [PATCH] pyproject.toml: Replace install_requires
5
6install_requires is used with setuptools, with poetry it needs
7to use poetry.dependencies
8
9Fixes
10poetry.core.constraints.version.exceptions.ParseConstraintError: Could not parse version constraint: robotframework
11
12Upstream-Status: Submitted [https://github.com/whosaysni/robotframework-seriallibrary/pull/25]
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 pyproject.toml | 6 ++----
16 1 file changed, 2 insertions(+), 4 deletions(-)
17
18diff --git a/pyproject.toml b/pyproject.toml
19index be9f51a..0ade7ee 100644
20--- a/pyproject.toml
21+++ b/pyproject.toml
22@@ -24,7 +24,5 @@ packages = [
23 ]
24
25 [tool.poetry.dependencies]
26-install_requires=["robotframework", "pyserial"]
27-
28-
29-
30+robotframework = ">=4.0"
31+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"
3LICENSE = "Apache-2.0" 3LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=ad407cda031a6aaf51a1fecaaa6e7d29" 4LIC_FILES_CHKSUM = "file://LICENSE;md5=ad407cda031a6aaf51a1fecaaa6e7d29"
5 5
6SRC_URI += "file://0001-pyproject.toml-Replace-install_requires.patch"
6SRC_URI[sha256sum] = "f20befe5c1106dd8ddca9f60a2f18bf5ec7d5f06f6f09a03fa66bae54777e6bb" 7SRC_URI[sha256sum] = "f20befe5c1106dd8ddca9f60a2f18bf5ec7d5f06f6f09a03fa66bae54777e6bb"
7 8
8PYPI_PACKAGE = "robotframework-seriallibrary" 9PYPI_PACKAGE = "robotframework-seriallibrary"
9 10
10inherit pypi setuptools3 11inherit pypi python_poetry_core
11 12
12RDEPENDS:${PN} += " \ 13RDEPENDS:${PN} += " \
13 python3-pyserial \ 14 python3-pyserial \