Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/webencodings/
Date: Wed, 27 Nov 2019 01:13:49
Message-Id: 1574817208.e1a0fc5291b91fe024bfa29837b4209846f9ab9e.chutzpah@gentoo
1 commit: e1a0fc5291b91fe024bfa29837b4209846f9ab9e
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Tue Nov 26 22:56:43 2019 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 27 01:13:28 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1a0fc52
7
8 dev-python/webencodings: Revbump, add py37
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-2.3.79, Repoman-2.3.18
12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
13
14 ...s-0.5.1.ebuild => webencodings-0.5.1-r1.ebuild} | 22 ++++++++--------------
15 dev-python/webencodings/webencodings-0.5.1.ebuild | 2 ++
16 2 files changed, 10 insertions(+), 14 deletions(-)
17
18 diff --git a/dev-python/webencodings/webencodings-0.5.1.ebuild b/dev-python/webencodings/webencodings-0.5.1-r1.ebuild
19 similarity index 62%
20 copy from dev-python/webencodings/webencodings-0.5.1.ebuild
21 copy to dev-python/webencodings/webencodings-0.5.1-r1.ebuild
22 index 4b2dbca8302..531b0c2dbcb 100644
23 --- a/dev-python/webencodings/webencodings-0.5.1.ebuild
24 +++ b/dev-python/webencodings/webencodings-0.5.1-r1.ebuild
25 @@ -1,9 +1,9 @@
26 # Copyright 1999-2019 Gentoo Authors
27 # Distributed under the terms of the GNU General Public License v2
28
29 -EAPI=6
30 +EAPI=7
31
32 -PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy pypy3 )
33 +PYTHON_COMPAT=( python{2_7,3_{5,6,7,8}} pypy{,3} )
34
35 inherit distutils-r1
36
37 @@ -13,24 +13,18 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
38
39 LICENSE="BSD"
40 SLOT="0"
41 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
42 -IUSE="test"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
44
45 -RDEPEND=""
46 -DEPEND="${RDEPEND}
47 +BDEPEND="${RDEPEND}
48 dev-python/setuptools[${PYTHON_USEDEP}]
49 - test? (
50 - dev-python/pytest[${PYTHON_USEDEP}]
51 - )"
52 +"
53 +
54 +distutils_enable_tests pytest
55
56 python_prepare_all(){
57 cat >> setup.cfg <<- EOF
58 - [pytest]
59 + [tool:pytest]
60 python_files=test*.py
61 EOF
62 distutils-r1_python_prepare_all
63 }
64 -
65 -python_test() {
66 - py.test -v -v || die
67 -}
68
69 diff --git a/dev-python/webencodings/webencodings-0.5.1.ebuild b/dev-python/webencodings/webencodings-0.5.1.ebuild
70 index 4b2dbca8302..c0ea1069cb8 100644
71 --- a/dev-python/webencodings/webencodings-0.5.1.ebuild
72 +++ b/dev-python/webencodings/webencodings-0.5.1.ebuild
73 @@ -23,6 +23,8 @@ DEPEND="${RDEPEND}
74 dev-python/pytest[${PYTHON_USEDEP}]
75 )"
76
77 +RESTRICT="!test? ( test )"
78 +
79 python_prepare_all(){
80 cat >> setup.cfg <<- EOF
81 [pytest]