1 |
commit: ceec29f59bd5d9601123f4692b409080a2f219f0 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 5 19:16:40 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 5 19:16:40 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ceec29f5 |
7 |
|
8 |
dev-python/pytest-mock: add 3.8.2 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/pytest-mock/Manifest | 1 + |
13 |
dev-python/pytest-mock/pytest-mock-3.8.2.ebuild | 46 +++++++++++++++++++++++++ |
14 |
2 files changed, 47 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pytest-mock/Manifest b/dev-python/pytest-mock/Manifest |
17 |
index 97f5e4ef533c..358627c45b60 100644 |
18 |
--- a/dev-python/pytest-mock/Manifest |
19 |
+++ b/dev-python/pytest-mock/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST pytest-mock-3.7.0.tar.gz 29311 BLAKE2B 27227b66008c70c4016c8e15d0021a67e84730a8b49c5664dc4f29e16d5f163df293269ab332707e44b7a0b182e15e20ab0ebaf4b9d923eb911083377972dad1 SHA512 6ba69e86bac8a430a9f1f1c615ad21f505b87848ac50fc551bc02f81306bf8769fd015615d96085d87d4c695c24b0686a95116721358687b48b64de5d0ae6901 |
22 |
DIST pytest-mock-3.8.1.tar.gz 27671 BLAKE2B 6bb4a3d752ae0f4e751cb50fd6018802bb7f3cee53429693161185ef369bad8addd8637d2526750fcf9ddbe9205da3d1d615efa19b1d58ae71603ca3902c67a6 SHA512 db8c0e2cbb7f8741569035a4e6ab9335ec0b03e05f0df07de0de8dad769974f96752c15d85c439da432623b51296b88970e3e29a212930e2bac33ed47d6055f3 |
23 |
+DIST pytest-mock-3.8.2.tar.gz 27734 BLAKE2B feaa92ba63626d7510008c41491bd0ab649b2a0cb55c888a472a5f6100a18d8b4a232532b6b3a860483bfd1676fc1216ca368e215b8f11fc6211eeef62f5743f SHA512 039342de6a22921ebac3f54a1f217a7a5d4cf9833ce4b4bee0a18ba5409d46211cd2d9ff9620a1576560d32f5e5799483e6686e3b58d32123f41dcd7a862154b |
24 |
|
25 |
diff --git a/dev-python/pytest-mock/pytest-mock-3.8.2.ebuild b/dev-python/pytest-mock/pytest-mock-3.8.2.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..ce9187b4e2e5 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pytest-mock/pytest-mock-3.8.2.ebuild |
30 |
@@ -0,0 +1,46 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+PYTHON_COMPAT=( python3_{8..11} pypy3 ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Thin-wrapper around the mock package for easier use with pytest" |
42 |
+HOMEPAGE=" |
43 |
+ https://github.com/pytest-dev/pytest-mock/ |
44 |
+ https://pypi.org/project/pytest-mock/ |
45 |
+" |
46 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="MIT" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ >=dev-python/pytest-6[${PYTHON_USEDEP}] |
54 |
+" |
55 |
+BDEPEND=" |
56 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
57 |
+ test? ( |
58 |
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}] |
59 |
+ ) |
60 |
+" |
61 |
+ |
62 |
+distutils_enable_tests pytest |
63 |
+ |
64 |
+python_test() { |
65 |
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 |
66 |
+ local -x PYTEST_PLUGINS=pytest_mock,pytest_asyncio.plugin |
67 |
+ local EPYTEST_DESELECT=() |
68 |
+ |
69 |
+ if has_version dev-python/mock; then |
70 |
+ EPYTEST_DESELECT+=( |
71 |
+ tests/test_pytest_mock.py::test_standalone_mock |
72 |
+ ) |
73 |
+ fi |
74 |
+ |
75 |
+ epytest --assert=plain |
76 |
+} |