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: Tue, 10 May 2022 20:38:29
Message-Id: 1652215101.443d620a15c388a6a418c733a9cfb31ea357f6b0.mgorny@gentoo
1 commit: 443d620a15c388a6a418c733a9cfb31ea357f6b0
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 10 20:34:39 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 10 20:38:21 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=443d620a
7
8 dev-python/pytest-mock: Enable py3.11
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pytest-mock/pytest-mock-3.7.0.ebuild | 17 ++++++++++++-----
13 1 file changed, 12 insertions(+), 5 deletions(-)
14
15 diff --git a/dev-python/pytest-mock/pytest-mock-3.7.0.ebuild b/dev-python/pytest-mock/pytest-mock-3.7.0.ebuild
16 index a54aa61c82c0..6266e8ce070c 100644
17 --- a/dev-python/pytest-mock/pytest-mock-3.7.0.ebuild
18 +++ b/dev-python/pytest-mock/pytest-mock-3.7.0.ebuild
19 @@ -4,11 +4,15 @@
20 EAPI=8
21
22 DISTUTILS_USE_PEP517=setuptools
23 -PYTHON_COMPAT=( python3_{8..10} pypy3 )
24 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
25 +
26 inherit distutils-r1
27
28 DESCRIPTION="Thin-wrapper around the mock package for easier use with pytest"
29 -HOMEPAGE="https://github.com/pytest-dev/pytest-mock/"
30 +HOMEPAGE="
31 + https://github.com/pytest-dev/pytest-mock/
32 + https://pypi.org/project/pytest-mock/
33 +"
34 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
35
36 LICENSE="MIT"
37 @@ -16,21 +20,24 @@ SLOT="0"
38 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
39
40 RDEPEND="
41 - >=dev-python/pytest-6[${PYTHON_USEDEP}]"
42 + >=dev-python/pytest-6[${PYTHON_USEDEP}]
43 +"
44 BDEPEND="
45 dev-python/setuptools_scm[${PYTHON_USEDEP}]
46 test? (
47 dev-python/pytest-asyncio[${PYTHON_USEDEP}]
48 - )"
49 + )
50 +"
51
52 distutils_enable_tests pytest
53
54 python_test() {
55 local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
56 local -x PYTEST_PLUGINS=pytest_mock,pytest_asyncio.plugin
57 + local EPYTEST_DESELECT=()
58
59 if has_version dev-python/mock; then
60 - local EPYTEST_DESELECT=(
61 + EPYTEST_DESELECT+=(
62 tests/test_pytest_mock.py::test_standalone_mock
63 )
64 fi