Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/flask-login/
Date: Thu, 05 Jul 2018 19:38:19
Message-Id: 1530819485.c5fcd46e38707b2705d55c2bd82de226a99ae00b.sbraz@gentoo
1 commit: c5fcd46e38707b2705d55c2bd82de226a99ae00b
2 Author: Michael Seifert <m.seifert <AT> digitalernachschub <DOT> de>
3 AuthorDate: Wed Jul 4 14:22:29 2018 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 5 19:38:05 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5fcd46e
7
8 dev-python/flask-login: Added ebuild for v0.4.1, add PyPy3, doc
9
10 Also sort and fix dependencies, for instance unittest2 is not required
11 for Python >= 2.7.
12
13 Closes: https://bugs.gentoo.org/611258
14 Closes: https://github.com/gentoo/gentoo/pull/9043
15
16 dev-python/flask-login/Manifest | 1 +
17 dev-python/flask-login/flask-login-0.4.1.ebuild | 48 +++++++++++++++++++++++++
18 2 files changed, 49 insertions(+)
19
20 diff --git a/dev-python/flask-login/Manifest b/dev-python/flask-login/Manifest
21 index 57b1ce54387..a4e53a25ebd 100644
22 --- a/dev-python/flask-login/Manifest
23 +++ b/dev-python/flask-login/Manifest
24 @@ -1 +1,2 @@
25 DIST flask-login-0.3.2.tar.gz 38626 BLAKE2B fbcac55e4a8dc5fe78b4b5b3cb8acbe7293bfcc30ce5323ebe992c92407238198d34724179ac12e688875356e54f85f21a2870249ccafb48499df3880a6c2062 SHA512 c42af6ed7902145cc4778815f247ed88de6df7c929abe0a1f22aca0515495a54d298b2af2b74ba7d5e0ce9b453eee4c4ce03802a3e9ab531137e117e9dcdfc1b
26 +DIST flask-login-0.4.1.tar.gz 43679 BLAKE2B f30df1cc84289bc2dd1e59a30284d7152cee0731daf8b6e58b8203007c0ba74eb512bf9f2e41608d9656138038f5b5c752509ef5a203ef1e8bdba9182912b133 SHA512 c87a2948ac37439ddd76f3f11584bdd5910cb00e96a7400343cf4dadc5a0f9bc84d40bdc068d2e8c05bd5a510046e18473e9ad71502c5039a5f05b371ce9bb4c
27
28 diff --git a/dev-python/flask-login/flask-login-0.4.1.ebuild b/dev-python/flask-login/flask-login-0.4.1.ebuild
29 new file mode 100644
30 index 00000000000..d888c13afc3
31 --- /dev/null
32 +++ b/dev-python/flask-login/flask-login-0.4.1.ebuild
33 @@ -0,0 +1,48 @@
34 +# Copyright 1999-2018 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +PYTHON_COMPAT=( pypy{,3} python{2_7,3_{4,5,6}} )
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="Login session support for Flask"
43 +HOMEPAGE="https://pypi.org/project/Flask-Login/"
44 +# Should be replaced with the PyPi URI for the next release, if possible
45 +# See https://github.com/maxcountryman/flask-login/pull/393
46 +SRC_URI="https://github.com/maxcountryman/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
47 +
48 +LICENSE="BSD"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86"
51 +IUSE="doc test"
52 +
53 +RDEPEND=">=dev-python/flask-0.10[${PYTHON_USEDEP}]"
54 +DEPEND="
55 + dev-python/setuptools[${PYTHON_USEDEP}]
56 + doc? (
57 + dev-python/sphinx[${PYTHON_USEDEP}]
58 + )
59 + test? (
60 + ${RDEPEND}
61 + dev-python/blinker[${PYTHON_USEDEP}]
62 + dev-python/mock[${PYTHON_USEDEP}]
63 + dev-python/nose[${PYTHON_USEDEP}]
64 + dev-python/semantic_version[${PYTHON_USEDEP}]
65 + )"
66 +
67 +python_prepare_all() {
68 + sed -i "s/'sphinx.ext.intersphinx', //" docs/conf.py || die
69 + distutils-r1_python_prepare_all
70 +}
71 +
72 +python_compile_all() {
73 + if use doc; then
74 + emake -C docs html
75 + HTML_DOCS=( docs/_build/html/. )
76 + fi
77 +}
78 +
79 +python_test() {
80 + nosetests -v || die "Tests fail with ${EPYTHON}"
81 +}