Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest/
Date: Tue, 26 Feb 2019 20:07:22
Message-Id: 1551211479.79448f8c34f9c45323dd52d6eb7eca26397f8e3d.vdupras@gentoo
1 commit: 79448f8c34f9c45323dd52d6eb7eca26397f8e3d
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 21 02:13:07 2019 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 26 20:04:39 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79448f8c
7
8 dev-python/pytest: 4.3.0 version bump
9
10 Closes: https://bugs.gentoo.org/678458
11 Package-Manager: Portage-2.3.62, Repoman-2.3.12
12 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
13 Closes: https://github.com/gentoo/gentoo/pull/11123
14 Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
15
16 dev-python/pytest/Manifest | 1 +
17 dev-python/pytest/pytest-4.3.0.ebuild | 64 +++++++++++++++++++++++++++++++++++
18 2 files changed, 65 insertions(+)
19
20 diff --git a/dev-python/pytest/Manifest b/dev-python/pytest/Manifest
21 index f31640d8403..1c92fd62100 100644
22 --- a/dev-python/pytest/Manifest
23 +++ b/dev-python/pytest/Manifest
24 @@ -2,3 +2,4 @@ DIST pytest-3.10.1.tar.gz 892420 BLAKE2B 38849ae69bf4380bc1a99aa105cac04be078da4
25 DIST pytest-3.2.2.tar.gz 786396 BLAKE2B e669da930890e902b0323ec3a6685080ddd889e74655f7b4cb08ec421651f987597021a31471aab5a32d637b99620ce7792cbdf8f85561db3bb10ff06a446ba1 SHA512 6df3a50e7d1efeaf7a283920b16d1daf800798f422bc851b0aacd2bbd5cb0a88c95f9057fae49943b9dfe6527ed552cdf8d983b944ab91d0af252ee4f6eb82db
26 DIST pytest-3.4.2.tar.gz 812719 BLAKE2B 96623d6cdea4bd79778175c18c949938505f1862010f700f9a8cb85f445910381af391a5b69e664fbbfc254bf46502c798c72026772070236a0a3bca7aeeb3d6 SHA512 787065ab76d4482799bb2da9f024c9c383e68cc1cc01f3b80f6ed9444ca6383d20953615696ed4dd01668777b094cf5002b23c4ce51828879dcf8ebf2170c71b
27 DIST pytest-4.2.1.tar.gz 913065 BLAKE2B cde085627872d601df1c6d91d9620fbb97789b6e176fe104bc991faa800268e5e61651e211a8840743b21f8cd9b57dcee8685143e2f4d56d197afae35a577aed SHA512 e41bf7c685cacd62261df6d356911297a65ba85e13a50f8aed23d382d257c4c1cd3213971a3970fec210b8e97b72bd0034c0c1f87be7f306286d541c5ea57097
28 +DIST pytest-4.3.0.tar.gz 915820 BLAKE2B ee8c55bb3a6e79d4897b218f372f8b0ceb524ea627f2e803484d83791ebe979da760695d3f6d7d85bc6494bdee1079f71aaf2418f1bd9e2318aba7471445413e SHA512 67894dc6c7001290e3372b5015227cf800c02d40ff28f76fad1249bd866f25c2368d8f0895d7c97a6b3318608f88e44db0bff723e7aeef79e380227cd7ec147e
29
30 diff --git a/dev-python/pytest/pytest-4.3.0.ebuild b/dev-python/pytest/pytest-4.3.0.ebuild
31 new file mode 100644
32 index 00000000000..ab4d8190973
33 --- /dev/null
34 +++ b/dev-python/pytest/pytest-4.3.0.ebuild
35 @@ -0,0 +1,64 @@
36 +# Copyright 1999-2019 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy{,3} )
42 +
43 +inherit distutils-r1
44 +
45 +DESCRIPTION="Simple powerful testing with Python"
46 +HOMEPAGE="http://pytest.org/"
47 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
48 +
49 +LICENSE="MIT"
50 +SLOT="0"
51 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
52 +IUSE="test"
53 +
54 +# When bumping, please check setup.py for the proper py version
55 +PY_VER="1.5.0"
56 +
57 +# pathlib2 has been added to stdlib before py3.6, but pytest needs __fspath__
58 +# support, which only came in py3.6.
59 +RDEPEND="
60 + >=dev-python/atomicwrites-1.0[${PYTHON_USEDEP}]
61 + >=dev-python/attrs-17.4.0[${PYTHON_USEDEP}]
62 + >=dev-python/more-itertools-4.0.0[${PYTHON_USEDEP}]
63 + $(python_gen_cond_dep 'dev-python/pathlib2[${PYTHON_USEDEP}]' python2_7 python3_{4,5} )
64 + >=dev-python/pluggy-0.7[${PYTHON_USEDEP}]
65 + >=dev-python/py-${PY_VER}[${PYTHON_USEDEP}]
66 + >=dev-python/setuptools-40[${PYTHON_USEDEP}]
67 + >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
68 + virtual/python-funcsigs[${PYTHON_USEDEP}]"
69 +
70 +# flake & pytest-capturelog cause a number of tests to fail
71 +DEPEND="${RDEPEND}
72 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
73 + test? (
74 + >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}]
75 + dev-python/nose[${PYTHON_USEDEP}]
76 + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' -2)
77 + dev-python/requests[${PYTHON_USEDEP}]
78 + !!dev-python/flaky
79 + !!dev-python/pytest-capturelog
80 + !!<dev-python/pytest-xdist-1.22
81 + )"
82 +
83 +python_prepare_all() {
84 + grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency"
85 +
86 + # Something in the ebuild environment causes this to hang/error.
87 + # https://bugs.gentoo.org/598442
88 + rm testing/test_pdb.py || die
89 +
90 + distutils-r1_python_prepare_all
91 +}
92 +
93 +python_test() {
94 + # In v4.1.1, pytest started being picky about its own verbosity options.
95 + # running pytest on itself with -vv made 3 tests fail. This is why we don't
96 + # have it below.
97 + "${EPYTHON}" "${BUILD_DIR}"/lib/pytest.py --lsof -rfsxX \
98 + || die "tests failed with ${EPYTHON}"
99 +}