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/colander/
Date: Thu, 18 Feb 2016 12:38:42
Message-Id: 1455799060.8bfc89870f89c0096c86ba202c36044942bd9a25.patrick@gentoo
1 commit: 8bfc89870f89c0096c86ba202c36044942bd9a25
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 18 12:23:53 2016 +0000
4 Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 18 12:37:40 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bfc8987
7
8 dev-python/colander: Bump
9
10 Package-Manager: portage-2.2.27
11
12 dev-python/colander/Manifest | 1 +
13 dev-python/colander/colander-1.2.ebuild | 57 +++++++++++++++++++++++++++++++++
14 2 files changed, 58 insertions(+)
15
16 diff --git a/dev-python/colander/Manifest b/dev-python/colander/Manifest
17 index 7e61f32..45cce47 100644
18 --- a/dev-python/colander/Manifest
19 +++ b/dev-python/colander/Manifest
20 @@ -1 +1,2 @@
21 DIST colander-1.0.tar.gz 113800 SHA256 7389413266b9e680c9529c16d56284edf87e0d5de557948e75f41d65683c23b3 SHA512 f361520a12ebec4271580fe5be002bfbdd38fcd4cfb29fa41b9c37308636343dd25595f2e0bd8099bc96583d25644d2039996efefd9c0060fe39f3c46394a4f7 WHIRLPOOL c1ed492781ab276fc5c6cf7d0ce6a9393981c86ed06c9b113c2e37e01748595e8b5422fa24eaac3d3c2a68cd99f337ea9c65b8f0f536f955e2b9b621101278a5
22 +DIST colander-1.2.tar.gz 117130 SHA256 528f406cd1bf65cfd08958c9c8b839f37e96a65696a8f213ce81a59aae33dae4 SHA512 09bea3b0b4d2a5bd9539d36d0c43fe0d4042fd945d2e74a01c2c9639d19175f73356f006e69a22765ebffeb01310de7e73ee165826081afa14a46e1cd93995a4 WHIRLPOOL 372ad6050f017f534cd3cdaa3a499e766582da5346627517b8f05f080e3aff215f0363440fd0d7e1fb3f1d5855338aab347bbf757c70a7ca0978928fd027f219
23
24 diff --git a/dev-python/colander/colander-1.2.ebuild b/dev-python/colander/colander-1.2.ebuild
25 new file mode 100644
26 index 0000000..c83a358
27 --- /dev/null
28 +++ b/dev-python/colander/colander-1.2.ebuild
29 @@ -0,0 +1,57 @@
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=( python{2_7,3_3,3_4} pypy pypy3 )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="A simple schema-based serialization and deserialization library"
41 +HOMEPAGE="http://docs.pylonsproject.org/projects/colander/en/latest/ https://pypi.python.org/pypi/colander"
42 +MY_P=${P/_beta1/b1}
43 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
44 +
45 +S="${WORKDIR}/${MY_P}"
46 +
47 +# MIT license is used by included (modified) iso8601.py code.
48 +LICENSE="repoze MIT"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86"
51 +IUSE="doc test"
52 +
53 +# Depend on an ebuild of translationstring with Python 3 support.
54 +RDEPEND=">=dev-python/translationstring-1.1[${PYTHON_USEDEP}]"
55 +
56 +DEPEND="${RDEPEND}
57 + dev-python/setuptools[${PYTHON_USEDEP}]
58 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
59 + test? ( dev-python/nose[${PYTHON_USEDEP}]
60 + dev-python/iso8601[${PYTHON_USEDEP}] )"
61 +
62 +# Include COPYRIGHT.txt because the license seems to require it.
63 +DOCS=( CHANGES.rst COPYRIGHT.txt README.rst )
64 +
65 +python_prepare_all() {
66 + # Remove pylons theme since it's not included in source
67 + sed -e "/# Add and use Pylons theme/,+37d" -i docs/conf.py || die
68 +
69 + distutils-r1_python_prepare_all
70 +}
71 +
72 +python_compile_all() {
73 + if use doc; then
74 + # https://github.com/Pylons/colander/issues/38
75 + emake -C docs html SPHINXOPTS=""
76 + fi
77 +}
78 +
79 +python_test() {
80 + nosetests || die "Tests fail with ${EPYTHON}"
81 +}
82 +
83 +python_install_all() {
84 + use doc && local HTML_DOCS=( docs/_build/html/. )
85 + distutils-r1_python_install_all
86 +}