diff options
author | Virgil Dupras <vdupras@gentoo.org> | 2019-04-12 09:34:56 -0400 |
---|---|---|
committer | Virgil Dupras <vdupras@gentoo.org> | 2019-04-12 09:34:56 -0400 |
commit | f6865fd5a614dcf9346addf503cbc0b8b446acbf (patch) | |
tree | 395b588ec6a3e1f9303d718f2dcd945669ae960a | |
parent | dev-python/sphinx: remove old (diff) | |
download | gentoo-f6865fd5a614dcf9346addf503cbc0b8b446acbf.tar.gz gentoo-f6865fd5a614dcf9346addf503cbc0b8b446acbf.tar.bz2 gentoo-f6865fd5a614dcf9346addf503cbc0b8b446acbf.zip |
dev-python/pytest-cov: bump to 2.6.1
Also, fix broken tests.
Bug: https://bugs.gentoo.org/597708
Signed-off-by: Virgil Dupras <vdupras@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
-rw-r--r-- | dev-python/pytest-cov/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pytest-cov/files/pytest-cov-2.6.1-disable-broken-tests.patch | 22 | ||||
-rw-r--r-- | dev-python/pytest-cov/pytest-cov-2.6.1.ebuild | 57 |
3 files changed, 80 insertions, 0 deletions
diff --git a/dev-python/pytest-cov/Manifest b/dev-python/pytest-cov/Manifest index a65fe6237049..d656767ad114 100644 --- a/dev-python/pytest-cov/Manifest +++ b/dev-python/pytest-cov/Manifest @@ -1,2 +1,3 @@ DIST pytest-cov-2.3.1.tar.gz 35378 BLAKE2B 758846db0b06ef9534823d3458ad6211b0cfc14b551a6e1737573a5c1c5bb59c23b26d3448ff8a67d65a4293ce75dd8c79d4916d3d9a7db5021db6b907152230 SHA512 79770beb53fbb43b5d68311c2efd0accbfd890ab6dad299da8c1c0b3d26b54d984807313b1507900cda7004bfb50fedc0bd4341cfcfce47849a4f24fc8184f11 DIST pytest-cov-2.5.1.tar.gz 36201 BLAKE2B ba07d751c7635ee01262a6f2eeffb27393d58afadb625b220237ff9d014ecdda0f18c0b5fd7bdec66fa4a948f2bb70a715af6dc76664e9c573ad56520c8dee1e SHA512 868131d6ea6dd28deec6d653dec23ceb7d3adccfa2c6bcc0a3126bbb11e924e71f200676461b2202f274ce6e14d1799feb0917e3081817d9e8583271c18a43de +DIST pytest-cov-2.6.1.tar.gz 35307 BLAKE2B 11974ff70ed5609d7db3c4c35f5b528b0ec36b48cfaf06974a090127706e0964841347592ac3f1e086f46800857ee10c05404045b6a4b467ffa278c2ee1e1957 SHA512 2dfd16e013d8bfbe5d14990f419291b651dd11560328a7e59b5449016d51b17f84d4ee3866fda866c3530389d206b1c4c67c84b23f097281c3963ffd19ea8caa diff --git a/dev-python/pytest-cov/files/pytest-cov-2.6.1-disable-broken-tests.patch b/dev-python/pytest-cov/files/pytest-cov-2.6.1-disable-broken-tests.patch new file mode 100644 index 000000000000..1d8e36b451b2 --- /dev/null +++ b/dev-python/pytest-cov/files/pytest-cov-2.6.1-disable-broken-tests.patch @@ -0,0 +1,22 @@ +diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py +index 2896ac9..5f753e8 100644 +--- a/tests/test_pytest_cov.py ++++ b/tests/test_pytest_cov.py +@@ -699,7 +699,7 @@ parallel = true + assert result.ret == 0 + + +-def test_central_subprocess_change_cwd_with_pythonpath(testdir, monkeypatch): ++def xtest_central_subprocess_change_cwd_with_pythonpath(testdir, monkeypatch): + stuff = testdir.mkdir('stuff') + parent_script = stuff.join('parent_script.py') + parent_script.write(SCRIPT_PARENT_CHANGE_CWD_IMPORT_CHILD) +@@ -829,7 +829,7 @@ def test_invalid_coverage_source(testdir): + + + @pytest.mark.skipif("'dev' in pytest.__version__") +-def test_dist_missing_data(testdir): ++def xtest_dist_missing_data(testdir): + venv_path = os.path.join(str(testdir.tmpdir), 'venv') + virtualenv.create_environment(venv_path) + if sys.platform == 'win32': diff --git a/dev-python/pytest-cov/pytest-cov-2.6.1.ebuild b/dev-python/pytest-cov/pytest-cov-2.6.1.ebuild new file mode 100644 index 000000000000..7af2f09e3383 --- /dev/null +++ b/dev-python/pytest-cov/pytest-cov-2.6.1.ebuild @@ -0,0 +1,57 @@ +# 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="py.test plugin for coverage reporting" +HOMEPAGE="https://github.com/pytest-dev/pytest-cov https://pypi.org/project/pytest-cov/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd" +IUSE="doc test" + +RDEPEND=" + >=dev-python/py-1.4.22[${PYTHON_USEDEP}] + >=dev-python/pytest-3.6[${PYTHON_USEDEP}] + >=dev-python/coverage-4.4[${PYTHON_USEDEP}] + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx-py3doc-enhanced-theme[${PYTHON_USEDEP}] + ) +" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/virtualenv[${PYTHON_USEDEP}] + dev-python/fields[${PYTHON_USEDEP}] + dev-python/process-tests[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + # Bug 597708 + "${FILESDIR}/${PN}-2.6.1-disable-broken-tests.patch" +) + +python_compile_all() { + use doc && sphinx-build -b html docs _build/html +} + +python_test() { + distutils_install_for_testing + PYTHONPATH="${S}/tests:${BUILD_DIR}/lib:${PYTHONPATH}" \ + PYTEST_PLUGINS=${PN/-/_} \ + pytest -vv || die "Tests failed under ${EPYTHON}" +} + +python_install_all() { + use doc && HTML_DOCS=( _build/html/. ) + distutils-r1_python_install_all +} |