From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-engineio/
Date: Thu, 28 Apr 2022 04:05:29 +0000 (UTC) [thread overview]
Message-ID: <1651118673.c22f72dbf15297a6da50606a02130833f982de07.sam@gentoo> (raw)
commit: c22f72dbf15297a6da50606a02130833f982de07
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 28 04:04:33 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr 28 04:04:33 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c22f72db
dev-python/python-engineio: avoid eventlet test dependency; add Python 3.10
We can avoid the eventlet test dep (which doesn't support Python 3.10 yet, still!)
with some gymnastics.
engineio supports a bunch of event engines, so let's just use others for testing
(and indeed use eventlet when it's available for < Python 3.10).
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../python-engineio-4.3.2-r1.ebuild | 66 ++++++++++++++++++++++
1 file changed, 66 insertions(+)
diff --git a/dev-python/python-engineio/python-engineio-4.3.2-r1.ebuild b/dev-python/python-engineio/python-engineio-4.3.2-r1.ebuild
new file mode 100644
index 000000000000..a7da39134dd9
--- /dev/null
+++ b/dev-python/python-engineio/python-engineio-4.3.2-r1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+inherit distutils-r1
+
+DESCRIPTION="Python implementation of the Engine.IO realtime server"
+HOMEPAGE="
+ https://python-engineio.readthedocs.io/
+ https://github.com/miguelgrinberg/python-engineio/
+ https://pypi.org/project/python-engineio/"
+SRC_URI="
+ https://github.com/miguelgrinberg/python-engineio/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-python/aiohttp[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+"
+# Can use eventlet, werkzeug, or gevent, but no tests for werkzeug
+# eventlet doesn't yet support Python 3.10, so let's work around it
+BDEPEND="
+ test? (
+ $(python_gen_cond_dep '
+ dev-python/eventlet[${PYTHON_USEDEP}]
+ ' python3_{8,9} )
+
+ dev-python/gevent[${PYTHON_USEDEP}]
+ dev-python/websockets[${PYTHON_USEDEP}]
+ www-servers/tornado[${PYTHON_USEDEP}]
+ )
+"
+
+EPYTEST_DESELECT=(
+ # Both want websocket (server) which isn't strictly required and fails
+ # because it can't find it. Think it needs right provider depending on
+ # whether it chose gevent/eventlet/werkzeug. Not worth the effort.
+ tests/common/test_server.py::TestServer::test_connect
+ tests/common/test_server.py::TestServer::test_upgrades
+)
+
+distutils_enable_tests pytest
+distutils_enable_sphinx docs \
+ dev-python/alabaster
+
+python_test() {
+ if [[ ${EPYTHON} != python3.8 && ${EPYTHON} != python3.9 ]] ; then
+ EPYTEST_IGNORE+=(
+ tests/common/test_async_eventlet.py
+ )
+
+ EPYTEST_DESELECT+=(
+ tests/common/test_server.py::TestServer::test_async_mode_eventlet
+ )
+ fi
+
+ epytest
+}
next reply other threads:[~2022-04-28 4:05 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-28 4:05 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-16 4:54 [gentoo-commits] repo/gentoo:master commit in: dev-python/python-engineio/ Michał Górny
2024-10-14 4:11 Michał Górny
2024-06-30 17:00 Michał Górny
2024-06-30 17:00 Michał Górny
2024-05-19 6:02 Michał Górny
2024-02-26 14:25 Michał Górny
2024-02-06 3:07 Michał Górny
2024-01-07 6:16 Michał Górny
2023-12-30 18:32 Michał Górny
2023-12-29 4:38 Michał Górny
2023-12-29 4:38 Michał Górny
2023-11-23 20:11 Michał Górny
2023-10-15 3:26 Michał Górny
2023-09-14 17:21 Arthur Zamarin
2023-09-13 15:47 Michał Górny
2023-09-04 2:48 Michał Górny
2023-08-23 19:25 Michał Górny
2023-08-21 16:45 Michał Górny
2023-08-21 16:44 Michał Górny
2023-07-24 11:33 Michał Górny
2023-07-06 3:31 Michał Górny
2023-07-06 3:31 Michał Górny
2023-04-20 3:12 Michał Górny
2023-04-09 7:44 Arthur Zamarin
2023-04-08 6:08 Michał Górny
2023-03-17 5:32 Michał Górny
2022-11-17 18:07 Michał Górny
2022-10-21 14:34 Michał Górny
2022-10-21 14:34 Michał Górny
2022-08-04 17:55 Arthur Zamarin
2022-07-05 6:07 Michał Górny
2022-05-13 15:00 Michał Górny
2022-04-29 4:05 Sam James
2022-04-24 17:47 Arthur Zamarin
2022-04-24 17:47 Arthur Zamarin
2022-01-11 18:03 Arthur Zamarin
2021-10-27 8:29 Michał Górny
2021-10-17 9:25 Michał Górny
2021-08-02 5:44 Michał Górny
2021-05-15 21:18 Michał Górny
2021-04-16 8:30 Michał Górny
2021-03-11 12:55 Sam James
2021-03-11 12:55 Sam James
2021-03-11 12:24 Michał Górny
2021-03-11 8:48 Michał Górny
2020-04-22 1:20 Zac Medico
2020-04-22 1:17 Zac Medico
2020-03-28 21:11 Michał Górny
2020-02-05 20:47 Michał Górny
2018-07-03 21:54 Zac Medico
2018-04-13 9:53 Zac Medico
2017-09-24 23:08 Zac Medico
2017-05-03 7:37 Michał Górny
2017-04-28 18:35 Zac Medico
2017-04-28 4:15 Zac Medico
2017-03-15 8:36 Zac Medico
2017-01-26 4:09 Zac Medico
2016-10-12 6:49 Zac Medico
2016-10-12 6:49 Zac Medico
2016-06-29 18:18 Patrick Lauer
2016-03-12 11:40 Patrick Lauer
2016-02-27 0:49 Zac Medico
2016-01-12 0:38 Zac Medico
2015-12-22 21:49 Zac Medico
2015-12-07 21:15 Zac Medico
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1651118673.c22f72dbf15297a6da50606a02130833f982de07.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox