1 |
commit: 849964d21582d2a1069edad36b7ef58baaf5f4dd |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 3 22:31:37 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 3 23:35:17 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=849964d2 |
7 |
|
8 |
dev-python/flask: Clean old up |
9 |
|
10 |
dev-python/flask/Manifest | 3 -- |
11 |
.../flask/files/flask-0.10.1-is_package.patch | 13 ----- |
12 |
.../flask/files/flask-0.10.1-sort_json.patch | 54 -------------------- |
13 |
.../flask/files/flask-0.10.1-test_appcontext.patch | 14 ----- |
14 |
dev-python/flask/flask-0.10.1-r1.ebuild | 42 --------------- |
15 |
dev-python/flask/flask-0.12.1.ebuild | 59 ---------------------- |
16 |
dev-python/flask/flask-0.12.ebuild | 54 -------------------- |
17 |
7 files changed, 239 deletions(-) |
18 |
|
19 |
diff --git a/dev-python/flask/Manifest b/dev-python/flask/Manifest |
20 |
index c1af8385923..27d6d17b9fa 100644 |
21 |
--- a/dev-python/flask/Manifest |
22 |
+++ b/dev-python/flask/Manifest |
23 |
@@ -1,4 +1 @@ |
24 |
-DIST Flask-0.10.1.tar.gz 544247 BLAKE2B 986142e0a9e4668af462e211d7189114a8e75ec0bd433de9870c2fb1578ec3c565acdc0e724a1ea2eb88134323f53a5e774d266c8b15a7471734ec1c41a023f5 SHA512 0008d62d03a46b071c7d0510513d011a9bfd2b77df7f677371a446ca9805d16b1ee5e17dd8dd7cde6443a629370234e44735e20381de20a7da385969797f053f |
25 |
-DIST Flask-0.12.1.tar.gz 548511 BLAKE2B 4e67a397b48387561bce5a2fcfe503018ef6bf9ff29fd766fee4330a706e06927036251d9aff22f6a4bcf83ffe56e4eaa24b366c7ce91e51f36c460dbf2483b3 SHA512 23a376ed452bbf874eeeff959924bf8aee51fc9196af71092a7a457742a635fb3adaa958e61625522e93a14092e3bb88a22a74ef419513ca1ae93a1d08723ac5 |
26 |
DIST Flask-0.12.2.tar.gz 548510 BLAKE2B bd92d0e7e6ff36d371ffd958708517d16e41d1475af9153bf3d5234c33aa5c0ab415cbd254b711731cf8cffddac94b475f62d9fff2f9fe756b0fa30bb36d4343 SHA512 c00bb807e8fbc943e23a3721acf5b04320e7a58d658bca46bdf83a345b4c4d5729accae338505e134f01bc908adec9555fd94e8c87ef6f0367e6037215c06319 |
27 |
-DIST Flask-0.12.tar.gz 531923 BLAKE2B 022ac42d56ab811346de05a4eed90c8a212694ae35e293889d7338377001ccedb7e0e6461a4aa6df6721ce4245086cac64fe52bf5439278c17f59c911e6ad4dd SHA512 b8e9e005a850fcba413ad151998768ea0facb68f05855a1934cc6e4de1438cb59a4dd1bc74d2b04d52b3e837afa0a7785e98ae6c5af363a894c2be64773113f0 |
28 |
|
29 |
diff --git a/dev-python/flask/files/flask-0.10.1-is_package.patch b/dev-python/flask/files/flask-0.10.1-is_package.patch |
30 |
deleted file mode 100644 |
31 |
index 611d931d502..00000000000 |
32 |
--- a/dev-python/flask/files/flask-0.10.1-is_package.patch |
33 |
+++ /dev/null |
34 |
@@ -1,13 +0,0 @@ |
35 |
-https://github.com/mitsuhiko/flask/issues/487 |
36 |
-diff -ur Flask-0.10.1.orig/flask/helpers.py Flask-0.10.1/flask/helpers.py |
37 |
---- flask/helpers.py 2013-06-14 06:35:43.000000000 +0800 |
38 |
-+++ flask/helpers.py 2013-08-16 16:18:36.194006290 +0800 |
39 |
-@@ -679,7 +679,7 @@ |
40 |
- filename = sys.modules[import_name].__file__ |
41 |
- package_path = os.path.abspath(os.path.dirname(filename)) |
42 |
- # package_path ends with __init__.py for a package |
43 |
-- if loader.is_package(root_mod_name): |
44 |
-+ if package_path.endswith('__init__.py'): |
45 |
- package_path = os.path.dirname(package_path) |
46 |
- |
47 |
- site_parent, site_folder = os.path.split(package_path) |
48 |
|
49 |
diff --git a/dev-python/flask/files/flask-0.10.1-sort_json.patch b/dev-python/flask/files/flask-0.10.1-sort_json.patch |
50 |
deleted file mode 100644 |
51 |
index e78cd0dee82..00000000000 |
52 |
--- a/dev-python/flask/files/flask-0.10.1-sort_json.patch |
53 |
+++ /dev/null |
54 |
@@ -1,54 +0,0 @@ |
55 |
-https://github.com/mitsuhiko/flask/commit/a2bc61b5ab19e899735f8945f68123b4cea570d5 |
56 |
-diff --git a/flask/testsuite/helpers.py b/flask/testsuite/helpers.py |
57 |
-index 636f67f..7de70c0 100644 |
58 |
---- a/flask/testsuite/helpers.py |
59 |
-+++ b/flask/testsuite/helpers.py |
60 |
-@@ -173,7 +173,33 @@ def index(): |
61 |
- c = app.test_client() |
62 |
- rv = c.get('/') |
63 |
- lines = [x.strip() for x in rv.data.strip().decode('utf-8').splitlines()] |
64 |
-- self.assert_equal(lines, [ |
65 |
-+ sorted_by_str = [ |
66 |
-+ '{', |
67 |
-+ '"values": {', |
68 |
-+ '"0": "foo",', |
69 |
-+ '"1": "foo",', |
70 |
-+ '"10": "foo",', |
71 |
-+ '"11": "foo",', |
72 |
-+ '"12": "foo",', |
73 |
-+ '"13": "foo",', |
74 |
-+ '"14": "foo",', |
75 |
-+ '"15": "foo",', |
76 |
-+ '"16": "foo",', |
77 |
-+ '"17": "foo",', |
78 |
-+ '"18": "foo",', |
79 |
-+ '"19": "foo",', |
80 |
-+ '"2": "foo",', |
81 |
-+ '"3": "foo",', |
82 |
-+ '"4": "foo",', |
83 |
-+ '"5": "foo",', |
84 |
-+ '"6": "foo",', |
85 |
-+ '"7": "foo",', |
86 |
-+ '"8": "foo",', |
87 |
-+ '"9": "foo"', |
88 |
-+ '}', |
89 |
-+ '}' |
90 |
-+ ] |
91 |
-+ sorted_by_int = [ |
92 |
- '{', |
93 |
- '"values": {', |
94 |
- '"0": "foo",', |
95 |
-@@ -198,8 +224,12 @@ def index(): |
96 |
- '"19": "foo"', |
97 |
- '}', |
98 |
- '}' |
99 |
-- ]) |
100 |
-+ ] |
101 |
- |
102 |
-+ try: |
103 |
-+ self.assert_equal(lines, sorted_by_int) |
104 |
-+ except AssertionError: |
105 |
-+ self.assert_equal(lines, sorted_by_str) |
106 |
- |
107 |
- class SendfileTestCase(FlaskTestCase): |
108 |
- |
109 |
|
110 |
diff --git a/dev-python/flask/files/flask-0.10.1-test_appcontext.patch b/dev-python/flask/files/flask-0.10.1-test_appcontext.patch |
111 |
deleted file mode 100644 |
112 |
index 11dee7a9f6b..00000000000 |
113 |
--- a/dev-python/flask/files/flask-0.10.1-test_appcontext.patch |
114 |
+++ /dev/null |
115 |
@@ -1,14 +0,0 @@ |
116 |
-https://github.com/mitsuhiko/flask/commit/f88cc2d2f9d14d97e33ddd2bbaa4b1885db06e1c. |
117 |
-diff --git a/flask/testsuite/signals.py b/flask/testsuite/signals.py |
118 |
-index e061932..45ca45d 100644 |
119 |
---- a/flask/testsuite/signals.py |
120 |
-+++ b/flask/testsuite/signals.py |
121 |
-@@ -102,7 +102,7 @@ def test_appcontext_signals(self): |
122 |
- def record_push(sender, **kwargs): |
123 |
- recorded.append('push') |
124 |
- def record_pop(sender, **kwargs): |
125 |
-- recorded.append('push') |
126 |
-+ recorded.append('pop') |
127 |
- |
128 |
- @app.route('/') |
129 |
- def index(): |
130 |
|
131 |
diff --git a/dev-python/flask/flask-0.10.1-r1.ebuild b/dev-python/flask/flask-0.10.1-r1.ebuild |
132 |
deleted file mode 100644 |
133 |
index 931a2015563..00000000000 |
134 |
--- a/dev-python/flask/flask-0.10.1-r1.ebuild |
135 |
+++ /dev/null |
136 |
@@ -1,42 +0,0 @@ |
137 |
-# Copyright 1999-2017 Gentoo Foundation |
138 |
-# Distributed under the terms of the GNU General Public License v2 |
139 |
- |
140 |
-EAPI="5" |
141 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) |
142 |
- |
143 |
-inherit distutils-r1 |
144 |
- |
145 |
-DESCRIPTION="A microframework based on Werkzeug, Jinja2 and good intentions" |
146 |
-MY_PN="Flask" |
147 |
-MY_P="${MY_PN}-${PV}" |
148 |
-SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" |
149 |
-HOMEPAGE="https://github.com/mitsuhiko/flask/" |
150 |
- |
151 |
-LICENSE="BSD" |
152 |
-SLOT="0" |
153 |
-KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux" |
154 |
-IUSE="examples" |
155 |
- |
156 |
-RDEPEND="dev-python/blinker[${PYTHON_USEDEP}] |
157 |
- >=dev-python/itsdangerous-0.21[${PYTHON_USEDEP}] |
158 |
- >=dev-python/jinja-2.4[${PYTHON_USEDEP}] |
159 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
160 |
- >=dev-python/werkzeug-0.7[${PYTHON_USEDEP}]" |
161 |
-DEPEND="${RDEPEND}" |
162 |
-# Usual; test phase |
163 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
164 |
- |
165 |
-S="${WORKDIR}/${MY_P}" |
166 |
- |
167 |
-PATCHES=( "${FILESDIR}"/${P}-is_package.patch |
168 |
- "${FILESDIR}"/${P}-sort_json.patch |
169 |
- "${FILESDIR}"/${P}-test_appcontext.patch ) |
170 |
- |
171 |
-python_test() { |
172 |
- "${PYTHON}" run-tests.py || die "Testing failed with ${EPYTHON}" |
173 |
-} |
174 |
- |
175 |
-python_install_all() { |
176 |
- use examples && local EXAMPLES=( examples/. ) |
177 |
- distutils-r1_python_install_all |
178 |
-} |
179 |
|
180 |
diff --git a/dev-python/flask/flask-0.12.1.ebuild b/dev-python/flask/flask-0.12.1.ebuild |
181 |
deleted file mode 100644 |
182 |
index 851f950e42f..00000000000 |
183 |
--- a/dev-python/flask/flask-0.12.1.ebuild |
184 |
+++ /dev/null |
185 |
@@ -1,59 +0,0 @@ |
186 |
-# Copyright 1999-2017 Gentoo Foundation |
187 |
-# Distributed under the terms of the GNU General Public License v2 |
188 |
- |
189 |
-EAPI=6 |
190 |
- |
191 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) |
192 |
- |
193 |
-inherit distutils-r1 |
194 |
- |
195 |
-MY_PN="Flask" |
196 |
-MY_P="${MY_PN}-${PV}" |
197 |
- |
198 |
-DESCRIPTION="A microframework based on Werkzeug, Jinja2 and good intentions" |
199 |
-SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" |
200 |
-HOMEPAGE="https://github.com/pallets/flask/" |
201 |
- |
202 |
-LICENSE="BSD" |
203 |
-SLOT="0" |
204 |
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
205 |
-IUSE="doc examples test" |
206 |
- |
207 |
-RDEPEND=">=dev-python/blinker-1[${PYTHON_USEDEP}] |
208 |
- >=dev-python/werkzeug-0.7[${PYTHON_USEDEP}] |
209 |
- >=dev-python/jinja-2.4[${PYTHON_USEDEP}] |
210 |
- >=dev-python/itsdangerous-0.21[${PYTHON_USEDEP}] |
211 |
- >=dev-python/click-2[${PYTHON_USEDEP}]" |
212 |
-DEPEND="${RDEPEND} |
213 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
214 |
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
215 |
- test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
216 |
- |
217 |
-S="${WORKDIR}/${MY_P}" |
218 |
- |
219 |
-python_prepare_all() { |
220 |
- # Prevent un-needed d'loading |
221 |
- sed -e "s/ 'sphinx.ext.intersphinx',//" -i docs/conf.py || die |
222 |
- # DeprecationWarning: Flags not at the start of the expression |
223 |
- sed -e "s/r'\(.*\)\((?.*)\)'/r'\2\1'/" -i tests/test_basic.py || die |
224 |
- # issubclass(ModuleNotFoundError, ImportError) |
225 |
- sed -e 's/\(excinfo.type\) is \(ImportError\)/issubclass(\1, \2)/' \ |
226 |
- -i tests/test_ext.py || die |
227 |
- distutils-r1_python_prepare_all |
228 |
-} |
229 |
- |
230 |
-python_compile_all() { |
231 |
- use doc && emake -C docs html |
232 |
-} |
233 |
- |
234 |
-python_test() { |
235 |
- PYTHONPATH=${S}/examples/flaskr:${S}/examples/minitwit${PYTHONPATH:+:${PYTHONPATH}} \ |
236 |
- py.test -v || die "Testing failed with ${EPYTHON}" |
237 |
-} |
238 |
- |
239 |
-python_install_all() { |
240 |
- use examples && dodoc -r examples |
241 |
- use doc && HTML_DOCS=( docs/_build/html/. ) |
242 |
- |
243 |
- distutils-r1_python_install_all |
244 |
-} |
245 |
|
246 |
diff --git a/dev-python/flask/flask-0.12.ebuild b/dev-python/flask/flask-0.12.ebuild |
247 |
deleted file mode 100644 |
248 |
index 74cc21a5a81..00000000000 |
249 |
--- a/dev-python/flask/flask-0.12.ebuild |
250 |
+++ /dev/null |
251 |
@@ -1,54 +0,0 @@ |
252 |
-# Copyright 1999-2017 Gentoo Foundation |
253 |
-# Distributed under the terms of the GNU General Public License v2 |
254 |
- |
255 |
-EAPI=6 |
256 |
- |
257 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) |
258 |
- |
259 |
-inherit distutils-r1 |
260 |
- |
261 |
-MY_PN="Flask" |
262 |
-MY_P="${MY_PN}-${PV}" |
263 |
- |
264 |
-DESCRIPTION="A microframework based on Werkzeug, Jinja2 and good intentions" |
265 |
-SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" |
266 |
-HOMEPAGE="https://github.com/pallets/flask/" |
267 |
- |
268 |
-LICENSE="BSD" |
269 |
-SLOT="0" |
270 |
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
271 |
-IUSE="doc examples test" |
272 |
- |
273 |
-RDEPEND=">=dev-python/blinker-1[${PYTHON_USEDEP}] |
274 |
- >=dev-python/werkzeug-0.7[${PYTHON_USEDEP}] |
275 |
- >=dev-python/jinja-2.4[${PYTHON_USEDEP}] |
276 |
- >=dev-python/itsdangerous-0.21[${PYTHON_USEDEP}] |
277 |
- >=dev-python/click-2[${PYTHON_USEDEP}]" |
278 |
-DEPEND="${RDEPEND} |
279 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
280 |
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
281 |
- test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
282 |
- |
283 |
-S="${WORKDIR}/${MY_P}" |
284 |
- |
285 |
-python_prepare_all() { |
286 |
- # Prevent un-needed d'loading |
287 |
- sed -e "s/ 'sphinx.ext.intersphinx',//" -i docs/conf.py || die |
288 |
- distutils-r1_python_prepare_all |
289 |
-} |
290 |
- |
291 |
-python_compile_all() { |
292 |
- use doc && emake -C docs html |
293 |
-} |
294 |
- |
295 |
-python_test() { |
296 |
- PYTHONPATH=${S}/examples/flaskr:${S}/examples/minitwit${PYTHONPATH:+:${PYTHONPATH}} \ |
297 |
- py.test -v || die "Testing failed with ${EPYTHON}" |
298 |
-} |
299 |
- |
300 |
-python_install_all() { |
301 |
- use examples && dodoc -r examples |
302 |
- use doc && HTML_DOCS=( docs/_build/html/. ) |
303 |
- |
304 |
- distutils-r1_python_install_all |
305 |
-} |