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-fixture-config/
Date: Sun, 03 May 2020 20:03:49
Message-Id: 1588536217.6f3ce9bb87dae9eca368a404c9cd30f13ffd2b21.mgorny@gentoo
1 commit: 6f3ce9bb87dae9eca368a404c9cd30f13ffd2b21
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 3 19:49:13 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun May 3 20:03:37 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f3ce9bb
7
8 dev-python/pytest-fixture-config: 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 Closes: https://bugs.gentoo.org/720828
16 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
17
18 .../pytest-fixture-config/pytest-fixture-config-1.7.0-r1.ebuild | 4 ++++
19 1 file changed, 4 insertions(+)
20
21 diff --git a/dev-python/pytest-fixture-config/pytest-fixture-config-1.7.0-r1.ebuild b/dev-python/pytest-fixture-config/pytest-fixture-config-1.7.0-r1.ebuild
22 index 123812aa6d1..83b350fe07a 100644
23 --- a/dev-python/pytest-fixture-config/pytest-fixture-config-1.7.0-r1.ebuild
24 +++ b/dev-python/pytest-fixture-config/pytest-fixture-config-1.7.0-r1.ebuild
25 @@ -17,6 +17,10 @@ KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ~ppc ppc64 ~s390 sparc x86"
26 RDEPEND="
27 dev-python/pytest[${PYTHON_USEDEP}]
28 "
29 +# block pytest plugins that will be broken by the upgrade
30 +RDEPEND+="
31 + !<dev-python/pytest-virtualenv-1.7.0-r1[python_targets_python2_7(-)]
32 +"
33 BDEPEND="
34 dev-python/setuptools[${PYTHON_USEDEP}]
35 dev-python/setuptools-git[${PYTHON_USEDEP}]