commit: 022d5da8a7b0fa7d16141aa2f250b10f7962adea Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> AuthorDate: Wed Dec 30 16:45:55 2020 +0000 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> CommitDate: Sun Jan 3 03:31:15 2021 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=022d5da8
dev-python/traits: version bump, cleanup ebuild Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> Signed-off-by: Horea Christian <chr <AT> chymera.eu> dev-python/traits/traits-5.1.0.ebuild | 43 ---------------------- .../{traits-6.0.0.ebuild => traits-6.1.1.ebuild} | 20 +++------- 2 files changed, 6 insertions(+), 57 deletions(-) diff --git a/dev-python/traits/traits-5.1.0.ebuild b/dev-python/traits/traits-5.1.0.ebuild deleted file mode 100644 index e575e72a0..000000000 --- a/dev-python/traits/traits-5.1.0.ebuild +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8} ) - -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 - 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 -} diff --git a/dev-python/traits/traits-6.0.0.ebuild b/dev-python/traits/traits-6.1.1.ebuild similarity index 65% rename from dev-python/traits/traits-6.0.0.ebuild rename to dev-python/traits/traits-6.1.1.ebuild index f109a0c09..a5258b8a5 100644 --- a/dev-python/traits/traits-6.0.0.ebuild +++ b/dev-python/traits/traits-6.1.1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8,9} ) +PYTHON_COMPAT=( python3_{7,8,9} ) inherit distutils-r1 virtualx @@ -15,28 +15,20 @@ 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" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]" -DEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] - test? ( - dev-python/nose[${PYTHON_USEDEP}] - ${RDEPEND} - )" +distutils_enable_tests nose +# ToDo: Fix doc building: +# AttributeError: 'NoDefaultSpecified' object has no attribute '__name__' +#distutils_enable_sphinx docs/source --no-autodoc python_prepare_all() { sed -i -e "s/'-O3'//g" setup.py || die 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 ${EPYTHON} -m unittest discover || die