summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-05-25 10:30:32 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2024-05-25 10:31:10 +0300
commit9c834de51493597f42469cdec79c8abc8a67112f (patch)
treed14390dabc8dddac399c2cf97a27409806fff9f8 /dev-python/kafka-python
parentdev-python/pytest-faulthandler: treeclean (diff)
downloadgentoo-9c834de51493597f42469cdec79c8abc8a67112f.tar.gz
gentoo-9c834de51493597f42469cdec79c8abc8a67112f.tar.bz2
gentoo-9c834de51493597f42469cdec79c8abc8a67112f.zip
dev-python/kafka-python: treeclean
Bug: https://bugs.gentoo.org/906723 Bug: https://bugs.gentoo.org/929461 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/kafka-python')
-rw-r--r--dev-python/kafka-python/Manifest1
-rw-r--r--dev-python/kafka-python/files/kafka-python-2.0.2-py311-test-fixes.patch26
-rw-r--r--dev-python/kafka-python/kafka-python-2.0.2-r2.ebuild56
-rw-r--r--dev-python/kafka-python/metadata.xml9
4 files changed, 0 insertions, 92 deletions
diff --git a/dev-python/kafka-python/Manifest b/dev-python/kafka-python/Manifest
deleted file mode 100644
index 036ad2744e38..000000000000
--- a/dev-python/kafka-python/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST kafka-python-2.0.2.gh.tar.gz 327238 BLAKE2B 9d8bdee1cedcc3c7c0bee9d900bb815552b29f50ec45b7db9d1052a26eb772c84d92648ccc0d498189fc44314f5c8c30529fa61cb983481f2e2480e009630f91 SHA512 e193a8fe5852d2134e854749115feba46a0b8ff748336989a27bf56acba1124dbb8a5d841670a67ee26eef030a686d931d03d329f978b2eef7904183e83d2594
diff --git a/dev-python/kafka-python/files/kafka-python-2.0.2-py311-test-fixes.patch b/dev-python/kafka-python/files/kafka-python-2.0.2-py311-test-fixes.patch
deleted file mode 100644
index 8b983952fd47..000000000000
--- a/dev-python/kafka-python/files/kafka-python-2.0.2-py311-test-fixes.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-Fix tests for Py3.11
-
-Upstream-PR: https://github.com/dpkp/kafka-python/pull/2358
-
-diff --git a/test/test_assignors.py b/test/test_assignors.py
-index 67e91e131..a1214d8fa 100644
---- a/test/test_assignors.py
-+++ b/test/test_assignors.py
-@@ -661,7 +661,7 @@ def test_reassignment_with_random_subscriptions_and_changes(mocker, execution_nu
-
- subscriptions = defaultdict(set)
- for i in range(n_consumers):
-- topics_sample = sample(all_topics, randint(1, len(all_topics) - 1))
-+ topics_sample = sample(sorted(all_topics), randint(1, len(all_topics) - 1))
- subscriptions['C{}'.format(i)].update(topics_sample)
-
- member_metadata = make_member_metadata(subscriptions)
-@@ -671,7 +671,7 @@ def test_reassignment_with_random_subscriptions_and_changes(mocker, execution_nu
-
- subscriptions = defaultdict(set)
- for i in range(n_consumers):
-- topics_sample = sample(all_topics, randint(1, len(all_topics) - 1))
-+ topics_sample = sample(sorted(all_topics), randint(1, len(all_topics) - 1))
- subscriptions['C{}'.format(i)].update(topics_sample)
-
- member_metadata = {}
diff --git a/dev-python/kafka-python/kafka-python-2.0.2-r2.ebuild b/dev-python/kafka-python/kafka-python-2.0.2-r2.ebuild
deleted file mode 100644
index bd58114eed30..000000000000
--- a/dev-python/kafka-python/kafka-python-2.0.2-r2.ebuild
+++ /dev/null
@@ -1,56 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..11} )
-
-inherit distutils-r1 optfeature
-
-DESCRIPTION="Kafka protocol support in Python"
-HOMEPAGE="
- https://github.com/dpkp/kafka-python/
- https://pypi.org/project/kafka-python/
-"
-SRC_URI="
- https://github.com/dpkp/kafka-python/archive/${PV}.tar.gz
- -> ${P}.gh.tar.gz
-"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND="
- dev-python/xxhash[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- dev-python/crc32c[${PYTHON_USEDEP}]
- dev-python/lz4[${PYTHON_USEDEP}]
- dev-python/mock[${PYTHON_USEDEP}]
- dev-python/pytest-mock[${PYTHON_USEDEP}]
- dev-python/python-snappy[${PYTHON_USEDEP}]
- dev-python/zstandard[${PYTHON_USEDEP}]
- )
-"
-
-PATCHES=(
- "${FILESDIR}/${P}-py311-test-fixes.patch"
-)
-
-distutils_enable_tests pytest
-
-EPYTEST_DESELECT=(
- # Needs kafka server running
- test/test_consumer_integration.py::test_kafka_consumer_offsets_for_time_old
- # Rounding problem
- 'test/record/test_records.py::test_memory_records_builder[1-2]'
-)
-
-pkg_postinst() {
- optfeature "LZ4 compression/decompression support" dev-python/lz4
- optfeature "Snappy compression support" dev-python/python-snappy
- optfeature "ZSTD compression/decompression support" dev-python/zstandard
-}
diff --git a/dev-python/kafka-python/metadata.xml b/dev-python/kafka-python/metadata.xml
deleted file mode 100644
index 2b4d2f740461..000000000000
--- a/dev-python/kafka-python/metadata.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <!-- maintainer-needed -->
- <upstream>
- <remote-id type="github">dpkp/kafka-python</remote-id>
- <remote-id type="pypi">kafka-python</remote-id>
- </upstream>
-</pkgmetadata>