Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/gevent/
Date: Tue, 22 Dec 2020 20:06:18
Message-Id: 1608667564.a74df2d238b978835e134333a52b86e7d07c2c9c.mgorny@gentoo
1 commit: a74df2d238b978835e134333a52b86e7d07c2c9c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 22 19:49:18 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 22 20:06:04 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a74df2d2
7
8 dev-python/gevent: Bump to 20.12.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/gevent/Manifest | 1 +
13 dev-python/gevent/gevent-20.12.0.ebuild | 86 +++++++++++++++++++++++++++++++++
14 2 files changed, 87 insertions(+)
15
16 diff --git a/dev-python/gevent/Manifest b/dev-python/gevent/Manifest
17 index 9e3a056b3cb..72dcce9035c 100644
18 --- a/dev-python/gevent/Manifest
19 +++ b/dev-python/gevent/Manifest
20 @@ -1 +1,2 @@
21 +DIST gevent-20.12.0.tar.gz 5898634 BLAKE2B a73129c7d393aedcd84b6e62c890c3b306722876a1ea4c96485096ce2ea7d1db5f03c77ea77a2c35ef41c7a96183246316c577735bcf4b25fb41095282c64d38 SHA512 76c75128ba2b33e47bd85ef2788387aa6d47d230ef9aeac4bceee03e8a2555dd204c321de7d1779fe4f44503e4fca5dce3b43c1922238da994faed0d78e5c4c1
22 DIST gevent-20.9.0.tar.gz 5806581 BLAKE2B 6b1b653fa6e22539e049a9bba3d3a2b9d798a5555ce4ba60ce33ecbdf14bb5201967d22d677e1ce3170129b0763fddfcc5991347186fb102d10ae39e22538c44 SHA512 966efc945b623df2521fffadca3b7e56cae1efe6de904a724765e0593389e8b1305094baa6fbc9f4fa376b1157d0f230b01e2a90de21e4b9650614363edec9f4
23
24 diff --git a/dev-python/gevent/gevent-20.12.0.ebuild b/dev-python/gevent/gevent-20.12.0.ebuild
25 new file mode 100644
26 index 00000000000..1890739c7d3
27 --- /dev/null
28 +++ b/dev-python/gevent/gevent-20.12.0.ebuild
29 @@ -0,0 +1,86 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +DISTUTILS_USE_SETUPTOOLS=rdepend
36 +PYTHON_COMPAT=( python3_{6,7,8,9} )
37 +PYTHON_REQ_USE="ssl(+),threads(+)"
38 +
39 +inherit distutils-r1 flag-o-matic
40 +
41 +DESCRIPTION="Coroutine-based network library"
42 +HOMEPAGE="https://www.gevent.org/ https://pypi.org/project/gevent/"
43 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
44 +
45 +LICENSE="MIT"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
48 +IUSE="doc examples test"
49 +RESTRICT="!test? ( test )"
50 +
51 +RDEPEND="
52 + >=dev-libs/libev-4.31:=
53 + dev-libs/libuv:=
54 + >=net-dns/c-ares-1.12:=
55 + >=dev-python/greenlet-0.4.17
56 + dev-python/zope-event[${PYTHON_USEDEP}]
57 + dev-python/zope-interface[${PYTHON_USEDEP}]
58 + virtual/python-greenlet[${PYTHON_USEDEP}]"
59 +DEPEND="${RDEPEND}
60 + test? (
61 + dev-python/psutil[${PYTHON_USEDEP}]
62 + dev-python/requests[${PYTHON_USEDEP}]
63 + )"
64 +
65 +distutils_enable_sphinx doc
66 +
67 +# Tests take long and fail terribly a few times.
68 +# It also seems that they require network access.
69 +#RESTRICT="test"
70 +
71 +python_prepare_all() {
72 + export LIBEV_EMBED="false"
73 + export CARES_EMBED="false"
74 + export EMBED="false"
75 +
76 + distutils-r1_python_prepare_all
77 +}
78 +
79 +python_configure_all() {
80 + append-flags -fno-strict-aliasing
81 +}
82 +
83 +python_test() {
84 + cd src/gevent/tests || die
85 + # TODO: figure out how to make them work and not hang
86 +# GEVENT_RESOLVER=ares \
87 +# "${EPYTHON}" -m gevent.tests \
88 +# -uall,-network \
89 +# --config known_failures.py \
90 +# --ignore tests_that_dont_use_resolver.txt || die
91 +# GEVENT_RESOLVER=dnspython \
92 +# "${EPYTHON}" -m gevent.tests \
93 +# -uall,-network \
94 +# --config known_failures.py \
95 +# --ignore tests_that_dont_use_resolver.txt || die
96 +# GEVENT_RESOLVER=thread \
97 +# "${EPYTHON}" -m gevent.tests \
98 +# --verbose \
99 +# -uall,-network \
100 +# --config known_failures.py \
101 +# --ignore tests_that_dont_use_resolver.txt || die
102 + GEVENT_FILE=thread \
103 + "${EPYTHON}" -m gevent.tests \
104 + --verbose \
105 + -uall,-network \
106 + --config known_failures.py \
107 + test__*subprocess*.py || die
108 +}
109 +
110 +python_install_all() {
111 + local DOCS=( AUTHORS README.rst )
112 + use examples && dodoc -r examples
113 +
114 + distutils-r1_python_install_all
115 +}