diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-daemon/0001-Use-version-from-packaging-module-instead-of-setupto.patch')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-daemon/0001-Use-version-from-packaging-module-instead-of-setupto.patch | 44 |
1 files changed, 44 insertions, 0 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): | ||