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