Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-randomly/
Date: Thu, 21 May 2020 11:24:15
Message-Id: 1589917561.db970c8bb1db3fb257a224159196f2785b05e272.andrewammerlaan@gentoo
1 commit: db970c8bb1db3fb257a224159196f2785b05e272
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Tue May 19 19:43:53 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Tue May 19 19:46:01 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=db970c8b
7
8 dev-python/pytest-randomly: disable failing test
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
12
13 .../pytest-randomly-3.3.1-r2.ebuild | 52 ++++++++++++++++++++++
14 1 file changed, 52 insertions(+)
15
16 diff --git a/dev-python/pytest-randomly/pytest-randomly-3.3.1-r2.ebuild b/dev-python/pytest-randomly/pytest-randomly-3.3.1-r2.ebuild
17 new file mode 100644
18 index 0000000..1e902ac
19 --- /dev/null
20 +++ b/dev-python/pytest-randomly/pytest-randomly-3.3.1-r2.ebuild
21 @@ -0,0 +1,52 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI="7"
26 +
27 +DISTUTILS_USE_SETUPTOOLS=rdepend
28 +PYTHON_COMPAT=( python3_{6,7,8} )
29 +
30 +inherit distutils-r1
31 +
32 +DESCRIPTION="Pytest plugin to randomly order tests and control random.seed"
33 +HOMEPAGE="
34 + https://pypi.python.org/pypi/pytest-randomly
35 + https://github.com/pytest-dev/pytest-randomly
36 +"
37 +SRC_URI="https://github.com/pytest-dev/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
38 +
39 +LICENSE="BSD"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~x86"
42 +
43 +RDEPEND="
44 + dev-python/docutils[${PYTHON_USEDEP}]
45 + dev-python/factory_boy[${PYTHON_USEDEP}]
46 + dev-python/faker[${PYTHON_USEDEP}]
47 + dev-python/numpy[${PYTHON_USEDEP}]
48 + dev-python/pygments[${PYTHON_USEDEP}]
49 + dev-python/pytest[${PYTHON_USEDEP}]
50 +
51 + $(python_gen_cond_dep 'dev-python/importlib_metadata[${PYTHON_USEDEP}]' python3_6 python3_7)
52 +"
53 +#not really needed
54 +# dev-python/isort[${PYTHON_USEDEP}]
55 +# $(python_gen_cond_dep 'dev-python/black[${PYTHON_USEDEP}]' python3_8)
56 +# dev-python/secretstorage[${PYTHON_USEDEP}]
57 +# dev-python/twine[${PYTHON_USEDEP}]
58 +
59 +DEPEND="
60 + test? (
61 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
62 + )
63 +"
64 +#not really needed
65 +# $(python_gen_cond_dep 'dev-python/check-manifest[${PYTHON_USEDEP}]' python3_8)
66 +# dev-python/multilint[${PYTHON_USEDEP}]
67 +
68 +distutils_enable_tests pytest
69 +
70 +python_test() {
71 + distutils_install_for_testing
72 + pytest -vv --deselect tests/test_pytest_randomly.py::test_entrypoint_injection || die "Testsuite failed under ${EPYTHON}"
73 +}