Gentoo Archives: gentoo-commits

From: Andrey Grozin <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/nose_warnings_filters/
Date: Sun, 01 Mar 2020 04:42:24
Message-Id: 1583037731.c049ab69591cea8b1dc511850d3ae2d0afa4db5d.grozin@gentoo
1 commit: c049ab69591cea8b1dc511850d3ae2d0afa4db5d
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 1 04:42:11 2020 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 1 04:42:11 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c049ab69
7
8 nose_warnings_filters: add python3_8
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
12
13 .../nose_warnings_filters-0.1.5-r3.ebuild | 32 ++++++++++++++++++++++
14 1 file changed, 32 insertions(+)
15
16 diff --git a/dev-python/nose_warnings_filters/nose_warnings_filters-0.1.5-r3.ebuild b/dev-python/nose_warnings_filters/nose_warnings_filters-0.1.5-r3.ebuild
17 new file mode 100644
18 index 00000000000..b550c93ad00
19 --- /dev/null
20 +++ b/dev-python/nose_warnings_filters/nose_warnings_filters-0.1.5-r3.ebuild
21 @@ -0,0 +1,32 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +PYTHON_COMPAT=( python3_{6,7,8} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="A python module to inject warning filters during nosetest"
32 +HOMEPAGE="https://github.com/Carreau/nose_warnings_filters"
33 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
34 +
35 +LICENSE="MIT"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~arm64 ~ppc ~x86"
38 +IUSE="test"
39 +RESTRICT="!test? ( test )"
40 +
41 +RDEPEND="dev-python/nose[${PYTHON_USEDEP}]"
42 +DEPEND="
43 + dev-python/setuptools[${PYTHON_USEDEP}]
44 + test? ( ${RDEPEND} )"
45 +
46 +python_test() {
47 + # nose_warnings_filters doesn't have a proper
48 + # testing suite, hence we run the only testing
49 + # script available
50 + distutils_install_for_testing
51 + cd "${TEST_DIR}"/lib || die
52 + "${EPYTHON}" "${S}"/${PN}/testing/test_config.py || die "Failed running test script"
53 +}