1 |
commit: 58a30ba5c6ca07f3612dfdad5136ad4587c1aa3f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 25 06:39:59 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 25 07:56:21 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58a30ba5 |
7 |
|
8 |
dev-python/pytest-mock: Bump to 3.6.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pytest-mock/Manifest | 1 + |
13 |
dev-python/pytest-mock/pytest-mock-3.6.0.ebuild | 35 +++++++++++++++++++++++++ |
14 |
2 files changed, 36 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pytest-mock/Manifest b/dev-python/pytest-mock/Manifest |
17 |
index 096fe5f7f6f..945d631ce79 100644 |
18 |
--- a/dev-python/pytest-mock/Manifest |
19 |
+++ b/dev-python/pytest-mock/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pytest-mock-3.5.1.tar.gz 29135 BLAKE2B f9eb37bff0965772919c359ad56a0cdd0cac24fa763685c42ffaa2dfaea183a9c0be480269cbfc80990baaf406021c541b6dccc09602e98c8f731bbd530e928a SHA512 28ab2f239d3dfee134dd4e4fd467109cf3c76cb60aeb537dbc0c21b9a7619d068d54737e33d98c585e9341588fdafba4737ea5f428af37796f55e61ec30373a7 |
22 |
+DIST pytest-mock-3.6.0.tar.gz 29795 BLAKE2B ac0a9ebf47ceacaa6f1e109571a15509780ca25b67f46a74710fb81e3af4cb90f4bf95e077abd9c5be803fed1a4dfe691f57f4b0d89fbc91cb91ed85fd326f9b SHA512 158614ad655545a95134335b6ca5ab81bfae57a045a6e394c4195d267e2b5cce277302036ad7e23e3c771eaae71575b901ac3e02a734714d63ecb50c11b9df94 |
23 |
|
24 |
diff --git a/dev-python/pytest-mock/pytest-mock-3.6.0.ebuild b/dev-python/pytest-mock/pytest-mock-3.6.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..c63a62d05f0 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/pytest-mock/pytest-mock-3.6.0.ebuild |
29 |
@@ -0,0 +1,35 @@ |
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,8,9} pypy3 ) |
36 |
+ |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="Thin-wrapper around the mock package for easier use with pytest" |
40 |
+HOMEPAGE="https://github.com/pytest-dev/pytest-mock/" |
41 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="MIT" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" |
46 |
+IUSE="" |
47 |
+ |
48 |
+RDEPEND=">=dev-python/pytest-5[${PYTHON_USEDEP}]" |
49 |
+BDEPEND=" |
50 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]" |
51 |
+ |
52 |
+distutils_enable_tests pytest |
53 |
+ |
54 |
+python_test() { |
55 |
+ local deselect=() |
56 |
+ if has_version dev-python/mock; then |
57 |
+ deselect+=( |
58 |
+ tests/test_pytest_mock.py::test_standalone_mock |
59 |
+ ) |
60 |
+ fi |
61 |
+ |
62 |
+ distutils_install_for_testing |
63 |
+ epytest --assert=plain ${deselect[@]/#/--deselect } |
64 |
+} |