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: Mon, 10 Sep 2018 19:52:03
Message-Id: 1536609089.68f0a863ac462cfd882825a186cf41e16ec85484.vdupras@gentoo
1 commit: 68f0a863ac462cfd882825a186cf41e16ec85484
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 10 19:49:36 2018 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 10 19:51:29 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68f0a863
7
8 dev-python/pytest: bump to 3.8.0
9
10 Need to drop ~ia64 and ~amd64-fbsd because of new dev-python/pathlib2
11 dependency. Will rekeyword in existing 3.6.3 keywording bug.
12
13 Bug: https://bugs.gentoo.org/661306
14 Package-Manager: Portage-2.3.49, Repoman-2.3.10
15
16 dev-python/pytest/Manifest | 1 +
17 dev-python/pytest/pytest-3.8.0.ebuild | 89 +++++++++++++++++++++++++++++++++++
18 2 files changed, 90 insertions(+)
19
20 diff --git a/dev-python/pytest/Manifest b/dev-python/pytest/Manifest
21 index 0f9eee021dc..7529890c891 100644
22 --- a/dev-python/pytest/Manifest
23 +++ b/dev-python/pytest/Manifest
24 @@ -3,3 +3,4 @@ DIST pytest-3.2.2.tar.gz 786396 BLAKE2B e669da930890e902b0323ec3a6685080ddd889e7
25 DIST pytest-3.4.1.tar.gz 812928 BLAKE2B 27b25fcc5a268b1c92188c01bf16bf1eb4b8ced7d1a3c8095350ec55b1f1845a5d54bd6bd169142ca0d327f2f8d193774643174a356dd95fa07b3195bc1e8713 SHA512 75f728840cde6512619a03ce75fd0b04cb9d57a99f381366a0f9c10ffa3210448e7e85505357bfa9bfb0cca11cdedda2c0e091e5473ed82707a2597f234e659a
26 DIST pytest-3.4.2.tar.gz 812719 BLAKE2B 96623d6cdea4bd79778175c18c949938505f1862010f700f9a8cb85f445910381af391a5b69e664fbbfc254bf46502c798c72026772070236a0a3bca7aeeb3d6 SHA512 787065ab76d4482799bb2da9f024c9c383e68cc1cc01f3b80f6ed9444ca6383d20953615696ed4dd01668777b094cf5002b23c4ce51828879dcf8ebf2170c71b
27 DIST pytest-3.6.3.tar.gz 830949 BLAKE2B 4c0df5d157b8bb0ac6261a793aac2a8074c869b1a7cbda3eda600c79648b3722eaf2a57514c1fece60e0aac324b8ed09e8e889dda268619204e9e1f1637e1c9b SHA512 e18d8e972cb1b05b037b9441eea5981ce036d8e2c2bab80f6e50f283df9bd08740296133990424cf78449f6d3d2fbd1d59709770aa972af99fe061583f2d79a7
28 +DIST pytest-3.8.0.tar.gz 865922 BLAKE2B 821051de2c502c892841f59124f6cdbfb6f31ebd8661bf242484c7c3f687ce75f9c4eb0984f7dabed0aff44277dcbbeb9f14c4cde2f6b152aad69f3769e27bc8 SHA512 26efe2bcd6c86c55cb17a17ad3cfe0762ba5d61adf9830fe5780c0c90df65bbeb2346abb8310c6123c308ed0e641d4cf325ca9ac16dcd8994b6a636bcfd386a4
29
30 diff --git a/dev-python/pytest/pytest-3.8.0.ebuild b/dev-python/pytest/pytest-3.8.0.ebuild
31 new file mode 100644
32 index 00000000000..1ed99d6919c
33 --- /dev/null
34 +++ b/dev-python/pytest/pytest-3.8.0.ebuild
35 @@ -0,0 +1,89 @@
36 +# Copyright 1999-2018 Gentoo Foundation
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="~amd64 ~arm ~ppc64 ~x86"
52 +# doc apparently requires sphinxcontrib_trio, not yet packaged
53 +IUSE="test" # doc
54 +
55 +# When bumping, please check setup.py for the proper py version
56 +PY_VER="1.5.0"
57 +
58 +# pathlib2 has been added to stdlib before py3.6, but pytest needs __fspath__
59 +# support, which only came in py3.6.
60 +COMMON_DEPEND="
61 + >=dev-python/atomicwrites-1.0[${PYTHON_USEDEP}]
62 + >=dev-python/attrs-17.4.0[${PYTHON_USEDEP}]
63 + >=dev-python/more-itertools-4.0.0[${PYTHON_USEDEP}]
64 + $(python_gen_cond_dep 'dev-python/pathlib2[${PYTHON_USEDEP}]' python2_7 python3_{4,5} )
65 + >=dev-python/pluggy-0.7[${PYTHON_USEDEP}]
66 + >=dev-python/py-${PY_VER}[${PYTHON_USEDEP}]
67 + dev-python/setuptools[${PYTHON_USEDEP}]
68 + >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
69 + virtual/python-funcsigs[${PYTHON_USEDEP}]"
70 +
71 +# doc? (
72 +# dev-python/pyyaml[${PYTHON_USEDEP}]
73 +# dev-python/sphinx[${PYTHON_USEDEP}]
74 +# )"
75 +
76 +# flake & pytest-capturelog cause a number of tests to fail
77 +DEPEND="${COMMON_DEPEND}
78 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
79 + test? (
80 + >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}]
81 + >=dev-python/pytest-xdist-1.22.2[${PYTHON_USEDEP}]
82 + dev-python/nose[${PYTHON_USEDEP}]
83 + dev-python/mock[${PYTHON_USEDEP}]
84 + dev-python/requests[${PYTHON_USEDEP}]
85 + !!dev-python/flaky
86 + !!dev-python/pytest-capturelog
87 + )"
88 +
89 +RDEPEND="
90 + ${COMMON_DEPEND}
91 + !<dev-python/logilab-common-1.3.0"
92 +
93 +python_prepare_all() {
94 + local PATCHES=(
95 + "${FILESDIR}"/pytest-3.6.3-pypy-syntaxerror-offset.patch
96 + )
97 +
98 + grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency"
99 +
100 + # Something in the ebuild environment causes this to hang/error.
101 + # https://bugs.gentoo.org/598442
102 + rm testing/test_pdb.py || die
103 +
104 + # those tests appear to hang with python3.5+; TODO: investigate why
105 + sed -i -e 's:test_runtest_location_shown_before_test_starts:_&:' \
106 + testing/test_terminal.py || die
107 + sed -i -e 's:test_trial_pdb:_&:' testing/test_unittest.py || die
108 +
109 + distutils-r1_python_prepare_all
110 +}
111 +
112 +python_test() {
113 + "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py --lsof -rfsxX \
114 + -vv testing || die "tests failed with ${EPYTHON}"
115 +}
116 +
117 +#python_compile_all() {
118 +# use doc && emake -C doc/en html
119 +#}
120 +#
121 +#python_install_all() {
122 +# use doc && HTML_DOCS=( doc/en/_build/html/. )
123 +# distutils-r1_python_install_all
124 +#}