[gentoo-commits] repo/gentoo:master commit in: dev-python/traits/
commit: 395d757c4d0a5cd586e49f32aaf5c2802a3ad297 Author: Mikle Kolyada gentoo org> AuthorDate: Mon Apr 15 07:36:37 2019 + Commit: Mikle Kolyada gentoo org> CommitDate: Mon Apr 15 07:36:37 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=395d757c dev-python/traits: remove last rited package Signed-off-by: Mikle Kolyada gentoo.org> dev-python/traits/Manifest| 2 -- dev-python/traits/metadata.xml| 26 --- dev-python/traits/traits-4.5.0.ebuild | 38 - dev-python/traits/traits-4.6.0.ebuild | 40 --- 4 files changed, 106 deletions(-) diff --git a/dev-python/traits/Manifest b/dev-python/traits/Manifest deleted file mode 100644 index 2c5713d1371..000 --- a/dev-python/traits/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST traits-4.5.0.tar.gz 4853612 BLAKE2B 6c3d83718751de1e0553487a45d073c285ada96686558133fe61472c29c3d4661e1c0bce68340bada9667f3f9e0c8ed11050a714bc0c55424dbd4ebd17e3ad8e SHA512 d506b4395395898eb824896d299bfcde609e100025cf9a55cd7d7c47615545efd3b007e46549e564fbfb2d5882b36ae676843f211f168b2557c504849c5ef582 -DIST traits-4.6.0.tar.gz 434937 BLAKE2B 91d457b411f78b74a077f3bfaa8e3f627d0ddb959784ba0ce9e07e3fc8b76cddcaee1fd7293d8336c4fc0630d49527fd29e1a9ccba6b724846069f6282c643e8 SHA512 0fce336696e4cbb1d4ba63a07ad42867cb179a9efa6c348623036bd6d2eb791302539ae89994b11acd5a9f1be42a0febeb517db1716342b78aa71ca1277fde99 diff --git a/dev-python/traits/metadata.xml b/dev-python/traits/metadata.xml deleted file mode 100644 index 0e2713e3142..000 --- a/dev-python/traits/metadata.xml +++ /dev/null @@ -1,26 +0,0 @@ - -http://www.gentoo.org/dtd/metadata.dtd";> - - - horea.chr...@gmail.com - Horea Christian - - - proxy-ma...@gentoo.org - Proxy Maintainers - - - The traits package from the Enthought Tool Suite provides a - metaclass with special attributes that are called traits. A trait - is a type definition that can be used for normal Python object - attributes, giving the attributes some additional characteristics: - * Initialization: A trait attribute can have a default value - * Validation: A trait attribute is manifestly typed. - * Delegation: The value of a trait attribute can be contained in another object - * Notification: Setting the value of a trait attribute can fired callbacks - * Visualization: With the TraitsUI package, GUIs can be generated automatically from traited objects. - - - traits - - diff --git a/dev-python/traits/traits-4.5.0.ebuild b/dev-python/traits/traits-4.5.0.ebuild deleted file mode 100644 index aa0e34305e3..000 --- a/dev-python/traits/traits-4.5.0.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -PYTHON_COMPAT=( python2_7 ) - -inherit distutils-r1 virtualx - -DESCRIPTION="Enthought Tool Suite: Explicitly typed attributes for Python" -HOMEPAGE="http://docs.enthought.com/traits/ - https://github.com/enthought/traits - https://pypi.org/project/traits/"; -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux" -IUSE="test" - -RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] - test? ( ${RDEPEND} )" - -python_prepare_all() { - sed -i -e "s/'-O3'//g" setup.py || die - distutils-r1_python_prepare_all -} - -python_compile() { - local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" - distutils-r1_python_compile -} - -python_test() { - cd "${BUILD_DIR}"/lib || die - nosetests || die -} diff --git a/dev-python/traits/traits-4.6.0.ebuild b/dev-python/traits/traits-4.6.0.ebuild deleted file mode 100644 index d3d48e925b4..000 --- a/dev-python/traits/traits-4.6.0.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) - -inherit distutils-r1 virtualx - -DESCRIPTION="Enthought Tool Suite: Explicitly typed attributes for Python" -HOMEPAGE="http://docs.enthought.com/traits/ - https://github.com/enthought/traits - https://pypi.org/project/traits/"; -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux" -IUSE="test" - -RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]" - -DEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] - test? ( ${RDEPEND} )" - -python_prepare_all() { - sed -i -e "s/'-O3'//g" setup.py || die - distutils-r1_python_prep
[gentoo-commits] repo/gentoo:master commit in: dev-python/traits/
commit: 38c247138e7fa1ddff536cf4c6b2c045097baf30 Author: Mikle Kolyada gentoo org> AuthorDate: Thu Jul 12 00:30:04 2018 + Commit: Mikle Kolyada gentoo org> CommitDate: Thu Jul 12 00:30:19 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38c24713 dev-python/traits: ppc stable wrt bug #653766 Package-Manager: Portage-2.3.40, Repoman-2.3.9 dev-python/traits/traits-4.6.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-python/traits/traits-4.6.0.ebuild b/dev-python/traits/traits-4.6.0.ebuild index 83709fb5e37..d3d48e925b4 100644 --- a/dev-python/traits/traits-4.6.0.ebuild +++ b/dev-python/traits/traits-4.6.0.ebuild @@ -15,7 +15,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 ~ppc ppc64 x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux" IUSE="test" RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]"
[gentoo-commits] repo/gentoo:master commit in: dev-python/traits/
commit: ad5dfabda769789173db538008344c933ccecaa4 Author: Mikle Kolyada gentoo org> AuthorDate: Tue May 29 17:57:18 2018 + Commit: Mikle Kolyada gentoo org> CommitDate: Tue May 29 17:57:33 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad5dfabd dev-python/traits: amd64 stable wrt bug #653766 Package-Manager: Portage-2.3.24, Repoman-2.3.6 dev-python/traits/traits-4.6.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-python/traits/traits-4.6.0.ebuild b/dev-python/traits/traits-4.6.0.ebuild index 994f943ec28..3e515ed3506 100644 --- a/dev-python/traits/traits-4.6.0.ebuild +++ b/dev-python/traits/traits-4.6.0.ebuild @@ -15,7 +15,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux" IUSE="test" RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]"
[gentoo-commits] repo/gentoo:master commit in: dev-python/traits/
commit: f436b9b600c05e11bab6397f1f53e55c1e295ee4 Author: Thomas Deutschmann gentoo org> AuthorDate: Tue May 29 11:15:36 2018 + Commit: Thomas Deutschmann gentoo org> CommitDate: Tue May 29 11:15:36 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f436b9b6 dev-python/traits: x86 stable (bug #653766) Package-Manager: Portage-2.3.40, Repoman-2.3.9 dev-python/traits/traits-4.6.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-python/traits/traits-4.6.0.ebuild b/dev-python/traits/traits-4.6.0.ebuild index 2c80cfeca79..994f943ec28 100644 --- a/dev-python/traits/traits-4.6.0.ebuild +++ b/dev-python/traits/traits-4.6.0.ebuild @@ -15,7 +15,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +KEYWORDS="~amd64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux" IUSE="test" RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]"
[gentoo-commits] repo/gentoo:master commit in: dev-python/traits/
commit: 4f82115a4f5e1544caa2499b155fa822b6561cfe Author: Michał Górny gentoo org> AuthorDate: Sat Apr 21 19:58:21 2018 + Commit: Michał Górny gentoo org> CommitDate: Sun Apr 22 06:31:25 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f82115a dev-python/traits: Drop python@ from maintainers The Enthought suite is a huge pile of NIH. The ebuilds suffer from multiple bugs. The only reverse dependency is sci-visualization/mayavi that is maintained by sci@, and it only requires a few of the packages. dev-python/traits/metadata.xml | 4 1 file changed, 4 deletions(-) diff --git a/dev-python/traits/metadata.xml b/dev-python/traits/metadata.xml index c87181f3830..0e2713e3142 100644 --- a/dev-python/traits/metadata.xml +++ b/dev-python/traits/metadata.xml @@ -9,10 +9,6 @@ proxy-ma...@gentoo.org Proxy Maintainers - - pyt...@gentoo.org - Python - The traits package from the Enthought Tool Suite provides a metaclass with special attributes that are called traits. A trait
[gentoo-commits] repo/gentoo:master commit in: dev-python/traits/
commit: 3fbe00c8d4031a20d6594ee0daac6c0c464d76ba Author: David Seifert gentoo org> AuthorDate: Sat Nov 25 20:10:05 2017 + Commit: David Seifert gentoo org> CommitDate: Sat Nov 25 21:43:23 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fbe00c8 dev-python/traits: [QA] Consistent whitespace in metadata.xml dev-python/traits/metadata.xml | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/dev-python/traits/metadata.xml b/dev-python/traits/metadata.xml index 434824c9e01..c87181f3830 100644 --- a/dev-python/traits/metadata.xml +++ b/dev-python/traits/metadata.xml @@ -18,16 +18,13 @@ metaclass with special attributes that are called traits. A trait is a type definition that can be used for normal Python object attributes, giving the attributes some additional characteristics: - * Initialization: A trait attribute can have a default value - * Validation: A trait attribute is manifestly typed. - * Delegation: The value of a trait attribute can be contained in - another object - * Notification: Setting the value of a trait attribute can fired - callbacks - * Visualization: With the TraitsUI package, GUIs can be - generated automatically from traited objects. + * Initialization: A trait attribute can have a default value + * Validation: A trait attribute is manifestly typed. + * Delegation: The value of a trait attribute can be contained in another object + * Notification: Setting the value of a trait attribute can fired callbacks + * Visualization: With the TraitsUI package, GUIs can be generated automatically from traited objects. - traits + traits
[gentoo-commits] repo/gentoo:master commit in: dev-python/traits/
commit: 3d0d3634019486bb0c22f4cadd32eeadb8fa1834 Author: Michał Górny gentoo org> AuthorDate: Tue May 2 09:05:45 2017 + Commit: Michał Górny gentoo org> CommitDate: Tue May 2 09:47:58 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d0d3634 dev-python/traits: Clean old versions up dev-python/traits/traits-4.5.0-r1.ebuild | 45 1 file changed, 45 deletions(-) diff --git a/dev-python/traits/traits-4.5.0-r1.ebuild b/dev-python/traits/traits-4.5.0-r1.ebuild deleted file mode 100644 index cf82be9f549..000 --- a/dev-python/traits/traits-4.5.0-r1.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python{2_7,3_4,3_5} ) - -inherit distutils-r1 virtualx - -DESCRIPTION="Enthought Tool Suite: Explicitly typed attributes for Python" -HOMEPAGE="http://code.enthought.com/projects/traits/"; -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" -IUSE="test" - -RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]" - -DEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] - test? ( ${RDEPEND} )" - -python_prepare() { - if python_is_python3; then - einfo "Converting tests to Python 3 syntax" - 2to3 -w -n --no-diffs traits/testing || die - fi -} - -python_prepare_all() { - sed -i -e "s/'-O3'//g" setup.py || die - distutils-r1_python_prepare_all -} - -python_compile() { - local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" - distutils-r1_python_compile -} - -python_test() { - cd "${BUILD_DIR}"/lib || die - nosetests || die -}
[gentoo-commits] repo/gentoo:master commit in: dev-python/traits/
commit: 7cc1368b6f7c2c095c5faeae6a9f9eadbccdb114 Author: Horea Christian yandex com> AuthorDate: Sun Apr 16 08:20:34 2017 + Commit: Michał Górny gentoo org> CommitDate: Thu Apr 20 16:14:31 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cc1368b dev-python/traits: removed syntax conversion for tests Closes: https://github.com/gentoo/gentoo/pull/4428 Package-Manager: Portage-2.3.5, Repoman-2.3.2 dev-python/traits/traits-4.6.0.ebuild | 7 --- 1 file changed, 7 deletions(-) diff --git a/dev-python/traits/traits-4.6.0.ebuild b/dev-python/traits/traits-4.6.0.ebuild index cb749d80fa2..cfc695b51c5 100644 --- a/dev-python/traits/traits-4.6.0.ebuild +++ b/dev-python/traits/traits-4.6.0.ebuild @@ -22,13 +22,6 @@ DEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] test? ( ${RDEPEND} )" -python_prepare() { - if python_is_python3; then - einfo "Converting tests to Python 3 syntax" - 2to3 -w -n --no-diffs traits/testing || die - fi -} - python_prepare_all() { sed -i -e "s/'-O3'//g" setup.py || die distutils-r1_python_prepare_all
[gentoo-commits] repo/gentoo:master commit in: dev-python/traits/
commit: e3d6515bb57f485b2d0425f4fb578adc5790d530 Author: Michał Górny gentoo org> AuthorDate: Sun Apr 16 06:52:25 2017 + Commit: Michał Górny gentoo org> CommitDate: Sun Apr 16 06:56:24 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3d6515b dev-python/traits: Enable python3.6 (tests pass) dev-python/traits/traits-4.6.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-python/traits/traits-4.6.0.ebuild b/dev-python/traits/traits-4.6.0.ebuild index 480101a4440..cb749d80fa2 100644 --- a/dev-python/traits/traits-4.6.0.ebuild +++ b/dev-python/traits/traits-4.6.0.ebuild @@ -3,7 +3,7 @@ EAPI=6 -PYTHON_COMPAT=( python{2_7,3_4,3_5} ) +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) inherit distutils-r1 virtualx
[gentoo-commits] repo/gentoo:master commit in: dev-python/traits/
commit: 93b4bbd20e506a7758d5203da22d99a4ef14ae0f Author: Horea Christian yandex com> AuthorDate: Wed Apr 12 17:19:41 2017 + Commit: Michał Górny gentoo org> CommitDate: Sun Apr 16 06:56:24 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93b4bbd2 dev-python/traits: version bump to 4.6.0 Closes: https://github.com/gentoo/gentoo/pull/4412 dev-python/traits/Manifest| 1 + dev-python/traits/metadata.xml| 50 --- dev-python/traits/traits-4.6.0.ebuild | 45 +++ 3 files changed, 75 insertions(+), 21 deletions(-) diff --git a/dev-python/traits/Manifest b/dev-python/traits/Manifest index 7fb3adc7675..0cbc58b65a8 100644 --- a/dev-python/traits/Manifest +++ b/dev-python/traits/Manifest @@ -1 +1,2 @@ DIST traits-4.5.0.tar.gz 4853612 SHA256 5293a8786030b0b243e059f52004355b6939d7c0f1be2eb5a605b63cca484c84 SHA512 d506b4395395898eb824896d299bfcde609e100025cf9a55cd7d7c47615545efd3b007e46549e564fbfb2d5882b36ae676843f211f168b2557c504849c5ef582 WHIRLPOOL fc9a1c41d09579df7cbb63ba17696b343bda707f0f95a2a5dd289b36fa4ded8088ea46f03259f616d9f081ff20fbce208adbc7913e0466ee6de56bc7e08718ae +DIST traits-4.6.0.tar.gz 434937 SHA256 5d82345e0a34b88e394964eea1be47419530027aef7f0b20ad315b6ec6c68370 SHA512 0fce336696e4cbb1d4ba63a07ad42867cb179a9efa6c348623036bd6d2eb791302539ae89994b11acd5a9f1be42a0febeb517db1716342b78aa71ca1277fde99 WHIRLPOOL 4edddc716e2af68d000f7b81e49d8a77b6e9c3b34875634efc5fa611a89e732fb2ed3088db790e7f9915c721200753b3a3c71b95570b1889427618edfebffaca diff --git a/dev-python/traits/metadata.xml b/dev-python/traits/metadata.xml index b66607e5b62..434824c9e01 100644 --- a/dev-python/traits/metadata.xml +++ b/dev-python/traits/metadata.xml @@ -1,25 +1,33 @@ http://www.gentoo.org/dtd/metadata.dtd";> - - pyt...@gentoo.org - Python - - - The traits package from the Enthought Tool Suite provides a - metaclass with special attributes that are called traits. A trait - is a type definition that can be used for normal Python object - attributes, giving the attributes some additional characteristics: -* Initialization: A trait attribute can have a default value -* Validation: A trait attribute is manifestly typed. -* Delegation: The value of a trait attribute can be contained in another - object -* Notification: Setting the value of a trait attribute can fired - callbacks -* Visualization: With the TraitsUI package, GUIs can be generated - automatically from traited objects. - - - traits - + + horea.chr...@gmail.com + Horea Christian + + + proxy-ma...@gentoo.org + Proxy Maintainers + + + pyt...@gentoo.org + Python + + + The traits package from the Enthought Tool Suite provides a + metaclass with special attributes that are called traits. A trait + is a type definition that can be used for normal Python object + attributes, giving the attributes some additional characteristics: + * Initialization: A trait attribute can have a default value + * Validation: A trait attribute is manifestly typed. + * Delegation: The value of a trait attribute can be contained in + another object + * Notification: Setting the value of a trait attribute can fired + callbacks + * Visualization: With the TraitsUI package, GUIs can be + generated automatically from traited objects. + + + traits + diff --git a/dev-python/traits/traits-4.6.0.ebuild b/dev-python/traits/traits-4.6.0.ebuild new file mode 100644 index 000..480101a4440 --- /dev/null +++ b/dev-python/traits/traits-4.6.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +inherit distutils-r1 virtualx + +DESCRIPTION="Enthought Tool Suite: Explicitly typed attributes for Python" +HOMEPAGE="http://code.enthought.com/projects/traits/"; +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="test" + +RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( ${RDEPEND} )" + +python_prepare() { + if python_is_python3; then + einfo "Converting tests to Python 3 syntax" + 2to3 -w -n --no-diffs traits/testing || die + fi +} + +python_prepare_all() { + sed -i -e "s/'-O3'//g" setup.py || die + distutils-r1_python_prepare_all +} + +python_compile() { + python_is_python3 || loca
[gentoo-commits] repo/gentoo:master commit in: dev-python/traits/
commit: b5e743ad9882136458b8c2b252ac06f86613ae0f Author: Horea Christian yandex com> AuthorDate: Sun Sep 4 16:34:00 2016 + Commit: David Seifert gentoo org> CommitDate: Mon Sep 5 21:10:03 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5e743ad dev-python/traits: updated python compatibility and EAPI of testing package Package-Manager: portage-2.3.0 reverted copyright Closes: https://github.com/gentoo/gentoo/pull/2237 Signed-off-by: David Seifert gentoo.org> dev-python/traits/traits-4.5.0-r1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-python/traits/traits-4.5.0-r1.ebuild b/dev-python/traits/traits-4.5.0-r1.ebuild index fc8928c..4da5554 100644 --- a/dev-python/traits/traits-4.5.0-r1.ebuild +++ b/dev-python/traits/traits-4.5.0-r1.ebuild @@ -2,9 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI=5 +EAPI=6 -PYTHON_COMPAT=(python{2_7,3_3}) +PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} ) inherit distutils-r1 virtualx
[gentoo-commits] repo/gentoo:master commit in: dev-python/traits/
commit: 1abcecf6b7283dcc17b63cf55f33ad83d084a2a7 Author: Patrice Clement gentoo org> AuthorDate: Wed May 4 08:49:18 2016 + Commit: Patrice Clement gentoo org> CommitDate: Wed May 4 08:50:16 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1abcecf6 dev-python/traits: Add Python 3.3 to PYTHON_COMPAT. Convert tests to Python 3. Gentoo-Bug: https://bugs.gentoo.org/581316 Package-Manager: portage-2.2.26 dev-python/traits/traits-4.5.0-r1.ebuild | 46 1 file changed, 46 insertions(+) diff --git a/dev-python/traits/traits-4.5.0-r1.ebuild b/dev-python/traits/traits-4.5.0-r1.ebuild new file mode 100644 index 000..fc8928c --- /dev/null +++ b/dev-python/traits/traits-4.5.0-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=(python{2_7,3_3}) + +inherit distutils-r1 virtualx + +DESCRIPTION="Enthought Tool Suite: Explicitly typed attributes for Python" +HOMEPAGE="http://code.enthought.com/projects/traits/"; +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="test" + +RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( ${RDEPEND} )" + +python_prepare() { + if python_is_python3; then + einfo "Converting tests to Python 3 syntax" + 2to3 -w -n --no-diffs traits/testing || die + fi +} + +python_prepare_all() { + sed -i -e "s/'-O3'//g" setup.py || die + distutils-r1_python_prepare_all +} + +python_compile() { + local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" + distutils-r1_python_compile +} + +python_test() { + cd "${BUILD_DIR}"/lib || die + nosetests || die +}