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, 26 May 2020 18:10:00
Message-Id: 1590516587.87a28f5adcdfc79ea10cff0be7dbabdf54ca2526.mgorny@gentoo
1 commit: 87a28f5adcdfc79ea10cff0be7dbabdf54ca2526
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 26 18:04:39 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 26 18:09:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87a28f5a
7
8 dev-python/gevent: Bump to 20.5.1
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.5.1.ebuild | 89 ++++++++++++++++++++++++++++++++++
14 2 files changed, 90 insertions(+)
15
16 diff --git a/dev-python/gevent/Manifest b/dev-python/gevent/Manifest
17 index aaa890a7697..a18a9daf589 100644
18 --- a/dev-python/gevent/Manifest
19 +++ b/dev-python/gevent/Manifest
20 @@ -1 +1,2 @@
21 DIST gevent-1.4.0.tar.gz 5169595 BLAKE2B 0c78f67bc94d15419b8eadf8825d9657c6a7a82756308216e1ca94d5465c25836cb736b8b370a12d1003eb8614effd4110d8ed47ee2b0d7febc2bda4038adc0a SHA512 6771f4f2932055270e4f5a79ae815e93fd0f471defa7f437dc84907ea8b44672e05ae5eb6958f8d90580b2471785dce4044d9d1bbea0dd0c34c1381d88af0344
22 +DIST gevent-20.5.1.tar.gz 5566653 BLAKE2B 1d9a474681573ec2e9d3c0d40fbae8a91b8cfb80c3ff8b3cf0e119b0484458941224302afb59f16c3272e1d770b1c1e92a3f648754a81d2e894e35ed8a335c31 SHA512 c6f9360efa86e598b7b240cd15e24ee0711dc314bb14f8bcaee7b0768b34a0f090d66296819f4c2eb95fe1565fe1c0f3472fb47444c31cfebc348b420811aed5
23
24 diff --git a/dev-python/gevent/gevent-20.5.1.ebuild b/dev-python/gevent/gevent-20.5.1.ebuild
25 new file mode 100644
26 index 00000000000..faeb72ae729
27 --- /dev/null
28 +++ b/dev-python/gevent/gevent-20.5.1.ebuild
29 @@ -0,0 +1,89 @@
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=( python2_7 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="http://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"
48 +IUSE="doc examples test"
49 +RESTRICT="!test? ( test )"
50 +
51 +RDEPEND="
52 + >=dev-libs/libev-4.23
53 + >=net-dns/c-ares-1.12
54 + >=dev-python/greenlet-0.4.14
55 + virtual/python-greenlet[${PYTHON_USEDEP}]"
56 +DEPEND="${RDEPEND}
57 + test? (
58 + dev-python/psutil[${PYTHON_USEDEP}]
59 + dev-python/requests[${PYTHON_USEDEP}]
60 + dev-python/zope-event[${PYTHON_USEDEP}]
61 + dev-python/zope-interface[${PYTHON_USEDEP}]
62 + $(python_gen_cond_dep '
63 + dev-python/futures[${PYTHON_USEDEP}]
64 + dev-python/mock[${PYTHON_USEDEP}]
65 + ' -2)
66 + )"
67 +
68 +distutils_enable_sphinx doc
69 +
70 +# Tests take long and fail terribly a few times.
71 +# It also seems that they require network access.
72 +#RESTRICT="test"
73 +
74 +python_prepare_all() {
75 + export LIBEV_EMBED="false"
76 + export CARES_EMBED="false"
77 + export EMBED="false"
78 +
79 + distutils-r1_python_prepare_all
80 +}
81 +
82 +python_configure_all() {
83 + append-flags -fno-strict-aliasing
84 +}
85 +
86 +python_test() {
87 + cd src/gevent/tests || die
88 + # TODO: figure out how to make them work and not hang
89 +# GEVENT_RESOLVER=ares \
90 +# "${EPYTHON}" -m gevent.tests \
91 +# -uall,-network \
92 +# --config known_failures.py \
93 +# --ignore tests_that_dont_use_resolver.txt || die
94 +# GEVENT_RESOLVER=dnspython \
95 +# "${EPYTHON}" -m gevent.tests \
96 +# -uall,-network \
97 +# --config known_failures.py \
98 +# --ignore tests_that_dont_use_resolver.txt || die
99 +# GEVENT_RESOLVER=thread \
100 +# "${EPYTHON}" -m gevent.tests \
101 +# --verbose \
102 +# -uall,-network \
103 +# --config known_failures.py \
104 +# --ignore tests_that_dont_use_resolver.txt || die
105 + GEVENT_FILE=thread \
106 + "${EPYTHON}" -m gevent.tests \
107 + --verbose \
108 + -uall,-network \
109 + --config known_failures.py \
110 + test__*subprocess*.py || die
111 +}
112 +
113 +python_install_all() {
114 + local DOCS=( AUTHORS README.rst )
115 + use examples && dodoc -r examples
116 +
117 + distutils-r1_python_install_all
118 +}