1 |
commit: 9673fe4df68eb19de0765a2079c0ab378ef94c4b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 6 14:45:23 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 6 14:46:47 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9673fe4d |
7 |
|
8 |
dev-python/mongoengine: Remove old |
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 | 80 ------------------------ |
14 |
2 files changed, 81 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/mongoengine/Manifest b/dev-python/mongoengine/Manifest |
17 |
index 03b6415746c..bec7d861c8a 100644 |
18 |
--- a/dev-python/mongoengine/Manifest |
19 |
+++ b/dev-python/mongoengine/Manifest |
20 |
@@ -1,2 +1 @@ |
21 |
-DIST mongoengine-0.23.0.tar.gz 322731 BLAKE2B 5aa01b59193fa118d9b9c2110d6ec401090bff768b5b2e5d9c5fea4bcb5ae6714c62d4ff664c3ab24c600d912f90287a8ac77313bc8c50e13c6d191baef69e49 SHA512 9dbc45ebf3d367a829947f404a3979236be7ef0fc39611046e2815b6ab83bdb2ada3db8b6d1f4bec6301677f5b727cc2570bb732050e2ff865da49a5ba63d0aa |
22 |
DIST mongoengine-0.23.1.tar.gz 324881 BLAKE2B f6856d432f34c19f9d32aa7fe340c5a09db6976802f5ce320e9722b942f80a1c38a725eab882780104fa379abe212319802f9dd4b405da41454bda84a5d57eb4 SHA512 fcd2ff1df3e2b28bc4cba67cad71a1856e9f94d4d2ecb731a5cce2f1c5e9abc163be37b7db518dfaa54a0ef7f664ac49b621a0554961aa7e13686ff608ef132a |
23 |
|
24 |
diff --git a/dev-python/mongoengine/mongoengine-0.23.0.ebuild b/dev-python/mongoengine/mongoengine-0.23.0.ebuild |
25 |
deleted file mode 100644 |
26 |
index 8bc583611f9..00000000000 |
27 |
--- a/dev-python/mongoengine/mongoengine-0.23.0.ebuild |
28 |
+++ /dev/null |
29 |
@@ -1,80 +0,0 @@ |
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" |
45 |
- |
46 |
-RDEPEND="dev-python/blinker[${PYTHON_USEDEP}] |
47 |
- dev-python/pillow[${PYTHON_USEDEP}] |
48 |
- dev-python/pymongo[${PYTHON_USEDEP}]" |
49 |
-BDEPEND=" |
50 |
- test? ( |
51 |
- dev-db/mongodb |
52 |
- dev-python/mongomock[${PYTHON_USEDEP}] |
53 |
- )" |
54 |
- |
55 |
-distutils_enable_tests pytest |
56 |
- |
57 |
-src_prepare() { |
58 |
- # TODO: investigate |
59 |
- sed -e 's:test_covered_index:_&:' \ |
60 |
- -i tests/document/test_indexes.py || die |
61 |
- # no $eval |
62 |
- sed -e 's:test_exec_js_field_sub:_&:' \ |
63 |
- -e 's:test_exec_js_query:_&:' \ |
64 |
- -e 's:test_item_frequencies_normalize:_&:' \ |
65 |
- -e 's:test_item_frequencies_with_0_values:_&:' \ |
66 |
- -e 's:test_item_frequencies_with_False_values:_&:' \ |
67 |
- -e 's:test_item_frequencies_with_null_embedded:_&:' \ |
68 |
- -i tests/queryset/test_queryset.py || die |
69 |
- # TODO: investigate (wrong order? bad comparison?) |
70 |
- sed -e 's:test_distinct_ListField_EmbeddedDocumentField:_&:' \ |
71 |
- -i tests/queryset/test_queryset.py || die |
72 |
- |
73 |
- distutils-r1_src_prepare |
74 |
-} |
75 |
- |
76 |
-python_test() { |
77 |
- local dbpath=${TMPDIR}/mongo.db |
78 |
- local logpath=${TMPDIR}/mongod.log |
79 |
- |
80 |
- mkdir -p "${dbpath}" || die |
81 |
- ebegin "Trying to start mongod on port ${DB_PORT}" |
82 |
- |
83 |
- LC_ALL=C \ |
84 |
- mongod --dbpath "${dbpath}" --nojournal \ |
85 |
- --bind_ip 127.0.0.1 --port 27017 \ |
86 |
- --unixSocketPrefix "${TMPDIR}" \ |
87 |
- --logpath "${logpath}" --fork || die |
88 |
- sleep 2 |
89 |
- |
90 |
- # Now we need to check if the server actually started... |
91 |
- if [[ -S "${TMPDIR}"/mongodb-27017.sock ]]; then |
92 |
- # yay! |
93 |
- eend 0 |
94 |
- else |
95 |
- eend 1 |
96 |
- eerror "Unable to start mongod for tests. See the server log:" |
97 |
- eerror " ${logpath}" |
98 |
- die "Unable to start mongod for tests." |
99 |
- fi |
100 |
- |
101 |
- local failed |
102 |
- nonfatal epytest || failed=1 |
103 |
- |
104 |
- mongod --dbpath "${dbpath}" --shutdown || die |
105 |
- |
106 |
- [[ ${failed} ]] && die "Tests fail with ${EPYTHON}" |
107 |
- |
108 |
- rm -rf "${dbpath}" || die |
109 |
-} |