diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-08-10 23:03:53 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-08-10 23:06:23 -0700 |
commit | ea9fd34fd1341cb9f94a4857fc12bc11a4703131 (patch) | |
tree | a5d659241b7ddc50b0141b08a3b0d5f9a823a8c8 /meta-python/recipes-devtools | |
parent | d5807c2d93858c2687959cd14a57c507a6ad8a1e (diff) | |
download | meta-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.patch | 44 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-daemon_3.0.1.bb | 3 |
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 @@ | |||
1 | From b7418ab4a3232431373bf0680c6b74fef06910de Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 10 Aug 2024 22:44:08 -0700 | ||
4 | Subject: [PATCH] Use version from packaging module instead of setuptools extern | ||
5 | |||
6 | Fixes build problems when using PEP-575 build backend | ||
7 | |||
8 | |||
9 | Drop the patch on upgrading to >= 3.0.2 | ||
10 | |||
11 | Upstream-Status: Backport [https://pagure.io/fork/khemraj/python-daemon/c/3bbc46967d35cd7e05677018bdc9d552efaeea3e?branch=main] | ||
12 | |||
13 | Signed-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 | |||
19 | diff --git a/test_version.py b/test_version.py | ||
20 | index 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 | |||
32 | diff --git a/version.py b/version.py | ||
33 | index 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 \ | |||
11 | LICENSE = "Apache-2.0 & GPL-3.0-only" | 11 | LICENSE = "Apache-2.0 & GPL-3.0-only" |
12 | LIC_FILES_CHKSUM = "file://README;md5=a3a94c615dc969a70525f1eebbacf235" | 12 | LIC_FILES_CHKSUM = "file://README;md5=a3a94c615dc969a70525f1eebbacf235" |
13 | 13 | ||
14 | inherit pypi setuptools3 | 14 | inherit pypi python_setuptools_build_meta |
15 | 15 | ||
16 | SRC_URI += "file://0001-Use-version-from-packaging-module-instead-of-setupto.patch" | ||
16 | SRC_URI[sha256sum] = "6c57452372f7eaff40934a1c03ad1826bf5e793558e87fef49131e6464b4dae5" | 17 | SRC_URI[sha256sum] = "6c57452372f7eaff40934a1c03ad1826bf5e793558e87fef49131e6464b4dae5" |
17 | 18 | ||
18 | PYPI_PACKAGE = "python-daemon" | 19 | PYPI_PACKAGE = "python-daemon" |