Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-mock/
Date: Sat, 25 Jun 2022 05:11:46
Message-Id: 1656133895.e9b58242f35b12f5556ff53c4ac0700eb83c4d6d.mgorny@gentoo
1 commit: e9b58242f35b12f5556ff53c4ac0700eb83c4d6d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 25 03:35:53 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 25 05:11:35 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9b58242
7
8 dev-python/pytest-mock: Bump to 3.8.1
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.8.1.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 c1a39aec7112..97f5e4ef533c 100644
18 --- a/dev-python/pytest-mock/Manifest
19 +++ b/dev-python/pytest-mock/Manifest
20 @@ -1 +1,2 @@
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
24 diff --git a/dev-python/pytest-mock/pytest-mock-3.8.1.ebuild b/dev-python/pytest-mock/pytest-mock-3.8.1.ebuild
25 new file mode 100644
26 index 000000000000..ce9187b4e2e5
27 --- /dev/null
28 +++ b/dev-python/pytest-mock/pytest-mock-3.8.1.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 +}