diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-11-22 19:41:23 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-11-22 20:38:35 +0100 |
commit | a428f4bf757b3c6f2706df4d6c08be98e1d2df84 (patch) | |
tree | 9872e0eeeca1c62be3c0c0e464f960b112e44e57 /dev-python/pytest-xprocess | |
parent | dev-python/simplejson: Bump to 3.17.0, py3.8 (diff) | |
download | gentoo-a428f4bf757b3c6f2706df4d6c08be98e1d2df84.tar.gz gentoo-a428f4bf757b3c6f2706df4d6c08be98e1d2df84.tar.bz2 gentoo-a428f4bf757b3c6f2706df4d6c08be98e1d2df84.zip |
dev-python/pytest-xprocess: Kill stale dep on pytest-cache
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pytest-xprocess')
-rw-r--r-- | dev-python/pytest-xprocess/files/pytest-xprocess-0.12.1-pytest-28.patch | 39 | ||||
-rw-r--r-- | dev-python/pytest-xprocess/pytest-xprocess-0.12.1-r2.ebuild | 34 |
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-python/pytest-xprocess/files/pytest-xprocess-0.12.1-pytest-28.patch b/dev-python/pytest-xprocess/files/pytest-xprocess-0.12.1-pytest-28.patch new file mode 100644 index 000000000000..45d3b2446443 --- /dev/null +++ b/dev-python/pytest-xprocess/files/pytest-xprocess-0.12.1-pytest-28.patch @@ -0,0 +1,39 @@ +From 4b5de795b492b5beb15385b20fe289851c1b2570 Mon Sep 17 00:00:00 2001 +From: Bruno Oliveira <nicoddemus@gmail.com> +Date: Wed, 7 Jun 2017 09:55:28 -0300 +Subject: [PATCH] Add py35 and py36 to CI and drop support for pytest<2.8 + +Also drop requirement on pytest_cache +--- + pytest_xprocess.py | 3 +-- + setup.py | 2 +- + 2 files changed, 2 insertions(+), 3 deletions(-) + +diff --git a/pytest_xprocess.py b/pytest_xprocess.py +index e8d731c..c4edbdd 100644 +--- a/pytest_xprocess.py ++++ b/pytest_xprocess.py +@@ -18,8 +18,7 @@ def pytest_addoption(parser): + + + def getrootdir(config): +- from pytest_cache import getrootdir +- return getrootdir(config, ".xprocess").ensure(dir=1) ++ return config.rootdir.join(".xprocess").ensure(dir=1) + + + def pytest_cmdline_main(config): +diff --git a/setup.py b/setup.py +index 1992785..b3dd88c 100755 +--- a/setup.py ++++ b/setup.py +@@ -12,5 +12,5 @@ if __name__ == "__main__": + url='https://github.com/pytest-dev/pytest-xprocess/', + py_modules=['pytest_xprocess', 'xprocess'], + entry_points={'pytest11': ['xprocess = pytest_xprocess']}, +- install_requires=['pytest-cache', 'pytest>=2.3.5', 'psutil'], ++ install_requires=['pytest>=2.8', 'psutil'], + ) +-- +2.24.0 + diff --git a/dev-python/pytest-xprocess/pytest-xprocess-0.12.1-r2.ebuild b/dev-python/pytest-xprocess/pytest-xprocess-0.12.1-r2.ebuild new file mode 100644 index 000000000000..07fafa1465c6 --- /dev/null +++ b/dev-python/pytest-xprocess/pytest-xprocess-0.12.1-r2.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Manage external processes across test runs" +HOMEPAGE="https://pypi.org/project/pytest-xprocess/ https://github.com/pytest-dev/pytest-xprocess" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}"/pytest-xprocess-0.12.1-pytest-28.patch +) + +distutils_enable_tests pytest + +src_prepare() { + # Upstream's package mistakenly includes __pycache__ directory that make + # tests fail. + rm -r example/__pycache__ || die + distutils-r1_src_prepare +} |