diff options
author | Horea Christian <horea.christ@yandex.com> | 2019-03-22 03:02:13 +0100 |
---|---|---|
committer | Horea Christian <horea.christ@yandex.com> | 2019-03-22 03:02:13 +0100 |
commit | cfde1408403cb2e1ee4ee9b4106e47b6a9325525 (patch) | |
tree | e8a2be54011308473597d0f9a2640c867c3ae059 | |
parent | dev-python/grabbit: version bump (diff) | |
download | sci-cfde1408403cb2e1ee4ee9b4106e47b6a9325525.tar.gz sci-cfde1408403cb2e1ee4ee9b4106e47b6a9325525.tar.bz2 sci-cfde1408403cb2e1ee4ee9b4106e47b6a9325525.zip |
dev-python/traits: version bump 5.0.0
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Horea Christian <horea.christ@yandex.com>
-rw-r--r-- | dev-python/traits/Manifest | 1 | ||||
-rw-r--r-- | dev-python/traits/traits-5.0.0.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/traits/Manifest b/dev-python/traits/Manifest index 2c5713d13..961583d00 100644 --- a/dev-python/traits/Manifest +++ b/dev-python/traits/Manifest @@ -1,2 +1,3 @@ DIST traits-4.5.0.tar.gz 4853612 BLAKE2B 6c3d83718751de1e0553487a45d073c285ada96686558133fe61472c29c3d4661e1c0bce68340bada9667f3f9e0c8ed11050a714bc0c55424dbd4ebd17e3ad8e SHA512 d506b4395395898eb824896d299bfcde609e100025cf9a55cd7d7c47615545efd3b007e46549e564fbfb2d5882b36ae676843f211f168b2557c504849c5ef582 DIST traits-4.6.0.tar.gz 434937 BLAKE2B 91d457b411f78b74a077f3bfaa8e3f627d0ddb959784ba0ce9e07e3fc8b76cddcaee1fd7293d8336c4fc0630d49527fd29e1a9ccba6b724846069f6282c643e8 SHA512 0fce336696e4cbb1d4ba63a07ad42867cb179a9efa6c348623036bd6d2eb791302539ae89994b11acd5a9f1be42a0febeb517db1716342b78aa71ca1277fde99 +DIST traits-5.0.0.tar.gz 437001 BLAKE2B bfc9c69e4abbc341aaf8a62efcd443933097ce0612a5c6f98c2d16c7e21825f94d8fee0ec9cfbd7b30d406e68d4e006a3a12f629d507856c93093851334929cd SHA512 11e3b9b1f12d73df037fa95e4a5e48de7b7968a9598225a6c8de33e6250ff51c6b5ed056c0b55d90132139cb83b2b19121254152023408cb036c93971d3fa0e6 diff --git a/dev-python/traits/traits-5.0.0.ebuild b/dev-python/traits/traits-5.0.0.ebuild new file mode 100644 index 000000000..f0b7d6dd0 --- /dev/null +++ b/dev-python/traits/traits-5.0.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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? ( + dev-python/nose[${PYTHON_USEDEP}] + ${RDEPEND} + )" + +python_prepare_all() { + sed -i -e "s/'-O3'//g" setup.py || die + if use test; then + # Errors reported upstream: https://github.com/enthought/traits/issues/458 + sed -i \ + -e '1s/^/from nose.plugins.skip import SkipTest \n/' \ + -e "/class TraitTypesTest(unittest.TestCase):/i@SkipTest" \ + traits/tests/test_trait_types.py || die + fi + distutils-r1_python_prepare_all +} + +python_compile() { + python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" + distutils-r1_python_compile +} + +python_test() { + cd "${BUILD_DIR}"/lib || die + nosetests || die +} |