summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-08-10 23:03:53 -0700
committerKhem Raj <raj.khem@gmail.com>2024-08-10 23:06:23 -0700
commitea9fd34fd1341cb9f94a4857fc12bc11a4703131 (patch)
treea5d659241b7ddc50b0141b08a3b0d5f9a823a8c8 /meta-python/recipes-devtools
parentd5807c2d93858c2687959cd14a57c507a6ad8a1e (diff)
downloadmeta-openembedded-ea9fd34fd1341cb9f94a4857fc12bc11a4703131.tar.gz
python3-daemon: Fix build with PEP-575 build backend
Apply required backports Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools')
-rw-r--r--meta-python/recipes-devtools/python/python3-daemon/0001-Use-version-from-packaging-module-instead-of-setupto.patch44
-rw-r--r--meta-python/recipes-devtools/python/python3-daemon_3.0.1.bb3
2 files changed, 46 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python3-daemon/0001-Use-version-from-packaging-module-instead-of-setupto.patch b/meta-python/recipes-devtools/python/python3-daemon/0001-Use-version-from-packaging-module-instead-of-setupto.patch
new file mode 100644
index 000000000..316f7d961
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-daemon/0001-Use-version-from-packaging-module-instead-of-setupto.patch
@@ -0,0 +1,44 @@
1From b7418ab4a3232431373bf0680c6b74fef06910de Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 10 Aug 2024 22:44:08 -0700
4Subject: [PATCH] Use version from packaging module instead of setuptools extern
5
6Fixes build problems when using PEP-575 build backend
7
8
9Drop the patch on upgrading to >= 3.0.2
10
11Upstream-Status: Backport [https://pagure.io/fork/khemraj/python-daemon/c/3bbc46967d35cd7e05677018bdc9d552efaeea3e?branch=main]
12
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 test_version.py | 2 +-
16 version.py | 2 +-
17 2 files changed, 2 insertions(+), 2 deletions(-)
18
19diff --git a/test_version.py b/test_version.py
20index c43cd36..d0a124d 100644
21--- a/test_version.py
22+++ b/test_version.py
23@@ -23,7 +23,7 @@ import docutils.writers
24 import setuptools
25 import setuptools.command
26 import setuptools.dist
27-from setuptools.extern.packaging.version import InvalidVersion
28+from packaging.version import InvalidVersion
29 import testscenarios
30 import testtools
31
32diff --git a/version.py b/version.py
33index 20d3ef3..fbdc462 100644
34--- a/version.py
35+++ b/version.py
36@@ -36,7 +36,7 @@ import setuptools.command.build
37 import setuptools.command.build_py
38 import setuptools.command.egg_info
39 import setuptools.dist
40-import setuptools.extern.packaging.version
41+import packaging.version
42
43
44 def ensure_class_bases_begin_with(namespace, class_name, base_class):
diff --git a/meta-python/recipes-devtools/python/python3-daemon_3.0.1.bb b/meta-python/recipes-devtools/python/python3-daemon_3.0.1.bb
index 715d3bf12..cb85262b4 100644
--- a/meta-python/recipes-devtools/python/python3-daemon_3.0.1.bb
+++ b/meta-python/recipes-devtools/python/python3-daemon_3.0.1.bb
@@ -11,8 +11,9 @@ RDEPENDS:${PN} = "python3-docutils \
11LICENSE = "Apache-2.0 & GPL-3.0-only" 11LICENSE = "Apache-2.0 & GPL-3.0-only"
12LIC_FILES_CHKSUM = "file://README;md5=a3a94c615dc969a70525f1eebbacf235" 12LIC_FILES_CHKSUM = "file://README;md5=a3a94c615dc969a70525f1eebbacf235"
13 13
14inherit pypi setuptools3 14inherit pypi python_setuptools_build_meta
15 15
16SRC_URI += "file://0001-Use-version-from-packaging-module-instead-of-setupto.patch"
16SRC_URI[sha256sum] = "6c57452372f7eaff40934a1c03ad1826bf5e793558e87fef49131e6464b4dae5" 17SRC_URI[sha256sum] = "6c57452372f7eaff40934a1c03ad1826bf5e793558e87fef49131e6464b4dae5"
17 18
18PYPI_PACKAGE = "python-daemon" 19PYPI_PACKAGE = "python-daemon"