1 |
commit: f50ccc89ab3fc02dcd249baaf52831c5013e61b4 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 5 09:55:06 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 5 10:13:54 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f50ccc89 |
7 |
|
8 |
dev-python/mongoengine: Bump to 0.23.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/mongoengine/Manifest | 1 + |
13 |
dev-python/mongoengine/mongoengine-0.23.0.ebuild | 44 ++++++++++++++++++++++++ |
14 |
2 files changed, 45 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/mongoengine/Manifest b/dev-python/mongoengine/Manifest |
17 |
index ff388eab35c..59bd0b834f3 100644 |
18 |
--- a/dev-python/mongoengine/Manifest |
19 |
+++ b/dev-python/mongoengine/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST mongoengine-0.22.1.tar.gz 321227 BLAKE2B 933850eb85623a33b1f8e124b6c8375a9e0448c39f5cf44a3aa5b281746933043873d6ac32997121b15c611b9c1a50a1194fa8f364bae3009339d50f5ca98bb8 SHA512 a5188e854aede8feddc01c2d7cbaedd0af4faf5ac03d28f8df9d6dd2f7ae58d9de81eb9d4f3bb02daafb85b7fdf8d54ba38994af07bb338af2b27940cc3413ed |
22 |
+DIST mongoengine-0.23.0.tar.gz 322731 BLAKE2B 5aa01b59193fa118d9b9c2110d6ec401090bff768b5b2e5d9c5fea4bcb5ae6714c62d4ff664c3ab24c600d912f90287a8ac77313bc8c50e13c6d191baef69e49 SHA512 9dbc45ebf3d367a829947f404a3979236be7ef0fc39611046e2815b6ab83bdb2ada3db8b6d1f4bec6301677f5b727cc2570bb732050e2ff865da49a5ba63d0aa |
23 |
|
24 |
diff --git a/dev-python/mongoengine/mongoengine-0.23.0.ebuild b/dev-python/mongoengine/mongoengine-0.23.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..13ab5c94bc5 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/mongoengine/mongoengine-0.23.0.ebuild |
29 |
@@ -0,0 +1,44 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{7..9} ) |
36 |
+inherit distutils-r1 |
37 |
+ |
38 |
+DESCRIPTION="A Python Object-Document-Mapper for working with MongoDB" |
39 |
+HOMEPAGE="https://github.com/MongoEngine/mongoengine/" |
40 |
+SRC_URI="https://github.com/MongoEngine/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="BSD" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~x86" |
45 |
+# TODO: make it run a local database server |
46 |
+#RESTRICT="test" |
47 |
+ |
48 |
+RDEPEND="dev-python/blinker[${PYTHON_USEDEP}] |
49 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
50 |
+ dev-python/pymongo[${PYTHON_USEDEP}]" |
51 |
+BDEPEND=" |
52 |
+ test? ( dev-python/mongomock[${PYTHON_USEDEP}] )" |
53 |
+ |
54 |
+distutils_enable_tests pytest |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ # TODO: investigate |
58 |
+ sed -e 's:test_covered_index:_&:' \ |
59 |
+ -i tests/document/test_indexes.py || die |
60 |
+ # no $eval |
61 |
+ sed -e 's:test_exec_js_field_sub:_&:' \ |
62 |
+ -e 's:test_exec_js_query:_&:' \ |
63 |
+ -e 's:test_item_frequencies_normalize:_&:' \ |
64 |
+ -e 's:test_item_frequencies_with_0_values:_&:' \ |
65 |
+ -e 's:test_item_frequencies_with_False_values:_&:' \ |
66 |
+ -e 's:test_item_frequencies_with_null_embedded:_&:' \ |
67 |
+ -i tests/queryset/test_queryset.py || die |
68 |
+ # TODO: investigate (wrong order? bad comparison?) |
69 |
+ sed -e 's:test_distinct_ListField_EmbeddedDocumentField:_&:' \ |
70 |
+ -i tests/queryset/test_queryset.py || die |
71 |
+ |
72 |
+ distutils-r1_src_prepare |
73 |
+} |