1 |
commit: c3585a646d062f15f9fd13c8be87abc963914c3b |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 7 22:28:33 2018 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 7 22:29:15 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3585a64 |
7 |
|
8 |
Revert "dev-python/eventlet: Clean old up" |
9 |
|
10 |
This reverts commit 5eaced362e79a757c6e821fab47058e43bc0b4ee. |
11 |
|
12 |
Nova requires 0.20.0 or 0.18.4 to be installed |
13 |
|
14 |
dev-python/eventlet/Manifest | 2 + |
15 |
dev-python/eventlet/eventlet-0.18.4.ebuild | 63 +++++++++++++++++++++++++ |
16 |
dev-python/eventlet/eventlet-0.20.0-r1.ebuild | 67 +++++++++++++++++++++++++++ |
17 |
3 files changed, 132 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/eventlet/Manifest b/dev-python/eventlet/Manifest |
20 |
index 4147e6960b7..1c757a05afd 100644 |
21 |
--- a/dev-python/eventlet/Manifest |
22 |
+++ b/dev-python/eventlet/Manifest |
23 |
@@ -1,2 +1,4 @@ |
24 |
+DIST eventlet-0.18.4.tar.gz 288920 BLAKE2B 497b5e154de495049e477ab54660fa4e5af978c5a2d4a8faa566a965ccbbc017aaf9fc14df6e763191ad2daac70c859b935bce6cc73c6c097bcadd507d738f55 SHA512 3098f2e8649b1e10157b9474571b372176b05263a7d5e7bb915b0464551d70505bbdf77dc072f64c1c05b3011406ae4814ea1b6f746cea766bb58827b1515fcc |
25 |
+DIST eventlet-0.20.0.tar.gz 466828 BLAKE2B 43beb8f924c5e375a554db3fb90e3c39121ff9899aa1a214118531e3e6fa7711899f278b2187e1e61409a58c05e9bba1a8a6392e1b31a811ef1f32dd7b929016 SHA512 4be70ba8cc3ac76d424aad66cd214e97249a42785319b992d048a77cd26f53a428f7959596d07da9a88c92ee103d73d4990733fc00bca57cc8fd242041365348 |
26 |
DIST eventlet-0.20.1.tar.gz 469509 BLAKE2B 727844b70c4e1874a58efc95551dd7f12bec1c8d01cadeaedbc49f00a86e1393b690076fe720e8efdf00107f72b892a3a1f4c4921f95656b904221e748df7f09 SHA512 875c1ca82822a486bf28866c7d1f34df2419e7d33450a21740434d2e7f15c37a1090436cb7fe1feaeb5c810d39e4b238206c502323317897c8a42e844cbe7734 |
27 |
DIST eventlet-0.21.0.tar.gz 484191 BLAKE2B 07d3f5d1dca11032d51fef9ceb624e07da9e93bed914233da9abbdff27f21f2482b9e3417b50a63f383cae13615c6a781104a05dfb66f28d6ab4e469bce06ef9 SHA512 4ee682ca8faf870ff6f1d72e93527028f73ae13d7f755eceafb23f3cde48e52b83ff04b645b7e90299997713de93c52f244db8b81d6abc7788a56ea38c7b0f47 |
28 |
|
29 |
diff --git a/dev-python/eventlet/eventlet-0.18.4.ebuild b/dev-python/eventlet/eventlet-0.18.4.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..4b00621ad22 |
32 |
--- /dev/null |
33 |
+++ b/dev-python/eventlet/eventlet-0.18.4.ebuild |
34 |
@@ -0,0 +1,63 @@ |
35 |
+# Copyright 1999-2017 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=5 |
39 |
+ |
40 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
41 |
+ |
42 |
+inherit distutils-r1 |
43 |
+ |
44 |
+DESCRIPTION="Highly concurrent networking library" |
45 |
+HOMEPAGE="https://pypi.python.org/pypi/eventlet https://github.com/eventlet/eventlet/" |
46 |
+SRC_URI="mirror://pypi/e/${PN}/${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="MIT" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="amd64 ~arm64 x86" |
51 |
+IUSE="doc examples test" |
52 |
+ |
53 |
+RDEPEND=">=dev-python/greenlet-0.3[${PYTHON_USEDEP}]" |
54 |
+DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/python-docs-2.7.6-r1:2.7 ) |
56 |
+ test? ( ${RDEPEND} |
57 |
+ dev-python/pyopenssl[${PYTHON_USEDEP}] |
58 |
+ dev-python/nose[${PYTHON_USEDEP}] )" |
59 |
+ |
60 |
+python_prepare_all() { |
61 |
+ if use doc; then |
62 |
+ local PYTHON_DOC_ATOM=$(best_version --host-root dev-python/python-docs:2.7) |
63 |
+ local PYTHON_DOC_VERSION="${PYTHON_DOC_ATOM#dev-python/python-docs-}" |
64 |
+ local PYTHON_DOC="/usr/share/doc/python-docs-${PYTHON_DOC_VERSION}/html" |
65 |
+ local PYTHON_DOC_INVENTORY="${PYTHON_DOC}/objects.inv" |
66 |
+ sed -i "s|'http://docs.python.org/': None|'${PYTHON_DOC}': '${PYTHON_DOC_INVENTORY}'|" doc/conf.py || die |
67 |
+ fi |
68 |
+ |
69 |
+ if use test; then |
70 |
+# sed -i '/This is a Python 3 module/d' eventlet/green/http/__init__.py || die |
71 |
+# sed -i 's/^import/from OpenSSL import/g' eventlet/green/OpenSSL/__init__.py || die |
72 |
+# sed -i 's/^from version/from OpenSSL.version/' eventlet/green/OpenSSL/__init__.py || die |
73 |
+ sed -i 's/TEST_TIMEOUT = 1/TEST_TIMEOUT = 10/' tests/__init__.py || die |
74 |
+ fi |
75 |
+ |
76 |
+ # Prevent file collisions from teestsuite |
77 |
+ sed -e "s:'tests', :'tests', 'tests.*', :" -i setup.py || die |
78 |
+ |
79 |
+ distutils-r1_python_prepare_all |
80 |
+} |
81 |
+ |
82 |
+python_compile_all() { |
83 |
+ # https://github.com/eventlet/eventlet/issues/152 |
84 |
+ use doc && emake -C doc html |
85 |
+} |
86 |
+ |
87 |
+python_test() { |
88 |
+ # Several errors 1 failure |
89 |
+ # https://github.com/eventlet/eventlet/issues/151 |
90 |
+ nosetests tests || die "Tests fail with ${EPYTHON}" |
91 |
+} |
92 |
+ |
93 |
+python_install_all() { |
94 |
+ use doc && local HTML_DOCS=( doc/_build/html/. ) |
95 |
+ use examples && local EXAMPLES=( examples/. ) |
96 |
+ distutils-r1_python_install_all |
97 |
+} |
98 |
|
99 |
diff --git a/dev-python/eventlet/eventlet-0.20.0-r1.ebuild b/dev-python/eventlet/eventlet-0.20.0-r1.ebuild |
100 |
new file mode 100644 |
101 |
index 00000000000..b0366da9f31 |
102 |
--- /dev/null |
103 |
+++ b/dev-python/eventlet/eventlet-0.20.0-r1.ebuild |
104 |
@@ -0,0 +1,67 @@ |
105 |
+# Copyright 1999-2017 Gentoo Foundation |
106 |
+# Distributed under the terms of the GNU General Public License v2 |
107 |
+ |
108 |
+EAPI=5 |
109 |
+ |
110 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
111 |
+ |
112 |
+inherit distutils-r1 |
113 |
+ |
114 |
+DESCRIPTION="Highly concurrent networking library" |
115 |
+HOMEPAGE="https://pypi.python.org/pypi/eventlet https://github.com/eventlet/eventlet/" |
116 |
+SRC_URI="mirror://pypi/e/${PN}/${P}.tar.gz" |
117 |
+ |
118 |
+LICENSE="MIT" |
119 |
+SLOT="0" |
120 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
121 |
+IUSE="doc examples test" |
122 |
+ |
123 |
+RDEPEND="virtual/python-enum34 |
124 |
+ >=dev-python/greenlet-0.3[${PYTHON_USEDEP}]" |
125 |
+DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] |
126 |
+ >=dev-python/python-docs-2.7.6-r1:2.7 ) |
127 |
+ test? ( ${RDEPEND} |
128 |
+ dev-python/pyopenssl[${PYTHON_USEDEP}] |
129 |
+ dev-python/nose[${PYTHON_USEDEP}] )" |
130 |
+ |
131 |
+python_prepare_all() { |
132 |
+ # provided by virtual/python-enum34 |
133 |
+ sed -i '/enum-compat/d' setup.py || die |
134 |
+ |
135 |
+ if use doc; then |
136 |
+ local PYTHON_DOC_ATOM=$(best_version --host-root dev-python/python-docs:2.7) |
137 |
+ local PYTHON_DOC_VERSION="${PYTHON_DOC_ATOM#dev-python/python-docs-}" |
138 |
+ local PYTHON_DOC="/usr/share/doc/python-docs-${PYTHON_DOC_VERSION}/html" |
139 |
+ local PYTHON_DOC_INVENTORY="${PYTHON_DOC}/objects.inv" |
140 |
+ sed -i "s|'http://docs.python.org/': None|'${PYTHON_DOC}': '${PYTHON_DOC_INVENTORY}'|" doc/conf.py || die |
141 |
+ fi |
142 |
+ |
143 |
+ if use test; then |
144 |
+# sed -i '/This is a Python 3 module/d' eventlet/green/http/__init__.py || die |
145 |
+# sed -i 's/^import/from OpenSSL import/g' eventlet/green/OpenSSL/__init__.py || die |
146 |
+# sed -i 's/^from version/from OpenSSL.version/' eventlet/green/OpenSSL/__init__.py || die |
147 |
+ sed -i 's/TEST_TIMEOUT = 1/TEST_TIMEOUT = 10/' tests/__init__.py || die |
148 |
+ fi |
149 |
+ |
150 |
+ # Prevent file collisions from teestsuite |
151 |
+ sed -e "s:'tests', :'tests', 'tests.*', :" -i setup.py || die |
152 |
+ |
153 |
+ distutils-r1_python_prepare_all |
154 |
+} |
155 |
+ |
156 |
+python_compile_all() { |
157 |
+ # https://github.com/eventlet/eventlet/issues/152 |
158 |
+ use doc && emake -C doc html |
159 |
+} |
160 |
+ |
161 |
+python_test() { |
162 |
+ # Several errors 1 failure |
163 |
+ # https://github.com/eventlet/eventlet/issues/151 |
164 |
+ nosetests tests || die "Tests fail with ${EPYTHON}" |
165 |
+} |
166 |
+ |
167 |
+python_install_all() { |
168 |
+ use doc && local HTML_DOCS=( doc/_build/html/. ) |
169 |
+ use examples && local EXAMPLES=( examples/. ) |
170 |
+ distutils-r1_python_install_all |
171 |
+} |