summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2025-01-09 15:01:31 -0800
committerKhem Raj <raj.khem@gmail.com>2025-01-10 09:33:52 -0800
commitf6b497721b4be63db68b838b19998fce607b5042 (patch)
treec6bb5f9031314810131d602c4a4e4fa910edc431 /meta-python
parenta32b953c14988d14913f8878e192376815a13813 (diff)
downloadmeta-openembedded-f6b497721b4be63db68b838b19998fce607b5042.tar.gz
python3-pyrad: Fix build with poetry 2.x
Backport a patch that reformats pyproject file to the taste of poetry 2 Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/recipes-devtools/python/python3-pyrad/208.patch51
-rw-r--r--meta-python/recipes-devtools/python/python3-pyrad_2.4.bb4
2 files changed, 54 insertions, 1 deletions
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 @@
1From d17438da2008f48aa13cc95a626c990bf645799a Mon Sep 17 00:00:00 2001
2From: Luca Barbieri <lucabarb@gmail.com>
3Date: Wed, 8 Jan 2025 10:35:22 +0100
4Subject: [PATCH 1/2] Fix pyproject.toml format
5
6Fix pyproject format to correctly build with poetry-core 2.0.0
7Upstream-Status: Submitted [https://github.com/pyradius/pyrad/pull/208]
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 pyproject.toml | 28 ++++++++++++++--------------
11 1 file changed, 14 insertions(+), 14 deletions(-)
12
13--- a/pyproject.toml
14+++ b/pyproject.toml
15@@ -2,16 +2,16 @@
16 requires = ["poetry-core>=1.0.0"]
17 build-backend = "poetry.core.masonry.api"
18
19-[tool.poetry]
20+[project]
21 name = "pyrad"
22 version= "2.4"
23 readme = "README.rst"
24 license = "BSD-3-Clause"
25 description="RADIUS tools"
26 authors = [
27- "Istvan Ruzman <istvan@ruzman.eu>",
28- "Christian Giese <developer@gicnet.de>",
29-]
30+ { name = "Istvan Ruzman", email = "istvan@ruzman.eu" },
31+ { name = "Christian Giese", email = "developer@gicnet.de" },
32+ ]
33 keywords = ["AAA", "accounting", "authentication", "authorization", "RADIUS"]
34 classifiers = [
35 "Development Status :: 6 - Mature",
36@@ -28,7 +28,7 @@ include = [
37 "example/*"
38 ]
39
40-[tool.poetry.urls]
41+[project.urls]
42 repository = "https://github.com/pyradius/pyrad"
43
44 [tool.poetry.dependencies]
45@@ -36,5 +36,5 @@ python = "^2.7 || ^3.6"
46 six = "^1.15.0"
47 netaddr = "^0.8"
48
49-[tool.poetry.dev-dependencies]
50+[tool.poetry.group.dev.dependencies]
51 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
6PYPI_PACKAGE = "pyrad" 6PYPI_PACKAGE = "pyrad"
7SRC_URI[sha256sum] = "057de4b7e89d8da57ba782c1bde45c63ebee720ae2c0b0a69beaff15c47e30d9" 7SRC_URI[sha256sum] = "057de4b7e89d8da57ba782c1bde45c63ebee720ae2c0b0a69beaff15c47e30d9"
8 8
9SRC_URI += "file://use-poetry-core.patch" 9SRC_URI += "file://use-poetry-core.patch \
10 file://208.patch \
11 "
10 12
11inherit pypi python_poetry_core 13inherit pypi python_poetry_core
12 14