eventlet: remove, SourcingError, unused

This commit is contained in:
Rick Farina (Zero_Chaos) 2024-04-03 15:37:50 -04:00
parent 94b2c5b42f
commit 8cf5662af3
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
6 changed files with 0 additions and 163 deletions

View file

@ -1 +0,0 @@
DIST eventlet-0.33.0.tar.gz 414929 BLAKE2B cfb2500d25ed56f5eb7b81968286b1d7d0286511e1658dca8ab4fcf07029390168aea1f95092b5f1b486bd6fb34a96b762c2087cd19f903d232f1da183508888 SHA512 52ef5c6997d0c8a3b55d5f6e969320e06950503984c90440b484020ba346d622ba99abf2bd389b962534849b0c70d80b06f110b2586417f27fb6dde725bfaef4

View file

@ -1,58 +0,0 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
DESCRIPTION="Highly concurrent networking library"
HOMEPAGE="https://pypi.org/project/eventlet/ https://github.com/eventlet/eventlet/"
SRC_URI="mirror://pypi/e/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv ~s390 sparc x86"
IUSE="examples"
RDEPEND="
>=dev-python/dnspython-1.15.0[${PYTHON_USEDEP}]
>=dev-python/six-1.10.0[${PYTHON_USEDEP}]
virtual/python-greenlet[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/pyopenssl[${PYTHON_USEDEP}]
)
"
PATCHES=(
"${FILESDIR}/eventlet-0.25.1-tests.patch"
"${FILESDIR}/eventlet-0.30.0-tests-socket.patch"
"${FILESDIR}/eventlet-0.30.2-test-timeout.patch"
)
distutils_enable_tests nose
src_prepare() {
# increase timeout - #791748
sed -e '/eventlet.sleep/s/0.1/5.0/' -i tests/isolated/patcher_fork_after_monkey_patch.py || die
distutils-r1_src_prepare
}
python_test() {
unset PYTHONPATH
export TMPDIR="${T}"
nosetests -v -x || die
}
python_install_all() {
if use examples; then
docompress -x "/usr/share/doc/${PF}/examples"
docinto examples
dodoc -r examples/.
fi
distutils-r1_python_install_all
}

View file

@ -1,40 +0,0 @@
diff --git a/tests/ssl_test.py b/tests/ssl_test.py
index d8b7d7e..5a3580b 100644
--- a/tests/ssl_test.py
+++ b/tests/ssl_test.py
@@ -180,7 +180,6 @@ class SSLTest(tests.LimitedTestCase):
self.assertEqual(client.recv(8), b'response')
stage_1.send()
- tests.check_idle_cpu_usage(0.2, 0.1)
server_coro.kill()
def test_greensslobject(self):
diff --git a/tests/zmq_test.py b/tests/zmq_test.py
index 601878f..c643e48 100644
--- a/tests/zmq_test.py
+++ b/tests/zmq_test.py
@@ -432,6 +432,8 @@ class TestUpstreamDownStream(tests.LimitedTestCase):
events = sock2.getsockopt(zmq.EVENTS)
self.assertEqual(events & zmq.POLLIN, zmq.POLLIN)
+ # this will often fail on portage...
+ @tests.skip_if(True)
@tests.skip_unless(zmq_supported)
def test_cpu_usage_after_bind(self):
"""zmq eats CPU after PUB socket .bind()
@@ -461,14 +463,12 @@ class TestUpstreamDownStream(tests.LimitedTestCase):
sub.setsockopt(zmq.SUBSCRIBE, b"")
eventlet.sleep()
pub.send(b'test_send')
- tests.check_idle_cpu_usage(0.2, 0.1)
sender, receiver, _port = self.create_bound_pair(zmq.DEALER, zmq.DEALER)
eventlet.sleep()
sender.send(b'test_recv')
msg = receiver.recv()
self.assertEqual(msg, b'test_recv')
- tests.check_idle_cpu_usage(0.2, 0.1)
class TestQueueLock(tests.LimitedTestCase):

View file

@ -1,13 +0,0 @@
Let's use TMPDIR as the base for this test's unix socket to help it pass.
We set TMPDIR in the ebuild to ${T}.
--- a/tests/backdoor_test.py
+++ b/tests/backdoor_test.py
@@ -47,7 +47,7 @@ class BackdoorTest(tests.LimitedTestCase):
self._run_test_on_client_and_server(client, serv)
def test_server_on_unix_socket(self):
- SOCKET_PATH = '/tmp/eventlet_backdoor_test.socket'
+ SOCKET_PATH = os.getenv('TMPDIR', '/tmp') + '/eventlet_backdoor_test.socket'
if os.path.exists(SOCKET_PATH):
os.unlink(SOCKET_PATH)
listener = socket.socket(socket.AF_UNIX)

View file

@ -1,39 +0,0 @@
From 0b8fd069386354d2d7e5464ce0b0d5b7d1795376 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Sun, 11 Apr 2021 12:20:09 +0200
Subject: [PATCH] Force test timeouts to 60 s
The upstream test timeouts are far too low for a busy system, and there
is no point in pursuing such low values anyway. Force 60 s that should
be reasonably safe for our test runs.
---
tests/__init__.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/__init__.py b/tests/__init__.py
index 82cd247..3a943c4 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -170,8 +170,8 @@ class LimitedTestCase(unittest.TestCase):
def setUp(self):
self.previous_alarm = None
- self.timer = eventlet.Timeout(self.TEST_TIMEOUT,
- TestIsTakingTooLong(self.TEST_TIMEOUT))
+ self.timer = eventlet.Timeout(60,
+ TestIsTakingTooLong(60))
def reset_timeout(self, new_timeout):
"""Changes the timeout duration; only has effect during one test.
@@ -350,7 +350,7 @@ def run_python(path, env=None, args=None, timeout=None, pythonpath_extend=None,
stdout=subprocess.PIPE,
)
if timeout is None:
- timeout = 10
+ timeout = 60
try:
output, _ = p.communicate(timeout=timeout)
except subprocess.TimeoutExpired:
--
2.31.1

View file

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<upstream>
<remote-id type="pypi">eventlet</remote-id>
<remote-id type="github">eventlet/eventlet</remote-id>
</upstream>
</pkgmetadata>