1 |
commit: 03e7d18137a3a99c40cce23e7364eea6609bd606 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 28 18:02:37 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 28 18:32:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03e7d181 |
7 |
|
8 |
dev-python/pytest-mock: Bump to 3.9.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.9.0.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 58f3d5fbc4a7..4df2285628e4 100644 |
18 |
--- a/dev-python/pytest-mock/Manifest |
19 |
+++ b/dev-python/pytest-mock/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pytest-mock-3.8.2.tar.gz 27734 BLAKE2B feaa92ba63626d7510008c41491bd0ab649b2a0cb55c888a472a5f6100a18d8b4a232532b6b3a860483bfd1676fc1216ca368e215b8f11fc6211eeef62f5743f SHA512 039342de6a22921ebac3f54a1f217a7a5d4cf9833ce4b4bee0a18ba5409d46211cd2d9ff9620a1576560d32f5e5799483e6686e3b58d32123f41dcd7a862154b |
22 |
+DIST pytest-mock-3.9.0.tar.gz 27883 BLAKE2B d1cf4599bdc3fa21df83874c26751791f9ec891184baa2a304a8d4e48e5a03194718afb80e9019f914150ef22c1b3a787ac17cfadf10deae5584b8e39e32e376 SHA512 ed918574852ac70d863589d976fd65ac57c61ee1fa072651b93ee58f2d1154cef6c0ae1c2cba822bb1c6a2bddd6442b49e256652e2bd55fd3b1bed73017ff7b6 |
23 |
|
24 |
diff --git a/dev-python/pytest-mock/pytest-mock-3.9.0.ebuild b/dev-python/pytest-mock/pytest-mock-3.9.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..ce9187b4e2e5 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/pytest-mock/pytest-mock-3.9.0.ebuild |
29 |
@@ -0,0 +1,46 @@ |
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..11} pypy3 ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Thin-wrapper around the mock package for easier use with pytest" |
41 |
+HOMEPAGE=" |
42 |
+ https://github.com/pytest-dev/pytest-mock/ |
43 |
+ https://pypi.org/project/pytest-mock/ |
44 |
+" |
45 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="MIT" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ >=dev-python/pytest-6[${PYTHON_USEDEP}] |
53 |
+" |
54 |
+BDEPEND=" |
55 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
56 |
+ test? ( |
57 |
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}] |
58 |
+ ) |
59 |
+" |
60 |
+ |
61 |
+distutils_enable_tests pytest |
62 |
+ |
63 |
+python_test() { |
64 |
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 |
65 |
+ local -x PYTEST_PLUGINS=pytest_mock,pytest_asyncio.plugin |
66 |
+ local EPYTEST_DESELECT=() |
67 |
+ |
68 |
+ if has_version dev-python/mock; then |
69 |
+ EPYTEST_DESELECT+=( |
70 |
+ tests/test_pytest_mock.py::test_standalone_mock |
71 |
+ ) |
72 |
+ fi |
73 |
+ |
74 |
+ epytest --assert=plain |
75 |
+} |