Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/traits/
Date: Sun, 16 Apr 2017 06:56:37
Message-Id: 1492325784.93b4bbd20e506a7758d5203da22d99a4ef14ae0f.mgorny@gentoo
1 commit: 93b4bbd20e506a7758d5203da22d99a4ef14ae0f
2 Author: Horea Christian <horea.christ <AT> yandex <DOT> com>
3 AuthorDate: Wed Apr 12 17:19:41 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 16 06:56:24 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93b4bbd2
7
8 dev-python/traits: version bump to 4.6.0
9
10 Closes: https://github.com/gentoo/gentoo/pull/4412
11
12 dev-python/traits/Manifest | 1 +
13 dev-python/traits/metadata.xml | 50 ++++++++++++++++++++---------------
14 dev-python/traits/traits-4.6.0.ebuild | 45 +++++++++++++++++++++++++++++++
15 3 files changed, 75 insertions(+), 21 deletions(-)
16
17 diff --git a/dev-python/traits/Manifest b/dev-python/traits/Manifest
18 index 7fb3adc7675..0cbc58b65a8 100644
19 --- a/dev-python/traits/Manifest
20 +++ b/dev-python/traits/Manifest
21 @@ -1 +1,2 @@
22 DIST traits-4.5.0.tar.gz 4853612 SHA256 5293a8786030b0b243e059f52004355b6939d7c0f1be2eb5a605b63cca484c84 SHA512 d506b4395395898eb824896d299bfcde609e100025cf9a55cd7d7c47615545efd3b007e46549e564fbfb2d5882b36ae676843f211f168b2557c504849c5ef582 WHIRLPOOL fc9a1c41d09579df7cbb63ba17696b343bda707f0f95a2a5dd289b36fa4ded8088ea46f03259f616d9f081ff20fbce208adbc7913e0466ee6de56bc7e08718ae
23 +DIST traits-4.6.0.tar.gz 434937 SHA256 5d82345e0a34b88e394964eea1be47419530027aef7f0b20ad315b6ec6c68370 SHA512 0fce336696e4cbb1d4ba63a07ad42867cb179a9efa6c348623036bd6d2eb791302539ae89994b11acd5a9f1be42a0febeb517db1716342b78aa71ca1277fde99 WHIRLPOOL 4edddc716e2af68d000f7b81e49d8a77b6e9c3b34875634efc5fa611a89e732fb2ed3088db790e7f9915c721200753b3a3c71b95570b1889427618edfebffaca
24
25 diff --git a/dev-python/traits/metadata.xml b/dev-python/traits/metadata.xml
26 index b66607e5b62..434824c9e01 100644
27 --- a/dev-python/traits/metadata.xml
28 +++ b/dev-python/traits/metadata.xml
29 @@ -1,25 +1,33 @@
30 <?xml version="1.0" encoding="UTF-8"?>
31 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
32 <pkgmetadata>
33 -<maintainer type="project">
34 - <email>python@g.o</email>
35 - <name>Python</name>
36 -</maintainer>
37 -<longdescription lang="en">
38 - The traits package from the Enthought Tool Suite provides a
39 - metaclass with special attributes that are called traits. A trait
40 - is a type definition that can be used for normal Python object
41 - attributes, giving the attributes some additional characteristics:
42 - * Initialization: A trait attribute can have a default value
43 - * Validation: A trait attribute is manifestly typed.
44 - * Delegation: The value of a trait attribute can be contained in another
45 - object
46 - * Notification: Setting the value of a trait attribute can fired
47 - callbacks
48 - * Visualization: With the TraitsUI package, GUIs can be generated
49 - automatically from traited objects.
50 -</longdescription>
51 -<upstream>
52 - <remote-id type="pypi">traits</remote-id>
53 -</upstream>
54 + <maintainer type="person">
55 + <email>horea.christ@×××××.com</email>
56 + <name>Horea Christian</name>
57 + </maintainer>
58 + <maintainer type="project">
59 + <email>proxy-maint@g.o</email>
60 + <name>Proxy Maintainers</name>
61 + </maintainer>
62 + <maintainer type="project">
63 + <email>python@g.o</email>
64 + <name>Python</name>
65 + </maintainer>
66 + <longdescription lang="en">
67 + The traits package from the Enthought Tool Suite provides a
68 + metaclass with special attributes that are called traits. A trait
69 + is a type definition that can be used for normal Python object
70 + attributes, giving the attributes some additional characteristics:
71 + * Initialization: A trait attribute can have a default value
72 + * Validation: A trait attribute is manifestly typed.
73 + * Delegation: The value of a trait attribute can be contained in
74 + another object
75 + * Notification: Setting the value of a trait attribute can fired
76 + callbacks
77 + * Visualization: With the TraitsUI package, GUIs can be
78 + generated automatically from traited objects.
79 + </longdescription>
80 + <upstream>
81 + <remote-id type="pypi">traits</remote-id>
82 + </upstream>
83 </pkgmetadata>
84
85 diff --git a/dev-python/traits/traits-4.6.0.ebuild b/dev-python/traits/traits-4.6.0.ebuild
86 new file mode 100644
87 index 00000000000..480101a4440
88 --- /dev/null
89 +++ b/dev-python/traits/traits-4.6.0.ebuild
90 @@ -0,0 +1,45 @@
91 +# Copyright 1999-2017 Gentoo Foundation
92 +# Distributed under the terms of the GNU General Public License v2
93 +
94 +EAPI=6
95 +
96 +PYTHON_COMPAT=( python{2_7,3_4,3_5} )
97 +
98 +inherit distutils-r1 virtualx
99 +
100 +DESCRIPTION="Enthought Tool Suite: Explicitly typed attributes for Python"
101 +HOMEPAGE="http://code.enthought.com/projects/traits/"
102 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
103 +
104 +LICENSE="BSD"
105 +SLOT="0"
106 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
107 +IUSE="test"
108 +
109 +RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]"
110 +
111 +DEPEND="
112 + dev-python/setuptools[${PYTHON_USEDEP}]
113 + test? ( ${RDEPEND} )"
114 +
115 +python_prepare() {
116 + if python_is_python3; then
117 + einfo "Converting tests to Python 3 syntax"
118 + 2to3 -w -n --no-diffs traits/testing || die
119 + fi
120 +}
121 +
122 +python_prepare_all() {
123 + sed -i -e "s/'-O3'//g" setup.py || die
124 + distutils-r1_python_prepare_all
125 +}
126 +
127 +python_compile() {
128 + python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
129 + distutils-r1_python_compile
130 +}
131 +
132 +python_test() {
133 + cd "${BUILD_DIR}"/lib || die
134 + nosetests || die
135 +}