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/flask-mongoengine/
Date: Thu, 02 Jul 2020 13:03:38
Message-Id: 1593695012.7cea1573aa057d264c6dde5cb21f6fd1d206afef.mgorny@gentoo
1 commit: 7cea1573aa057d264c6dde5cb21f6fd1d206afef
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 2 13:03:07 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 2 13:03:32 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cea1573
7
8 dev-python/flask-mongoengine: Bump to 0.9.5
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/flask-mongoengine/Manifest | 1 +
13 .../flask-mongoengine-0.9.5.ebuild | 41 ++++++++++++++++++++++
14 2 files changed, 42 insertions(+)
15
16 diff --git a/dev-python/flask-mongoengine/Manifest b/dev-python/flask-mongoengine/Manifest
17 index 5b30acc0b55..389630af6bf 100644
18 --- a/dev-python/flask-mongoengine/Manifest
19 +++ b/dev-python/flask-mongoengine/Manifest
20 @@ -1 +1,2 @@
21 DIST flask-mongoengine-0.9.3.tar.gz 111690 BLAKE2B f94f057bb416715d877154bb2816308324d3f0bb41dfe2002b80ed2f078ab2bffeb62fc7bd53344b7d995111122d0b59a09dfe7700975e151e61fe60f2bdad45 SHA512 15b8031e4f8a9275fa6a602aed8466533fc9e6eb408d8f3316fc8814cc785feeee59dae25f40c1c30371e7e33bcc8727bb866bd99dbee0dc75cf15049576fb3d
22 +DIST flask-mongoengine-0.9.5.gh.tar.gz 120281 BLAKE2B 454602e7e7f26db731379b01492c6cb1adf01369fd268236407c57753aeb68f17ce62d4c2e665e493d3c7c632e4f263af02b59e6580893afcc7b8659247fb42f SHA512 3588ae25e2f3643f5e240990f424b4f3754cea2f880b7b454c98afb3ea98fd81b783d74a45cf685fe59cfa8159b1ac39e840071f364ce98fb1a25cc9a09e0d5f
23
24 diff --git a/dev-python/flask-mongoengine/flask-mongoengine-0.9.5.ebuild b/dev-python/flask-mongoengine/flask-mongoengine-0.9.5.ebuild
25 new file mode 100644
26 index 00000000000..118819863c5
27 --- /dev/null
28 +++ b/dev-python/flask-mongoengine/flask-mongoengine-0.9.5.ebuild
29 @@ -0,0 +1,41 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{6..9} )
36 +inherit distutils-r1
37 +
38 +DESCRIPTION="Flask support for MongoDB and with WTF model forms"
39 +HOMEPAGE="https://pypi.org/project/flask-mongoengine/"
40 +SRC_URI="
41 + https://github.com/MongoEngine/flask-mongoengine/archive/v${PV}.tar.gz
42 + -> ${P}.gh.tar.gz"
43 +
44 +LICENSE="BSD"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +# TODO: make it spawn a local mongodb instance
48 +#RESTRICT="test"
49 +
50 +RDEPEND=">=dev-python/flask-0.8[${PYTHON_USEDEP}]
51 + >=dev-python/mongoengine-0.7.10[${PYTHON_USEDEP}]
52 + dev-python/flask-wtf[${PYTHON_USEDEP}]"
53 +
54 +distutils_enable_sphinx docs
55 +distutils_enable_tests nose
56 +
57 +python_prepare_all() {
58 + sed -i -e '/test_requirements/d' setup.py || die
59 + sed -i -e '/rednose/d' setup.cfg || die
60 +
61 + # TODO: investigate; new pymongo, wtforms?
62 + sed -e 's:test_connection_default:_&:' \
63 + -i tests/test_basic_app.py || die
64 + sed -e 's:test_unique_with:_&:' \
65 + -i tests/test_forms.py || die
66 + sed -e 's:test_mongomock:_&:' \
67 + -i tests/test_connection.py || die
68 +
69 + distutils-r1_python_prepare_all
70 +}