diff mbox series

[meta-python,4/5] python3-daemon: Upgrade 3.0.1 -> 3.1.2

Message ID 20250213090430.3750793-4-leon.anavi@konsulko.com
State Accepted
Headers show
Series [meta-python,1/5] python3-isort: Upgrade 5.13.2 -> 6.0.0 | expand

Commit Message

Leon Anavi Feb. 13, 2025, 9:04 a.m. UTC
Upgrade to release 3.1.2:

- In wheel, distribute only the Python packages that should be
  installed.
- Migrate project code base from "flat layout" to "src layout"

License-Update: Use COPYING file

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
 ...-packaging-module-instead-of-setupto.patch | 44 -------------------
 ...aemon_3.0.1.bb => python3-daemon_3.1.2.bb} |  9 ++--
 2 files changed, 4 insertions(+), 49 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-daemon/0001-Use-version-from-packaging-module-instead-of-setupto.patch
 rename meta-python/recipes-devtools/python/{python3-daemon_3.0.1.bb => python3-daemon_3.1.2.bb} (52%)
diff mbox series

Patch

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
deleted file mode 100644
index 316f7d9618..0000000000
--- a/meta-python/recipes-devtools/python/python3-daemon/0001-Use-version-from-packaging-module-instead-of-setupto.patch
+++ /dev/null
@@ -1,44 +0,0 @@ 
-From b7418ab4a3232431373bf0680c6b74fef06910de Mon Sep 17 00:00:00 2001
-From: Khem Raj <raj.khem@gmail.com>
-Date: Sat, 10 Aug 2024 22:44:08 -0700
-Subject: [PATCH] Use version from packaging module instead of setuptools extern
-
-Fixes build problems when using PEP-575 build backend
-
-
-Drop the patch on upgrading to >= 3.0.2
-
-Upstream-Status: Backport [https://pagure.io/fork/khemraj/python-daemon/c/3bbc46967d35cd7e05677018bdc9d552efaeea3e?branch=main]
-
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
----
- test_version.py | 2 +-
- version.py      | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/test_version.py b/test_version.py
-index c43cd36..d0a124d 100644
---- a/test_version.py
-+++ b/test_version.py
-@@ -23,7 +23,7 @@ import docutils.writers
- import setuptools
- import setuptools.command
- import setuptools.dist
--from setuptools.extern.packaging.version import InvalidVersion
-+from packaging.version import InvalidVersion
- import testscenarios
- import testtools
- 
-diff --git a/version.py b/version.py
-index 20d3ef3..fbdc462 100644
---- a/version.py
-+++ b/version.py
-@@ -36,7 +36,7 @@ import setuptools.command.build
- import setuptools.command.build_py
- import setuptools.command.egg_info
- import setuptools.dist
--import setuptools.extern.packaging.version
-+import packaging.version
- 
- 
- 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.1.2.bb
similarity index 52%
rename from meta-python/recipes-devtools/python/python3-daemon_3.0.1.bb
rename to meta-python/recipes-devtools/python/python3-daemon_3.1.2.bb
index cb85262b41..8cf5697d10 100644
--- a/meta-python/recipes-devtools/python/python3-daemon_3.0.1.bb
+++ b/meta-python/recipes-devtools/python/python3-daemon_3.1.2.bb
@@ -2,18 +2,17 @@  DESCRIPTION = "Library to implement a well-behaved Unix daemon process"
 HOMEPAGE = "https://pagure.io/python-daemon/"
 SECTION = "devel/python"
 
-DEPENDS += "python3-docutils-native"
+DEPENDS += "python3-docutils-native python3-changelog-chug-native"
 RDEPENDS:${PN} = "python3-docutils \
                   python3-lockfile (>= 0.10) \
                   python3-resource \
 "
 
 LICENSE = "Apache-2.0 & GPL-3.0-only"
-LIC_FILES_CHKSUM = "file://README;md5=a3a94c615dc969a70525f1eebbacf235"
+LIC_FILES_CHKSUM = "file://COPYING;md5=55f76b1b31719284caf4bc3ecbb70d6f"
 
 inherit pypi python_setuptools_build_meta
 
-SRC_URI += "file://0001-Use-version-from-packaging-module-instead-of-setupto.patch"
-SRC_URI[sha256sum] = "6c57452372f7eaff40934a1c03ad1826bf5e793558e87fef49131e6464b4dae5"
+SRC_URI[sha256sum] = "f7b04335adc473de877f5117e26d5f1142f4c9f7cd765408f0877757be5afbf4"
 
-PYPI_PACKAGE = "python-daemon"
+PYPI_PACKAGE = "python_daemon"