Gentoo Archives: gentoo-commits

From: "Ian Delaney (idella4)" <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/imapclient: imapclient-0.11.ebuild ChangeLog
Date: Sat, 31 May 2014 03:59:41
Message-Id: 20140531035935.8922820036@flycatcher.gentoo.org
1 idella4 14/05/31 03:59:35
2
3 Modified: ChangeLog
4 Added: imapclient-0.11.ebuild
5 Log:
6 bump; drop py2.6 pypy2_0 support
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
9
10 Revision Changes Path
11 1.3 dev-python/imapclient/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/imapclient/ChangeLog?rev=1.3&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/imapclient/ChangeLog?rev=1.3&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/imapclient/ChangeLog?r1=1.2&r2=1.3
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/imapclient/ChangeLog,v
20 retrieving revision 1.2
21 retrieving revision 1.3
22 diff -u -r1.2 -r1.3
23 --- ChangeLog 31 Mar 2014 21:15:12 -0000 1.2
24 +++ ChangeLog 31 May 2014 03:59:35 -0000 1.3
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-python/imapclient
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/imapclient/ChangeLog,v 1.2 2014/03/31 21:15:12 mgorny Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/imapclient/ChangeLog,v 1.3 2014/05/31 03:59:35 idella4 Exp $
30 +
31 +*imapclient-0.11 (31 May 2014)
32 +
33 + 31 May 2014; Ian Delaney <idella4@g.o>
34 + +files/imapclient-0.11-system-six.patch, +imapclient-0.11.ebuild:
35 + bump; drop py2.6 pypy2_0 support
36
37 31 Mar 2014; Michał Górny <mgorny@g.o> imapclient-0.10.2.ebuild:
38 Add support for the new PyPy slotting.
39
40
41
42 1.1 dev-python/imapclient/imapclient-0.11.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/imapclient/imapclient-0.11.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/imapclient/imapclient-0.11.ebuild?rev=1.1&content-type=text/plain
46
47 Index: imapclient-0.11.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-python/imapclient/imapclient-0.11.ebuild,v 1.1 2014/05/31 03:59:35 idella4 Exp $
52
53 EAPI=5
54 # "Python versions 2.6, 2.7, 3.2 and 3.3 are officially supported" therefore
55 # NOT adding py3.4 since it doesn't testsuite desn't even get started since it's clearly not ready
56 PYTHON_COMPAT=( python{2_7,3_2,3_3} pypy )
57
58 inherit distutils-r1
59
60 MY_PN="IMAPClient"
61 MY_P="${MY_PN}-${PV}"
62
63 DESCRIPTION="easy-to-use, pythonic, and complete IMAP client library"
64 HOMEPAGE="http://imapclient.freshfoo.com/"
65 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
66
67 LICENSE="BSD"
68 SLOT="0"
69 KEYWORDS="~amd64 ~x86"
70 IUSE="doc examples test"
71
72 RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
73 DEPEND="${RDEPEND}
74 dev-python/setuptools[${PYTHON_USEDEP}]
75 test? ( dev-python/mock[${PYTHON_USEDEP}] )"
76
77 S=${WORKDIR}/${MY_P}
78
79 python_prepare_all() {
80 # use system setuptools
81 sed -i '/use_setuptools/d' setup.py || die
82
83 # drop explicit mock version test dep
84 sed -i "/tests_require/s:'mock==.\+':'mock':" setup.py || die
85
86 # use system six library. patch proven less preferable to use of sed (< maintenance)
87 # but a copy of the working hunks from prior version works fine for now.
88 rm imapclient/six.py || die
89 epatch "${FILESDIR}"/${P}-system-six.patch
90 sed -e 's:from .six:from six:g' \
91 -e 's:from . import six:import six:g' \
92 -i ${PN}/*.py || die
93
94 distutils-r1_python_prepare_all
95 }
96
97 python_test() {
98 esetup.py test
99 }
100
101 python_install() {
102 distutils-r1_python_install
103 # don't install examples and tests in module dir
104 rm -r "${ED}"$(python_get_sitedir)/imapclient/{examples,test} || die
105 }
106
107 python_install_all() {
108 local DOCS=( AUTHORS HACKING.rst NEWS.rst README.rst THANKS )
109 use doc && local HTML_DOCS=( doc/html/. )
110 distutils-r1_python_install_all
111 use examples && dodoc -r ${PN}/examples
112 }