mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-04 04:57:07 -08:00
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>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST kafka-python-2.0.2.gh.tar.gz 327238 BLAKE2B 9d8bdee1cedcc3c7c0bee9d900bb815552b29f50ec45b7db9d1052a26eb772c84d92648ccc0d498189fc44314f5c8c30529fa61cb983481f2e2480e009630f91 SHA512 e193a8fe5852d2134e854749115feba46a0b8ff748336989a27bf56acba1124dbb8a5d841670a67ee26eef030a686d931d03d329f978b2eef7904183e83d2594
|
||||
@@ -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 = {}
|
||||
@@ -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
|
||||
}
|
||||
@@ -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>
|
||||
@@ -274,12 +274,6 @@ dev-python/sphinxcontrib-newsfeed
|
||||
# Removal on 2024-05-23. Bug #929484.
|
||||
dev-python/pyannotate
|
||||
|
||||
# Michał Górny <mgorny@gentoo.org> (2024-04-23)
|
||||
# No py3.12, broken. Upstream literally tells people to use a fork
|
||||
# "for the time being". No revdeps.
|
||||
# Removal on 2024-05-23. Bug #929461.
|
||||
dev-python/kafka-python
|
||||
|
||||
# Michał Górny <mgorny@gentoo.org> (2024-04-23)
|
||||
# Unmaintained. No py3.12, failing tests. Last upstream activity
|
||||
# in 2020, triggered by our previous last rites. No revdeps.
|
||||
|
||||
@@ -77,7 +77,6 @@ pkg_postinst() {
|
||||
# dev-python/couchdb-python \
|
||||
# dev-python/elasticsearch-py \
|
||||
# dev-python/influxdb \
|
||||
# dev-python/kafka-python \
|
||||
# dev-python/pika \
|
||||
# dev-python/paho-mqtt \
|
||||
# dev-python/prometheus-client \
|
||||
|
||||
@@ -78,7 +78,6 @@ pkg_postinst() {
|
||||
# dev-python/couchdb-python \
|
||||
# dev-python/elasticsearch-py \
|
||||
# dev-python/influxdb \
|
||||
# dev-python/kafka-python \
|
||||
# dev-python/pika \
|
||||
# dev-python/paho-mqtt \
|
||||
# dev-python/prometheus-client \
|
||||
|
||||
@@ -78,7 +78,6 @@ pkg_postinst() {
|
||||
# dev-python/couchdb-python \
|
||||
# dev-python/elasticsearch-py \
|
||||
# dev-python/influxdb \
|
||||
# dev-python/kafka-python \
|
||||
# dev-python/pika \
|
||||
# dev-python/paho-mqtt \
|
||||
# dev-python/prometheus-client \
|
||||
|
||||
Reference in New Issue
Block a user