commit:     2b764bc26d86d5c9cf5cf2c40275b06c39d6c5af
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun May  3 19:47:54 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun May  3 20:03:34 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b764bc2

dev-python/pytest-shutil: Block py2 pytest-virtualenv

Since dev-python/pytest normally loads all plugins, and PMs don't
necessarily enforce dependencies of these that are not part of @world,
it is possible to break their depgraph and break pytest on py2.7
completely.  Add a blocker to make that harder.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pytest-shutil/pytest-shutil-1.7.0-r1.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

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
index cb3daddd527..94e51a60906 100644
--- a/dev-python/pytest-shutil/pytest-shutil-1.7.0-r1.ebuild
+++ b/dev-python/pytest-shutil/pytest-shutil-1.7.0-r1.ebuild
@@ -27,6 +27,10 @@ RDEPEND="
        dev-python/mock[${PYTHON_USEDEP}]
        dev-python/termcolor[${PYTHON_USEDEP}]
 "
+# block pytest plugins that will be broken by the upgrade
+RDEPEND+="
+       !<dev-python/pytest-virtualenv-1.7.0-r1[python_targets_python2_7(-)]
+"
 
 BDEPEND="
        ${RDEPEND}

Reply via email to