mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
dev-python/pika: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST pika-1.4.1.gh.tar.gz 337544 BLAKE2B e6c402cfefd08e1667de322d3ed6190cafb2abbd18e6e95876528390a9ff92592b7d95db5d2a08e6d1ebd3b112252c0f223d77a1c9542ba9259f0e6bcf670ae5 SHA512 6a40eeb17bb8687648c3c0b2bb791421c1af7275b92e94514adb3d4a5f58743d789616e9de447518f16b57cae9ef37c1e44b841a7239059a564a3a7ef6be5455
|
||||
DIST pika-1.4.2.gh.tar.gz 338473 BLAKE2B 01379cefdd2dee3dd9a066ed6528b681670f546ca4bbe58307efbdcf1d2e76f2c9db42a4bda43d5b9e91771305c39747c5dc8a902a3501142bdbf742e8b00e13 SHA512 37e045fe3429c714324c125d2c0d9bec7db8af9c35d4bfa4cfb5b0dcb28cf9a17cdfac150eec64587f8a86c636669f698b5bbdc604f8500bd92abbc162b2e9c9
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Pure-Python implementation of the AMQP"
|
||||
HOMEPAGE="
|
||||
https://pika.readthedocs.io/
|
||||
https://github.com/pika/pika/
|
||||
https://pypi.org/project/pika/
|
||||
"
|
||||
SRC_URI="https://github.com/pika/pika/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="MPL-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="test !test? ( test )"
|
||||
PROPERTIES="test_network"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/twisted[${PYTHON_USEDEP}]
|
||||
dev-python/tornado[${PYTHON_USEDEP}]
|
||||
net-misc/rabbitmq-server
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=( pytest-timeout )
|
||||
EPYTEST_XDIST=1
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
epytest -k "not test_with_gevent"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
einfo "Starting rabbitmq"
|
||||
local -x RABBITMQ_LOG_BASE="${T}/rabbitmq/log"
|
||||
local -x RABBITMQ_MNESIA_BASE="${T}/rabbitmq/mnesia"
|
||||
local -x RABBITMQ_LOGS="${T}/rabbitmq.log"
|
||||
local -x RABBITMQ_PID_FILE="${T}/rabbitmq.pid"
|
||||
local -x RABBITMQ_ENABLED_PLUGINS_FILE="${T}/rabbitmq/enabled_plugins"
|
||||
/usr/libexec/rabbitmq/rabbitmq-server -p 5672:5672 &
|
||||
|
||||
einfo "Waiting for rabbitmq to fully load"
|
||||
while ! { echo >/dev/tcp/localhost/5672 ; } &> /dev/null; do
|
||||
sleep 1
|
||||
done
|
||||
einfo "rabbitmq is ready"
|
||||
|
||||
distutils-r1_src_test
|
||||
|
||||
einfo "Stopping rabbitmq"
|
||||
kill "$(<"${RABBITMQ_PID_FILE}")" || die
|
||||
}
|
||||
Reference in New Issue
Block a user