From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-python/pytest-xdist/Manifest | 9 ++++ ...1.15.0-test_manytests_to_one_import_error.patch | 27 ++++++++++++ dev-python/pytest-xdist/metadata.xml | 13 ++++++ .../pytest-xdist/pytest-xdist-1.14-r1.ebuild | 33 +++++++++++++++ dev-python/pytest-xdist/pytest-xdist-1.15.0.ebuild | 49 ++++++++++++++++++++++ dev-python/pytest-xdist/pytest-xdist-1.20.0.ebuild | 33 +++++++++++++++ 6 files changed, 164 insertions(+) create mode 100644 dev-python/pytest-xdist/Manifest create mode 100644 dev-python/pytest-xdist/files/1.15.0-test_manytests_to_one_import_error.patch create mode 100644 dev-python/pytest-xdist/metadata.xml create mode 100644 dev-python/pytest-xdist/pytest-xdist-1.14-r1.ebuild create mode 100644 dev-python/pytest-xdist/pytest-xdist-1.15.0.ebuild create mode 100644 dev-python/pytest-xdist/pytest-xdist-1.20.0.ebuild (limited to 'dev-python/pytest-xdist') diff --git a/dev-python/pytest-xdist/Manifest b/dev-python/pytest-xdist/Manifest new file mode 100644 index 000000000000..c503132cc469 --- /dev/null +++ b/dev-python/pytest-xdist/Manifest @@ -0,0 +1,9 @@ +AUX 1.15.0-test_manytests_to_one_import_error.patch 991 SHA256 c45e31a2491f31bf6a87a1804ad34f297f6662153440a2088f353f6cf98224ca SHA512 f46dcc913e408d1af425cc4d444d16d6585062d4debee08164039d3b35020c6c4b3af52c43484ecf32330d0107397d31030ab930965415e0ede6e22449b7d59c WHIRLPOOL 467829dda7e2d019958bfc6c6385aff5e60bea325c6c50975b247e51a4e8f37e50720b6127c03505ac7137bf2b3ca7e97f07b71559a634fba5508dc3809e5c12 +DIST pytest-xdist-1.14.zip 106585 SHA256 4a5e1199122fa29e3017d8d189f59ccc5d82e841474ba2a1eec0e89606153623 SHA512 4cafae77736da6880e8dd42aaa91f68bbc959ff7dabcd231018b144b54f96ccf1b11abb09474e260876bbdf731053005fdbd348ac87461f303d8f8f7af643e36 WHIRLPOOL 7d1f57a6d5cbf08661254f3f47d72c3cfbe931f14985c4b24abb627bd10fdc3f2fa21d05085766c0ed425e74713f991b53bdde957bd64ea4f64a206c2f4feffc +DIST pytest-xdist-1.15.0.tar.gz 87799 SHA256 6238395f8bd050f9288a3b10f34330edece80f4424cf2b4204d6e7d622f0f00b SHA512 6429bd0c85024a2dcb453e4264f06d4a548637c4dcdeabf73d2b78a112ace70ff61cf0849a4845cc70a7650d10a99e5fe1087d3b7dba4b941ec0a771fc9338ed WHIRLPOOL 0454f615c24b14a86aba58c7bc9dbc2b43af82551ae3912358603450f0e3ac94e849eb2fc57bdda8bd1de5201111a3986d2c12c9f2923f4296718ffee84d661b +DIST pytest-xdist-1.20.0.tar.gz 56578 SHA256 7924d45c2430191fe3679a58116c74ceea13307d7822c169d65fd59a24b3a4fe SHA512 e91fa6fa2f3130d38d674f62e6332581b88b43d7a63562701edf705de1b8a633b6b2011a6fa5fcece955181f6cf263a8ca7481c5e5f9f1d56ce198327f7dd30a WHIRLPOOL 0a2311d92f372c692c579350792d7051c4dfa046bc22a6eeeeb9b214982f90c12b28f7c0875fec591741bf82a3e6feac2b807a9ccde5c920b14a8b9865d58e3a +EBUILD pytest-xdist-1.14-r1.ebuild 903 SHA256 85fa092f869ecdf313f3c7ebb5cf5da47c7bdcb620f11454222990526a226366 SHA512 88db842c80a1b3ed730db2b039e16b1118c34e1c9aafbc9ce902f903527891c99f46e6da5316e44bb99c26f49ef61310896fc99ba0d37754824166508d6b078e WHIRLPOOL 6feaa1e17ded3c6fe4204350b1e1ae1c2244e069fb7e603494e104a4f0ef2748514be255d07d2abe16a735b0f8d9429f84dd25ce4fbf91162a43aefd2269a8bc +EBUILD pytest-xdist-1.15.0.ebuild 1224 SHA256 484cdf42b1183a33150b41b929d27a925c62c635eeddc1f4c59bc618b7cf06f1 SHA512 01af0491146d76e567e5cd1152a16cef8d397b841c4d7d8680791e54f22b9a30b3b0597253c5d1a919940c302ea19e96302f4abd4f4f32ecbbb891ad6532fa9a WHIRLPOOL f2cb0e32fbcacc6ff27960897d2c861de83be1af991d0aed68ddc896f6951d60f7c7572bf34636c831f1dfb2d9e2f5aba19e03ad4f27096edf6fce6fbd2a234e +EBUILD pytest-xdist-1.20.0.ebuild 912 SHA256 319d8a984b55a6f70e32f5948ca865aad6daa8d2b9fd4e62c3719c6753210bc7 SHA512 b3fef4dfc565643622455acc70494b5f9bd24c1bf149f56d8980baf82ff696993db8df6abb495e534d99d8f18ee7f2b703d64734f28c6c99f0a07425143d39d9 WHIRLPOOL f00c677ebcc49e848de9fa4806452e73d9fe0dfb70b8981c850e894a41ed730deeb26111f27b7aff933b1352b6b7f7f2e3d34b34625075135e787c8f0cf1a21c +MISC ChangeLog 3511 SHA256 fa4457d04a3d01cf26f7244fb05ad5f8dfb45ff1eb103148451dea3326917a52 SHA512 2b22be9bb85f0ebed510dc55bec1ff0dad87b6402b87f2dbbd47c4a8050d835c712c17b26874993cef5a5adf1cd2adf5ef85e28b6b075fceb38f987d1ffebc7c WHIRLPOOL 0fbe0e6d772e04ff677cf76a579ac467e2ae63613c16a79191c45ae52b19ba6751d5f3c479668261c6dc80a23ffd54e7a0b9ccab147bc9fc09320882a82a3513 +MISC metadata.xml 429 SHA256 73ac3c3c930e2cdc91f8d5f5bd43237eca57dc7ee5bc545fa800acbd072c6095 SHA512 f25800e22c2d0c60991a0544f69e253c5751affd7ba178fdb6fda167baed0b9756bfba1fd850908d9ed05c5cf2091848d91593eec7346d00462cfb54aa1864ae WHIRLPOOL a6d5e70bf96079c7c9ea7886fb0a1f2eda9b01cbc4415d8f71a10afb0c21e68a873fe3ac5434ba30558a26eef0539d5616fa041cddf53b8102771054fafb3ceb diff --git a/dev-python/pytest-xdist/files/1.15.0-test_manytests_to_one_import_error.patch b/dev-python/pytest-xdist/files/1.15.0-test_manytests_to_one_import_error.patch new file mode 100644 index 000000000000..9fb56f419ceb --- /dev/null +++ b/dev-python/pytest-xdist/files/1.15.0-test_manytests_to_one_import_error.patch @@ -0,0 +1,27 @@ +From e5d80645347fc7e67efdceb97df8e95d140b283d Mon Sep 17 00:00:00 2001 +From: Bruno Oliveira +Date: Mon, 5 Dec 2016 19:59:19 -0200 +Subject: [PATCH] Test using pytest 3.0 + +Fix #99 +--- + .travis.yml | 42 ++++++++++++++++++++++-------------------- + appveyor.yml | 23 +++++++++++++++++++++++ + setup.py | 2 +- + testing/acceptance_test.py | 2 +- + tox.ini | 7 +++---- + 5 files changed, 50 insertions(+), 26 deletions(-) + +diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py +index 21dfd71..2bb7bb1 100644 +--- a/testing/acceptance_test.py ++++ b/testing/acceptance_test.py +@@ -62,7 +62,7 @@ def test_import(): + pass + """) + result = testdir.runpytest(p1, '--tx=popen', '--tx=popen') +- assert result.ret == 1 ++ assert result.ret in (1, 2) + result.stdout.fnmatch_lines([ + "E ImportError: *__import_of_missing_module*", + ]) diff --git a/dev-python/pytest-xdist/metadata.xml b/dev-python/pytest-xdist/metadata.xml new file mode 100644 index 000000000000..c1976c171423 --- /dev/null +++ b/dev-python/pytest-xdist/metadata.xml @@ -0,0 +1,13 @@ + + + + + python@gentoo.org + Python + + + pxml + metagriffin/pxml + pytest-dev/pytest-xdist + + diff --git a/dev-python/pytest-xdist/pytest-xdist-1.14-r1.ebuild b/dev-python/pytest-xdist/pytest-xdist-1.14-r1.ebuild new file mode 100644 index 000000000000..423204c76dff --- /dev/null +++ b/dev-python/pytest-xdist/pytest-xdist-1.14-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Distributed testing and loop-on-failing modes" +HOMEPAGE="https://pypi.python.org/pypi/pytest-xdist https://github.com/pytest-dev/pytest-xdist" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=" + >=dev-python/execnet-1.1[${PYTHON_USEDEP}] + >=dev-python/pytest-2.4.2[${PYTHON_USEDEP}] + >=dev-python/py-1.4.22[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/setuptools_scm[${PYTHON_USEDEP}] + app-arch/unzip +" + +python_test() { + find -name __pycache__ -exec rm -r '{}' + || die + py.test -vv -x || die +} diff --git a/dev-python/pytest-xdist/pytest-xdist-1.15.0.ebuild b/dev-python/pytest-xdist/pytest-xdist-1.15.0.ebuild new file mode 100644 index 000000000000..4b81a266ce00 --- /dev/null +++ b/dev-python/pytest-xdist/pytest-xdist-1.15.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) + +inherit distutils-r1 + +DESCRIPTION="Distributed testing and loop-on-failing modes" +HOMEPAGE="https://pypi.python.org/pypi/pytest-xdist https://github.com/pytest-dev/pytest-xdist" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 sparc x86" +IUSE="test" + +RDEPEND=" + >=dev-python/execnet-1.1[${PYTHON_USEDEP}] + >=dev-python/pytest-2.4.2[${PYTHON_USEDEP}] + >=dev-python/py-1.4.22[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/setuptools_scm[${PYTHON_USEDEP}] + test? ( + dev-python/pyflakes[${PYTHON_USEDEP}] + dev-python/readme[${PYTHON_USEDEP}] + ) +" + +# Optional test dep: +# dev-python/pexpect[${PYTHON_USEDEP}] + +PATCHES=( + "${FILESDIR}"/1.15.0-test_manytests_to_one_import_error.patch +) + +python_prepare_all() { + # pexpect fail + sed -i -e 's/test_xfail_passes/_&/' testing/test_looponfail.py + distutils-r1_python_prepare_all +} + +python_test() { + distutils_install_for_testing + py.test -vv || die "Tests failed under ${EPYTHON}" +} diff --git a/dev-python/pytest-xdist/pytest-xdist-1.20.0.ebuild b/dev-python/pytest-xdist/pytest-xdist-1.20.0.ebuild new file mode 100644 index 000000000000..7e6d21d54712 --- /dev/null +++ b/dev-python/pytest-xdist/pytest-xdist-1.20.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) + +inherit distutils-r1 + +DESCRIPTION="Distributed testing and loop-on-failing modes" +HOMEPAGE="https://pypi.python.org/pypi/pytest-xdist https://github.com/pytest-dev/pytest-xdist" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="test" + +RDEPEND=" + >=dev-python/execnet-1.1[${PYTHON_USEDEP}] + >=dev-python/pytest-3.0.0[${PYTHON_USEDEP}] + dev-python/pytest-forked[${PYTHON_USEDEP}] + >=dev-python/py-1.4.22[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/setuptools_scm[${PYTHON_USEDEP}] +" + +python_test() { + distutils_install_for_testing + py.test -vv || die "Tests failed under ${EPYTHON}" +} -- cgit v1.2.3