1 |
commit: 283bf202bc0e2db0f892a3afb4b081455b03f8c2 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 31 22:43:23 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 31 23:46:56 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=283bf202 |
7 |
|
8 |
dev-python/mongomock: Bump to 4.0.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/mongomock/Manifest | 1 + |
13 |
dev-python/mongomock/mongomock-4.0.0.ebuild | 33 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 34 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/mongomock/Manifest b/dev-python/mongomock/Manifest |
17 |
index 9099adf3508e..7bd93c46a015 100644 |
18 |
--- a/dev-python/mongomock/Manifest |
19 |
+++ b/dev-python/mongomock/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST mongomock-3.23.0.tar.gz 123705 BLAKE2B d58f867628c8c80e1289c1a86fa910585431b5eca41818201dccd54d5adccb55c35aea41566ab2d483c7040cfcaa4c2afdbaad39fdd901497a0e1db4effd1c11 SHA512 35442f29907bb58693059a33f5941ca557965fe2b0b9b68ab3e4b31f5e2326bb41db8716a089dd18a1a1fdd5523a729b48a85e0caa0daca1bad2790c2ac017a9 |
22 |
+DIST mongomock-4.0.0.tar.gz 145478 BLAKE2B fad07cd15f250f81dd483814d6a3c15e69a86f4ee9a27308a3a08961f11a38c1abfc3bfa0a36dd81e14c902946c9aefd6ac29a9dde95dbf3e5b0781e7f9c8aca SHA512 e489dd9f312762f0322dfcc34b85912b5e47fa838bd48561aab9c195f19002c8e5f3617a1cc45929e9476aede7733286b5f6246f54be7396c422da5920bd89d5 |
23 |
|
24 |
diff --git a/dev-python/mongomock/mongomock-4.0.0.ebuild b/dev-python/mongomock/mongomock-4.0.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..1763b82a094f |
27 |
--- /dev/null |
28 |
+++ b/dev-python/mongomock/mongomock-4.0.0.ebuild |
29 |
@@ -0,0 +1,33 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=setuptools |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Library to help testing Python code that interacts with MongoDB via Pymongo" |
41 |
+HOMEPAGE="https://github.com/mongomock/mongomock https://pypi.org/project/mongomock/" |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="BSD" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+ |
48 |
+BDEPEND=">=dev-python/pbr-5.1.1[${PYTHON_USEDEP}]" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ dev-python/packaging[${PYTHON_USEDEP}] |
52 |
+ >=dev-python/pymongo-3.10.1[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/sentinels-1.0.0[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/six-1.14.0[${PYTHON_USEDEP}]" |
55 |
+ |
56 |
+src_test() { |
57 |
+ # Use NO_LOCAL_MONGO to disable tests that need a MongoDB instance. |
58 |
+ # TZ=UTC needed for date/time tests to pass |
59 |
+ TZ=UTC NO_LOCAL_MONGO=1 distutils-r1_src_test |
60 |
+} |
61 |
+ |
62 |
+distutils_enable_tests pytest |