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/epsilon/
Date: Thu, 18 Feb 2016 18:14:22
Message-Id: 1455819202.149ba2d33e2c94dc99867e8d072b4ca6a2d871c2.patrick@gentoo
1 commit: 149ba2d33e2c94dc99867e8d072b4ca6a2d871c2
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 18 17:59:41 2016 +0000
4 Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 18 18:13:22 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=149ba2d3
7
8 dev-python/epsilon: Bump
9
10 Package-Manager: portage-2.2.27
11
12 dev-python/epsilon/Manifest | 1 +
13 dev-python/epsilon/epsilon-0.7.1.ebuild | 56 +++++++++++++++++++++++++++++++++
14 2 files changed, 57 insertions(+)
15
16 diff --git a/dev-python/epsilon/Manifest b/dev-python/epsilon/Manifest
17 index f78f3c1..934b196 100644
18 --- a/dev-python/epsilon/Manifest
19 +++ b/dev-python/epsilon/Manifest
20 @@ -1,2 +1,3 @@
21 DIST Epsilon-0.6.0.tar.gz 96243 SHA256 2be3a6ef877c4e17ca9dadd6b484fe31bdf16c20b949ec6a8b15677e08c512fa SHA512 0ce7ba2eb86811dc50a0e86b9f3d85be1a4f930f86659c2381a1d80455e1e86362b8719c92ae2ad951a34264e5d0649ec5de96f1179734c7fab6c3abc6fb037b WHIRLPOOL 6aa363b44a42f29ec836cf46b2fdfe3bb57541a9fe282b57ea888f4906b9c438c9eb99d5a0876cb11108b7337a0691c45810a3e44579023f0b660e8752952120
22 DIST Epsilon-0.7.0.tar.gz 81218 SHA256 81419d50b17a20efd75440d43e4b07fe3c2a5e6d619f39318dab9031a0680032 SHA512 d1927ca431df3233a94296ca9e1f5dd70d6d61091d23f77df2222c6472d9a5f7b55c5c8dd2a75d0fead41af862c9e3a6a0ea9a31e21447459d5182f0d677d9b2 WHIRLPOOL 8cbab28e5e05b44b521c5f66494de1e2f4bee7713487cfb9d87bfcc108dc05b6534919934fd53cb1b0dc7aee633187351973b78cfdabf0584d6b294104a05a57
23 +DIST Epsilon-0.7.1.tar.gz 96820 SHA256 419ab2de80e6b201455775a939c158259af90695e59474a4a7bb3cd522a7193b SHA512 ecf34a402208e514c430b4b3785df9b29f3708026ceba1301a2db8760b55111f59e7c40f868f4b642e4c7dd6c78735edbc32b2ef96ec3582e90aa2d978f06842 WHIRLPOOL 69de1d74457ce6f376537c1a8ba3adbf8cae7b2e7325d8a61ba1a1a83e1b2cc88794b5016fa37b1808e32ff61834cb215b30146d93a0e6416623afd6a4609c08
24
25 diff --git a/dev-python/epsilon/epsilon-0.7.1.ebuild b/dev-python/epsilon/epsilon-0.7.1.ebuild
26 new file mode 100644
27 index 0000000..75b56be
28 --- /dev/null
29 +++ b/dev-python/epsilon/epsilon-0.7.1.ebuild
30 @@ -0,0 +1,56 @@
31 +# Copyright 1999-2015 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI="5"
36 +PYTHON_COMPAT=( python2_7 )
37 +
38 +inherit twisted-r1 eutils
39 +
40 +DESCRIPTION="Epsilon is a Python utilities package, most famous for its Time class"
41 +HOMEPAGE="http://divmod.org/trac/wiki/DivmodEpsilon https://pypi.python.org/pypi/Epsilon"
42 +SRC_URI="mirror://pypi/${TWISTED_PN:0:1}/${TWISTED_PN}/${TWISTED_P}.tar.gz"
43 +
44 +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
45 +IUSE="test"
46 +
47 +RDEPEND=">=dev-python/twisted-core-13.2.0[${PYTHON_USEDEP}]
48 + >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}]"
49 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
50 + test? ( dev-python/nose[${PYTHON_USEDEP}] )
51 + ${DEPEND}"
52 +
53 +PATCHES=( "${FILESDIR}/epsilon_plugincache_portagesandbox.patch" )
54 +
55 +# epsilon doesn't install any plugins, so override the default
56 +TWISTED_PLUGINS=()
57 +
58 +python_prepare_all() {
59 + # Rename to avoid file-collisions
60 + mv bin/benchmark bin/epsilon-benchmark
61 + sed -i \
62 + -e "s#bin/benchmark#bin/epsilon-benchmark#" \
63 + setup.py || die "sed failed"
64 +
65 + #These test are removed upstream
66 + rm -f epsilon/test/test_sslverify.py epsilon/sslverify.py || die
67 + #See bug 357157 comment 5 for Ian Delaney's explanation of this fix
68 + sed -e 's:month) 2004 9:month) 2004 14:' \
69 + -i epsilon/test/test_extime.py || die
70 + # Release tests need DivmodCombinator.
71 + rm -f epsilon/test/test_release.py* epsilon/release.py || die
72 +
73 + distutils-r1_python_prepare_all
74 +}
75 +
76 +python_install_all() {
77 + dodoc NAME.txt NEWS.txt
78 +
79 + distutils-r1_python_install_all
80 +}
81 +
82 +#Lets run some tests, having prepped them
83 +python_test() {
84 + # No testrunner seems stipulated within the source; pytest and nosetests both work
85 + nosetests ${PN}/test || die "testsuite failed under ${EPYTHON}"
86 +}