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-shutil/
Date: Sun, 03 May 2020 20:03:48
Message-Id: 1588536214.2b764bc26d86d5c9cf5cf2c40275b06c39d6c5af.mgorny@gentoo
1 commit: 2b764bc26d86d5c9cf5cf2c40275b06c39d6c5af
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 3 19:47:54 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun May 3 20:03:34 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b764bc2
7
8 dev-python/pytest-shutil: Block py2 pytest-virtualenv
9
10 Since dev-python/pytest normally loads all plugins, and PMs don't
11 necessarily enforce dependencies of these that are not part of @world,
12 it is possible to break their depgraph and break pytest on py2.7
13 completely. Add a blocker to make that harder.
14
15 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
16
17 dev-python/pytest-shutil/pytest-shutil-1.7.0-r1.ebuild | 4 ++++
18 1 file changed, 4 insertions(+)
19
20 diff --git a/dev-python/pytest-shutil/pytest-shutil-1.7.0-r1.ebuild b/dev-python/pytest-shutil/pytest-shutil-1.7.0-r1.ebuild
21 index cb3daddd527..94e51a60906 100644
22 --- a/dev-python/pytest-shutil/pytest-shutil-1.7.0-r1.ebuild
23 +++ b/dev-python/pytest-shutil/pytest-shutil-1.7.0-r1.ebuild
24 @@ -27,6 +27,10 @@ RDEPEND="
25 dev-python/mock[${PYTHON_USEDEP}]
26 dev-python/termcolor[${PYTHON_USEDEP}]
27 "
28 +# block pytest plugins that will be broken by the upgrade
29 +RDEPEND+="
30 + !<dev-python/pytest-virtualenv-1.7.0-r1[python_targets_python2_7(-)]
31 +"
32
33 BDEPEND="
34 ${RDEPEND}