Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest/
Date: Sun, 28 May 2017 17:29:42
Message-Id: 1495992574.d1f3e2c6f7958611ab8b352befba2c0ee2517509.floppym@gentoo
1 commit: d1f3e2c6f7958611ab8b352befba2c0ee2517509
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 28 16:27:48 2017 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Sun May 28 17:29:34 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1f3e2c6
7
8 dev-python/pytest: remove live ebuild
9
10 Package-Manager: Portage-2.3.6_p1, Repoman-2.3.2_p69
11
12 dev-python/pytest/pytest-9999.ebuild | 73 ------------------------------------
13 1 file changed, 73 deletions(-)
14
15 diff --git a/dev-python/pytest/pytest-9999.ebuild b/dev-python/pytest/pytest-9999.ebuild
16 deleted file mode 100644
17 index ff70a75459a..00000000000
18 --- a/dev-python/pytest/pytest-9999.ebuild
19 +++ /dev/null
20 @@ -1,73 +0,0 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=6
25 -
26 -PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 )
27 -
28 -inherit distutils-r1 git-r3
29 -
30 -DESCRIPTION="simple powerful testing with Python"
31 -HOMEPAGE="http://pytest.org/ https://pypi.python.org/pypi/pytest"
32 -SRC_URI=""
33 -EGIT_REPO_URI="https://github.com/pytest-dev/pytest.git"
34 -
35 -LICENSE="MIT"
36 -SLOT="0"
37 -KEYWORDS=""
38 -IUSE="doc test"
39 -
40 -# When bumping, please check setup.py for the proper py version
41 -PY_VER="1.4.29"
42 -RDEPEND=">=dev-python/py-${PY_VER}[${PYTHON_USEDEP}]"
43 -
44 -# dev-python/pluggy
45 -# https://github.com/hpk42/pluggy
46 -# See https://github.com/pytest-dev/pytest/issues/944
47 -# for why not now
48 -
49 -#pexpect dep based on https://bitbucket.org/hpk42/pytest/issue/386/tests-fail-with-pexpect-30
50 -DEPEND="${RDEPEND}
51 - dev-python/setuptools[${PYTHON_USEDEP}]
52 - test? ( dev-python/pexpect[${PYTHON_USEDEP}] )
53 - doc? (
54 - >=dev-python/sphinx-1.2.3[${PYTHON_USEDEP}]
55 - dev-python/pyyaml[${PYTHON_USEDEP}]
56 - dev-python/regendoc[${PYTHON_USEDEP}]
57 - )"
58 -
59 -python_prepare_all() {
60 - # Disable versioning of py.test script to avoid collision with
61 - # versioning performed by the eclass.
62 - sed -e "s/return points/return {'py.test': target}/" -i setup.py || die "sed failed"
63 - grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency"
64 -
65 - # Prevent un-needed d'loading
66 - sed -e "s/'sphinx.ext.intersphinx', //" -i doc/en/conf.py || die
67 -
68 - distutils-r1_python_prepare_all
69 -}
70 -
71 -python_compile_all() {
72 - if use doc; then
73 - mkdir doc/en/.build || die
74 - emake -C doc/en html
75 - fi
76 -}
77 -
78 -python_test() {
79 - # test_nose.py not written to suit py3.2 in pypy3
80 - if [[ "${EPYTHON}" == pypy3 ]]; then
81 - "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py -x -v \
82 - --ignore=testing/BUILD_nose.py \
83 - || die "tests failed with ${EPYTHON}"
84 - else
85 - "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py -x -v --runpytest=subprocess \
86 - || die "tests failed with ${EPYTHON}"
87 - fi
88 -}
89 -
90 -python_install_all() {
91 - use doc && HTML_DOCS=( doc/en/_build/html/. )
92 - distutils-r1_python_install_all
93 -}