Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest/
Date: Sat, 24 Feb 2018 03:21:34
Message-Id: 1519442469.40aabdd157702544bb336fcfc9a613d3727552c3.whissi@gentoo
1 commit: 40aabdd157702544bb336fcfc9a613d3727552c3
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 24 02:24:52 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 24 03:21:09 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40aabdd1
7
8 dev-python/pytest: Bump to v3.4.1
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 dev-python/pytest/Manifest | 1 +
13 dev-python/pytest/pytest-3.4.1.ebuild | 77 +++++++++++++++++++++++++++++++++++
14 2 files changed, 78 insertions(+)
15
16 diff --git a/dev-python/pytest/Manifest b/dev-python/pytest/Manifest
17 index 5fd8a3685ed..8aa18223f69 100644
18 --- a/dev-python/pytest/Manifest
19 +++ b/dev-python/pytest/Manifest
20 @@ -1,2 +1,3 @@
21 DIST pytest-3.0.3.tar.gz 731934 BLAKE2B 7fb57d75bd54eb8a31d9701fdf739119715c475eaaacae3cd038057c1d2bf43fa86ccdc45b3c84962708ef606976ab39ad41e0c3690c8b5f4c04d870579a384e SHA512 ec0b4a5f0d6673a339c5a70b402c004c23db7001005454329eeaea15d890f53b8f2740f6c6254499d0f915b9058bfdfa535d9f22847bb382a060d65204fce4af
22 DIST pytest-3.2.2.tar.gz 786396 BLAKE2B e669da930890e902b0323ec3a6685080ddd889e74655f7b4cb08ec421651f987597021a31471aab5a32d637b99620ce7792cbdf8f85561db3bb10ff06a446ba1 SHA512 6df3a50e7d1efeaf7a283920b16d1daf800798f422bc851b0aacd2bbd5cb0a88c95f9057fae49943b9dfe6527ed552cdf8d983b944ab91d0af252ee4f6eb82db
23 +DIST pytest-3.4.1.tar.gz 812928 BLAKE2B 27b25fcc5a268b1c92188c01bf16bf1eb4b8ced7d1a3c8095350ec55b1f1845a5d54bd6bd169142ca0d327f2f8d193774643174a356dd95fa07b3195bc1e8713 SHA512 75f728840cde6512619a03ce75fd0b04cb9d57a99f381366a0f9c10ffa3210448e7e85505357bfa9bfb0cca11cdedda2c0e091e5473ed82707a2597f234e659a
24
25 diff --git a/dev-python/pytest/pytest-3.4.1.ebuild b/dev-python/pytest/pytest-3.4.1.ebuild
26 new file mode 100644
27 index 00000000000..1070af40008
28 --- /dev/null
29 +++ b/dev-python/pytest/pytest-3.4.1.ebuild
30 @@ -0,0 +1,77 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Simple powerful testing with Python"
41 +HOMEPAGE="http://pytest.org/"
42 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="MIT"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux"
47 +IUSE="doc test"
48 +
49 +# When bumping, please check setup.py for the proper py version
50 +PY_VER="1.5.0"
51 +COMMON_DEPEND="
52 + >=dev-python/attrs-17.2.0[${PYTHON_USEDEP}]
53 + >=dev-python/py-${PY_VER}[${PYTHON_USEDEP}]
54 + dev-python/setuptools[${PYTHON_USEDEP}]
55 + >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
56 + doc? (
57 + dev-python/pyyaml[${PYTHON_USEDEP}]
58 + dev-python/sphinx[${PYTHON_USEDEP}]
59 + )"
60 +
61 +DEPEND="${COMMON_DEPEND}
62 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
63 + test? (
64 + >=dev-python/hypothesis-3.5.2[${PYTHON_USEDEP}]
65 + >dev-python/pytest-xdist-1.13[${PYTHON_USEDEP}]
66 + dev-python/nose[${PYTHON_USEDEP}]
67 + dev-python/mock[${PYTHON_USEDEP}]
68 + dev-python/requests[${PYTHON_USEDEP}]
69 + )"
70 +
71 +RDEPEND="
72 + ${COMMON_DEPEND}
73 + !<dev-python/logilab-common-1.3.0"
74 +
75 +python_prepare_all() {
76 + chmod o-w *egg*/* || die
77 + # Disable versioning of py.test script to avoid collision with
78 + # versioning performed by the eclass.
79 + sed -e "s/return points/return {'py.test': target}/" -i setup.py || die "sed failed"
80 + grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency"
81 +
82 + # Something in the ebuild environment causes this to hang/error.
83 + # https://bugs.gentoo.org/598442
84 + rm testing/test_pdb.py || die
85 +
86 + distutils-r1_python_prepare_all
87 +}
88 +
89 +python_test() {
90 + # test_nose.py not written to suit py3.2 in pypy3
91 + if [[ "${EPYTHON}" == pypy3 ]]; then
92 + "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py --lsof -rfsxX \
93 + --ignore=testing/BUILD_nose.py \
94 + || die "tests failed with ${EPYTHON}"
95 + else
96 + "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py --lsof -rfsxX testing || die "tests failed with ${EPYTHON}"
97 + fi
98 +}
99 +
100 +python_compile_all(){
101 + use doc && emake -C doc/en html
102 +}
103 +
104 +python_install_all() {
105 + use doc && HTML_DOCS=( doc/en/_build/html/. )
106 + distutils-r1_python_install_all
107 +}