1 |
commit: 92e9d6623c0e0a87710dcf5306bf8dac59649ec1 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 4 04:49:15 2017 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 4 04:51:00 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92e9d662 |
7 |
|
8 |
dev-python/flask: version bump to 0.12.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
|
12 |
dev-python/flask/Manifest | 1 + |
13 |
dev-python/flask/flask-0.12.1.ebuild | 59 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 60 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/flask/Manifest b/dev-python/flask/Manifest |
17 |
index 431273c0fc1..a206d02374e 100644 |
18 |
--- a/dev-python/flask/Manifest |
19 |
+++ b/dev-python/flask/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST Flask-0.10.1.tar.gz 544247 SHA256 4c83829ff83d408b5e1d4995472265411d2c414112298f2eb4b359d9e4563373 SHA512 0008d62d03a46b071c7d0510513d011a9bfd2b77df7f677371a446ca9805d16b1ee5e17dd8dd7cde6443a629370234e44735e20381de20a7da385969797f053f WHIRLPOOL f30a306ed00fe6d4c8e47b781c556c576b99b3545f833ae06f6b778d91c3127dc0adcc34d48221a0f1db1bb1633f2329d6085b7a4550afc672530525fdff474f |
22 |
+DIST Flask-0.12.1.tar.gz 548511 SHA256 9dce4b6bfbb5b062181d3f7da8f727ff70c1156cbb4024351eafd426deb5fb88 SHA512 23a376ed452bbf874eeeff959924bf8aee51fc9196af71092a7a457742a635fb3adaa958e61625522e93a14092e3bb88a22a74ef419513ca1ae93a1d08723ac5 WHIRLPOOL 29e1c55d094673cb1150780cac5deb1c2964a71e7030b4b4d32dd633fd7631d48687171cf1e745302e0c4dd40d4807a2467ca8c9c4fc9ada4e5d22a35cf3875d |
23 |
DIST Flask-0.12.tar.gz 531923 SHA256 93e803cdbe326a61ebd5c5d353959397c85f829bec610d59cb635c9f97d7ca8b SHA512 b8e9e005a850fcba413ad151998768ea0facb68f05855a1934cc6e4de1438cb59a4dd1bc74d2b04d52b3e837afa0a7785e98ae6c5af363a894c2be64773113f0 WHIRLPOOL df0df8db12b18b50d9ddf43ae925717bf4a67179af1d387020e73d4fb5f0c04c6cc1d6c83504d8dc5cbcb4dc11dcb0b63724499bd3c5b820feb181418d965138 |
24 |
|
25 |
diff --git a/dev-python/flask/flask-0.12.1.ebuild b/dev-python/flask/flask-0.12.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..851f950e42f |
28 |
--- /dev/null |
29 |
+++ b/dev-python/flask/flask-0.12.1.ebuild |
30 |
@@ -0,0 +1,59 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+MY_PN="Flask" |
41 |
+MY_P="${MY_PN}-${PV}" |
42 |
+ |
43 |
+DESCRIPTION="A microframework based on Werkzeug, Jinja2 and good intentions" |
44 |
+SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" |
45 |
+HOMEPAGE="https://github.com/pallets/flask/" |
46 |
+ |
47 |
+LICENSE="BSD" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
50 |
+IUSE="doc examples test" |
51 |
+ |
52 |
+RDEPEND=">=dev-python/blinker-1[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/werkzeug-0.7[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/jinja-2.4[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/itsdangerous-0.21[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/click-2[${PYTHON_USEDEP}]" |
57 |
+DEPEND="${RDEPEND} |
58 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
59 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
60 |
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
61 |
+ |
62 |
+S="${WORKDIR}/${MY_P}" |
63 |
+ |
64 |
+python_prepare_all() { |
65 |
+ # Prevent un-needed d'loading |
66 |
+ sed -e "s/ 'sphinx.ext.intersphinx',//" -i docs/conf.py || die |
67 |
+ # DeprecationWarning: Flags not at the start of the expression |
68 |
+ sed -e "s/r'\(.*\)\((?.*)\)'/r'\2\1'/" -i tests/test_basic.py || die |
69 |
+ # issubclass(ModuleNotFoundError, ImportError) |
70 |
+ sed -e 's/\(excinfo.type\) is \(ImportError\)/issubclass(\1, \2)/' \ |
71 |
+ -i tests/test_ext.py || die |
72 |
+ distutils-r1_python_prepare_all |
73 |
+} |
74 |
+ |
75 |
+python_compile_all() { |
76 |
+ use doc && emake -C docs html |
77 |
+} |
78 |
+ |
79 |
+python_test() { |
80 |
+ PYTHONPATH=${S}/examples/flaskr:${S}/examples/minitwit${PYTHONPATH:+:${PYTHONPATH}} \ |
81 |
+ py.test -v || die "Testing failed with ${EPYTHON}" |
82 |
+} |
83 |
+ |
84 |
+python_install_all() { |
85 |
+ use examples && dodoc -r examples |
86 |
+ use doc && HTML_DOCS=( docs/_build/html/. ) |
87 |
+ |
88 |
+ distutils-r1_python_install_all |
89 |
+} |