Backport a patch that reformats pyproject file to the taste of poetry 2

Signed-off-by: Khem Raj <[email protected]>
---
 .../python/python3-pyrad/208.patch            | 51 +++++++++++++++++++
 .../python/python3-pyrad_2.4.bb               |  4 +-
 2 files changed, 54 insertions(+), 1 deletion(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-pyrad/208.patch

diff --git a/meta-python/recipes-devtools/python/python3-pyrad/208.patch 
b/meta-python/recipes-devtools/python/python3-pyrad/208.patch
new file mode 100644
index 0000000000..b08f183583
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pyrad/208.patch
@@ -0,0 +1,51 @@
+From d17438da2008f48aa13cc95a626c990bf645799a Mon Sep 17 00:00:00 2001
+From: Luca Barbieri <[email protected]>
+Date: Wed, 8 Jan 2025 10:35:22 +0100
+Subject: [PATCH 1/2] Fix pyproject.toml format
+
+Fix pyproject format to correctly build with poetry-core 2.0.0
+Upstream-Status: Submitted [https://github.com/pyradius/pyrad/pull/208]
+Signed-off-by: Khem Raj <[email protected]>
+---
+ pyproject.toml | 28 ++++++++++++++--------------
+ 1 file changed, 14 insertions(+), 14 deletions(-)
+
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -2,16 +2,16 @@
+ requires = ["poetry-core>=1.0.0"]
+ build-backend = "poetry.core.masonry.api"
+ 
+-[tool.poetry]
++[project]
+ name = "pyrad"
+ version= "2.4"
+ readme = "README.rst"
+ license = "BSD-3-Clause"
+ description="RADIUS tools"
+ authors = [
+-  "Istvan Ruzman <[email protected]>",
+-  "Christian Giese <[email protected]>",
+-]
++  { name = "Istvan Ruzman", email = "[email protected]" },
++  { name = "Christian Giese", email = "[email protected]" },
++ ]
+ keywords = ["AAA", "accounting", "authentication", "authorization", "RADIUS"]
+ classifiers = [
+     "Development Status :: 6 - Mature",
+@@ -28,7 +28,7 @@ include = [
+   "example/*"
+ ]
+ 
+-[tool.poetry.urls]
++[project.urls]
+ repository = "https://github.com/pyradius/pyrad";
+ 
+ [tool.poetry.dependencies]
+@@ -36,5 +36,5 @@ python = "^2.7 || ^3.6"
+ six = "^1.15.0"
+ netaddr = "^0.8"
+ 
+-[tool.poetry.dev-dependencies]
++[tool.poetry.group.dev.dependencies]
+ nose = "^0.10.0b1"
diff --git a/meta-python/recipes-devtools/python/python3-pyrad_2.4.bb 
b/meta-python/recipes-devtools/python/python3-pyrad_2.4.bb
index 801233a026..fbe7a0924a 100644
--- a/meta-python/recipes-devtools/python/python3-pyrad_2.4.bb
+++ b/meta-python/recipes-devtools/python/python3-pyrad_2.4.bb
@@ -6,7 +6,9 @@ LIC_FILES_CHKSUM = 
"file://PKG-INFO;beginline=8;endline=8;md5=e910b35b0ef4e1f665
 PYPI_PACKAGE = "pyrad"
 SRC_URI[sha256sum] = 
"057de4b7e89d8da57ba782c1bde45c63ebee720ae2c0b0a69beaff15c47e30d9"
 
-SRC_URI += "file://use-poetry-core.patch"
+SRC_URI += "file://use-poetry-core.patch \
+            file://208.patch \
+            "
 
 inherit pypi python_poetry_core
 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#114762): 
https://lists.openembedded.org/g/openembedded-devel/message/114762
Mute This Topic: https://lists.openembedded.org/mt/110526839/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to