Gentoo Archives: gentoo-commits

From: Patrick Lauer <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/testresources/
Date: Wed, 02 Mar 2016 10:46:59
Message-Id: 1456915547.524a5dfa42f6ea18d17996bce15b61c1c1a604cb.patrick@gentoo
1 commit: 524a5dfa42f6ea18d17996bce15b61c1c1a604cb
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 2 10:41:35 2016 +0000
4 Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 2 10:45:47 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=524a5dfa
7
8 dev-python/testresources: Bump
9
10 Package-Manager: portage-2.2.27
11
12 dev-python/testresources/Manifest | 1 +
13 .../testresources/testresources-1.0.0.ebuild | 38 ++++++++++++++++++++++
14 2 files changed, 39 insertions(+)
15
16 diff --git a/dev-python/testresources/Manifest b/dev-python/testresources/Manifest
17 index 00ce084..2968d45 100644
18 --- a/dev-python/testresources/Manifest
19 +++ b/dev-python/testresources/Manifest
20 @@ -1 +1,2 @@
21 DIST testresources-0.2.7.tar.gz 32050 SHA256 ad0a117383dd463827b199eaa92829b4d6a3147fbd97459820df53bae81d7231 SHA512 29518f7326272c56a5f2f3f1f7741959dde9265ba5ce7e0c7d7afabd91bd44a519d1cad82a11a41944ff12d65e541536476f87afcac9a7cbb4869743a38547b7 WHIRLPOOL c414223960fbd6a1c612d2c79c8b8956ab858aaaa76331ddefb1315dbdd6c6bc1d3a7641c098d7d558b332ee8f4262d8921240adb63f581a3127da6a617dc200
22 +DIST testresources-1.0.0.tar.gz 44501 SHA256 e9b2c70ecade3135629e66945a7ac19c6df18c59b3d8f02e95d24bc8e066c7cf SHA512 7c9f9cbcc62066ab4a75d68780d88925484eeee23e2e0ef0395b63ec2a92968a6969d1bd6f483945e32ff5566e686b426f2f37daf4f803d2ef779032ea97cc6b WHIRLPOOL f4a390df289f4e452e197b58cc6df2a162a5843d64ba03fc3a6918c1f0b6124ee9c98e3e08bbb4c8780344749a7e961a4482a005e7b2e23359ecc56f6cef8192
23
24 diff --git a/dev-python/testresources/testresources-1.0.0.ebuild b/dev-python/testresources/testresources-1.0.0.ebuild
25 new file mode 100644
26 index 0000000..9121c8a
27 --- /dev/null
28 +++ b/dev-python/testresources/testresources-1.0.0.ebuild
29 @@ -0,0 +1,38 @@
30 +# Copyright 1999-2015 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +
36 +PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="A pyunit extension for managing expensive test resources"
41 +HOMEPAGE="https://launchpad.net/testresources"
42 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
47 +IUSE="test"
48 +
49 +DEPEND="
50 + dev-python/setuptools[${PYTHON_USEDEP}]
51 + test? (
52 + dev-python/nose[${PYTHON_USEDEP}]
53 + dev-python/testtools[${PYTHON_USEDEP}]
54 + dev-python/fixtures[${PYTHON_USEDEP}]
55 + )"
56 +RDEPEND=""
57 +
58 +python_prepare_all() {
59 + sed \
60 + -e 's:testBasicSortTests:_&:g' \
61 + -i testresources/tests/test_optimising_test_suite.py || die
62 + distutils-r1_python_prepare_all
63 +}
64 +
65 +python_test() {
66 + nosetests --verbose || die "Tests failed under ${EPYTHON}"
67 +}