commit:     0cfdf37bcc0fd7c01379d6c83976c6ea8ef39439
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jul  9 19:09:36 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jul  9 19:29:23 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cfdf37b

dev-python/kombu: Enable py3.13

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/kombu/files/kombu-5.3.7-py313.patch | 28 ++++++++++++++++++++++++++
 dev-python/kombu/kombu-5.3.7.ebuild            |  7 ++++++-
 2 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/dev-python/kombu/files/kombu-5.3.7-py313.patch 
b/dev-python/kombu/files/kombu-5.3.7-py313.patch
new file mode 100644
index 000000000000..7a359db0e022
--- /dev/null
+++ b/dev-python/kombu/files/kombu-5.3.7-py313.patch
@@ -0,0 +1,28 @@
+From d26e891025f55ecbdc577fcbd4bc1f19c9e020d9 Mon Sep 17 00:00:00 2001
+From: Roman Inflianskas <rom...@pm.me>
+Date: Fri, 5 Jul 2024 21:44:58 +0300
+Subject: [PATCH] Add support for Python 3.13
+
+Fixes https://github.com/celery/kombu/issues/2051.
+---
+ .github/workflows/ci.yaml              | 16 ++++++++++++++--
+ kombu/transport/redis.py               |  2 +-
+ requirements/extras/confluentkafka.txt |  2 +-
+ requirements/extras/zstd.txt           |  2 +-
+ t/unit/transport/test_redis.py         | 15 ++++++++++-----
+ tox.ini                                | 18 ++++++++++--------
+ 6 files changed, 37 insertions(+), 18 deletions(-)
+
+diff --git a/kombu/transport/redis.py b/kombu/transport/redis.py
+index 515d6f7d7..29909dbe5 100644
+--- a/kombu/transport/redis.py
++++ b/kombu/transport/redis.py
+@@ -89,7 +89,7 @@
+ 
+ 
+ logger = get_logger('kombu.transport.redis')
+-crit, warn = logger.critical, logger.warn
++crit, warn = logger.critical, logger.warning
+ 
+ DEFAULT_PORT = 6379
+ DEFAULT_DB = 0

diff --git a/dev-python/kombu/kombu-5.3.7.ebuild 
b/dev-python/kombu/kombu-5.3.7.ebuild
index fc9d24aa3243..8d4a9966b9e7 100644
--- a/dev-python/kombu/kombu-5.3.7.ebuild
+++ b/dev-python/kombu/kombu-5.3.7.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..13} )
 
 inherit distutils-r1 optfeature pypi
 
@@ -45,6 +45,11 @@ distutils_enable_tests pytest
 distutils_enable_sphinx docs \
        dev-python/sphinx-celery
 
+PATCHES=(
+       # https://github.com/celery/kombu/pull/2052
+       "${FILESDIR}/${P}-py313.patch"
+)
+
 python_test() {
        local EPYTEST_DESELECT=(
                # TODO

Reply via email to