Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cached-property/
Date: Mon, 02 Mar 2020 05:42:50
Message-Id: 1583127755.44ca5be66923dc2bb1a93b80f7e918ad2df4879a.mgorny@gentoo
1 commit: 44ca5be66923dc2bb1a93b80f7e918ad2df4879a
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 2 05:21:32 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 2 05:42:35 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44ca5be6
7
8 dev-python/cached-property: Remove test compat with removed impls
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../cached-property/cached-property-1.5.1.ebuild | 24 ++++++----------------
13 1 file changed, 6 insertions(+), 18 deletions(-)
14
15 diff --git a/dev-python/cached-property/cached-property-1.5.1.ebuild b/dev-python/cached-property/cached-property-1.5.1.ebuild
16 index 879fa766f1b..88b62f7a15e 100644
17 --- a/dev-python/cached-property/cached-property-1.5.1.ebuild
18 +++ b/dev-python/cached-property/cached-property-1.5.1.ebuild
19 @@ -13,28 +13,16 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
20 LICENSE="BSD"
21 SLOT="0"
22 KEYWORDS="amd64 ppc64 x86"
23 -IUSE="test"
24 -RESTRICT="!test? ( test )"
25
26 -DEPEND="test? (
27 - dev-python/pytest
28 - dev-python/freezegun
29 - )"
30 +DEPEND="
31 + test? (
32 + dev-python/freezegun[${PYTHON_USEDEP}]
33 + )"
34 RDEPEND=""
35
36 +distutils_enable_tests pytest
37 +
38 src_install() {
39 distutils-r1_src_install
40 dodoc README.rst HISTORY.rst CONTRIBUTING.rst AUTHORS.rst
41 }
42 -
43 -python_test() {
44 - local ignore=""
45 - if [[ ${EPYTHON} == python2.7 ]]; then
46 - ignore="--ignore=tests/test_coroutine_cached_property.py \
47 - --ignore=tests/test_async_cached_property.py"
48 - fi
49 - if [[ ${EPYTHON} == python3.4 ]]; then
50 - ignore="--ignore=test_async_cached_property.py"
51 - fi
52 - py.test -v ${ignore} tests/ || die
53 -}