From 59a270d65f8d10f8c4606d190880ed83f136e5f9 Mon Sep 17 00:00:00 2001 From: Sebastien Fabbro Date: Sat, 12 Dec 2009 16:26:37 +0000 Subject: Version bump. Disable failing tests due to bad reference HDF5 files (reported upstream), thanks Kacper Kowalik. Removed old version, even x86 stable 0.8 because depending on Numeric/numarray which are buggy and obsolete with python > 2.5. Simplified the ebuild. (Portage version: 2.2_rc56/cvs/Linux x86_64) --- dev-python/pytables/ChangeLog | 12 ++++- .../files/pytables-2.1.2-failingtests.patch | 48 ++++++++++++++++++++ dev-python/pytables/metadata.xml | 8 ++++ dev-python/pytables/pytables-0.8.ebuild | 19 -------- dev-python/pytables/pytables-1.4.ebuild | 48 -------------------- dev-python/pytables/pytables-2.1.1.ebuild | 53 ---------------------- dev-python/pytables/pytables-2.1.2.ebuild | 49 ++++++++++++++++++++ 7 files changed, 116 insertions(+), 121 deletions(-) create mode 100644 dev-python/pytables/files/pytables-2.1.2-failingtests.patch delete mode 100644 dev-python/pytables/pytables-0.8.ebuild delete mode 100644 dev-python/pytables/pytables-1.4.ebuild delete mode 100644 dev-python/pytables/pytables-2.1.1.ebuild create mode 100644 dev-python/pytables/pytables-2.1.2.ebuild (limited to 'dev-python/pytables') diff --git a/dev-python/pytables/ChangeLog b/dev-python/pytables/ChangeLog index 55c346a2b08a..485824e80b1f 100644 --- a/dev-python/pytables/ChangeLog +++ b/dev-python/pytables/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for dev-python/pytables # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pytables/ChangeLog,v 1.30 2009/09/04 18:41:22 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pytables/ChangeLog,v 1.31 2009/12/12 16:26:37 bicatali Exp $ + +*pytables-2.1.2 (12 Dec 2009) + + 12 Dec 2009; Sébastien Fabbro -pytables-0.8.ebuild, + -pytables-1.4.ebuild, -pytables-2.1.1.ebuild, +pytables-2.1.2.ebuild, + +files/pytables-2.1.2-failingtests.patch, metadata.xml: + Version bump. Disable failing tests due to bad reference HDF5 files + (reported upstream), thanks Kacper Kowalik. Removed old version, even x86 + stable 0.8 because depending on Numeric/numarray which are buggy and + obsolete with python > 2.5 04 Sep 2009; Patrick Lauer -pytables-2.0.2.ebuild, -pytables-2.0.3.ebuild, -pytables-2.1.ebuild: diff --git a/dev-python/pytables/files/pytables-2.1.2-failingtests.patch b/dev-python/pytables/files/pytables-2.1.2-failingtests.patch new file mode 100644 index 000000000000..88ebd51e8307 --- /dev/null +++ b/dev-python/pytables/files/pytables-2.1.2-failingtests.patch @@ -0,0 +1,48 @@ +--- tables/tests.orig/test_backcompat.py 2009-12-12 16:48:22.000000000 +0000 ++++ tables/tests/test_backcompat.py 2009-12-12 16:46:17.000000000 +0000 +@@ -154,7 +154,7 @@ + lzo_avail = whichLibVersion("lzo") is not None + for n in range(niter): + theSuite.addTest(unittest.makeSuite(VLArrayTestCase)) +- theSuite.addTest(unittest.makeSuite(TimeTestCase)) ++ #theSuite.addTest(unittest.makeSuite(TimeTestCase)) + if lzo_avail: + theSuite.addTest(unittest.makeSuite(Table2_1LZO)) + theSuite.addTest(unittest.makeSuite(Tables_LZO1)) +--- tables/tests.orig/test_basics.py 2009-12-12 16:48:22.000000000 +0000 ++++ tables/tests/test_basics.py 2009-12-12 16:44:46.000000000 +0000 +@@ -1544,7 +1544,8 @@ + """Checking opening of a generic HDF5 file""" + + # Open an existing generic HDF5 file +- fileh = openFile(self._testFilename("ex-noattr.h5"), mode="r") ++ #fileh = openFile(self._testFilename("ex-noattr.h5"), mode="r") ++ fileh = openFile("ex-noattr.h5", mode="r") + + # Check for some objects inside + +@@ -2263,11 +2264,11 @@ + theSuite.addTest(unittest.makeSuite(NodeCacheOpenFile)) + theSuite.addTest(unittest.makeSuite(NoNodeCacheOpenFile)) + theSuite.addTest(unittest.makeSuite(DictNodeCacheOpenFile)) +- theSuite.addTest(unittest.makeSuite(CheckFileTestCase)) ++ #theSuite.addTest(unittest.makeSuite(CheckFileTestCase)) + theSuite.addTest(unittest.makeSuite(PythonAttrsTestCase)) + theSuite.addTest(unittest.makeSuite(StateTestCase)) + theSuite.addTest(unittest.makeSuite(FlavorTestCase)) +- theSuite.addTest(unittest.makeSuite(OldFlavorTestCase)) ++ #theSuite.addTest(unittest.makeSuite(OldFlavorTestCase)) + + return theSuite + +--- tables/tests.orig/test_hdf5compat.py 2009-12-12 16:55:55.000000000 +0000 ++++ tables/tests/test_hdf5compat.py 2009-12-12 16:56:33.000000000 +0000 +@@ -337,7 +337,7 @@ + theSuite.addTest(unittest.makeSuite(I32BETestCase)) + theSuite.addTest(unittest.makeSuite(I32LETestCase)) + +- theSuite.addTest(unittest.makeSuite(ChunkedCompoundTestCase)) ++ #theSuite.addTest(unittest.makeSuite(ChunkedCompoundTestCase)) + theSuite.addTest(unittest.makeSuite(ContiguousCompoundTestCase)) + theSuite.addTest(unittest.makeSuite(ContiguousCompoundAppendTestCase)) + diff --git a/dev-python/pytables/metadata.xml b/dev-python/pytables/metadata.xml index de483c53568f..363187bc3ca5 100644 --- a/dev-python/pytables/metadata.xml +++ b/dev-python/pytables/metadata.xml @@ -2,4 +2,12 @@ python + + PyTables is a hierarchical database package designed to efficently + manage very large amounts of data. PyTables is built on top of the + HDF5 library and the NumPy package. It features an object-oriented + interface that, combined with natural naming and C-code generated + from Pyrex sources, makes it a fast, yet extremely easy to use tool + for interactively save and retrieve large amounts of data. + diff --git a/dev-python/pytables/pytables-0.8.ebuild b/dev-python/pytables/pytables-0.8.ebuild deleted file mode 100644 index e2b11e75aef8..000000000000 --- a/dev-python/pytables/pytables-0.8.ebuild +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pytables/pytables-0.8.ebuild,v 1.5 2005/02/07 04:43:45 fserb Exp $ - -inherit distutils - -DESCRIPTION="Module for Python that use HDF5" -SRC_URI="mirror://sourceforge/pytables/${P}.tar.gz" -HOMEPAGE="http://pytables.sourceforge.net/" - -DEPEND=">=dev-lang/python-2.2 - >=sys-devel/gcc-3.2 - sci-libs/hdf5 - dev-python/numarray" - -SLOT="0" -KEYWORDS="x86" -LICENSE="as-is" -IUSE="" diff --git a/dev-python/pytables/pytables-1.4.ebuild b/dev-python/pytables/pytables-1.4.ebuild deleted file mode 100644 index eda544f584fe..000000000000 --- a/dev-python/pytables/pytables-1.4.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pytables/pytables-1.4.ebuild,v 1.3 2008/02/23 13:21:09 dev-zero Exp $ - -NEED_PYTHON="2.2" - -inherit distutils - -DESCRIPTION="Module for Python that use HDF5" -SRC_URI="mirror://sourceforge/pytables/${P}.tar.gz" -HOMEPAGE="http://pytables.sourceforge.net/" -SLOT="0" -KEYWORDS="~amd64 ~ia64 ~ppc ~x86" -LICENSE="BSD" -IUSE="doc examples" - -DEPEND="sci-libs/hdf5 - >=dev-python/numarray-1.5.2" -RDEPEND="${DEPEND}" - -src_install() { - DOCS="ANNOUNCE.txt RELEASE-NOTES.txt THANKS TODO.txt VERSION" - - distutils_src_install - - if use examples; then - insinto /usr/share/doc/${PF} - doins -r examples - fi - - if use doc; then - cd doc - - dohtml -r html/* - - docinto text - dodoc text/* - - insinto /usr/share/doc/${PF} - doins -r usersguide.pdf scripts/ - fi -} - -src_test() { - python_version - "${python}" setup.py install --root="${T}" --no-compile "$@" || die "temporary install failed" - PYTHONPATH="${T}/usr/$(get_libdir)/python${PYVER}/site-packages" "${python}" tables/tests/test_all.py || die "tests failed" -} diff --git a/dev-python/pytables/pytables-2.1.1.ebuild b/dev-python/pytables/pytables-2.1.1.ebuild deleted file mode 100644 index aa615169793c..000000000000 --- a/dev-python/pytables/pytables-2.1.1.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pytables/pytables-2.1.1.ebuild,v 1.1 2009/08/03 03:12:45 spock Exp $ - -EAPI="1" -NEED_PYTHON="2.2" - -inherit distutils multilib - -DESCRIPTION="A package for managing hierarchical datasets built on top of the HDF5 library." -SRC_URI="http://www.pytables.org/download/stable/tables-${PV}.tar.gz" -HOMEPAGE="http://www.pytables.org/" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" -LICENSE="BSD" -IUSE="doc examples" - -DEPEND=">=sci-libs/hdf5-1.6.5 - >=dev-python/numpy-1.2.1 - dev-libs/lzo:2 - app-arch/bzip2" -RDEPEND="${DEPEND}" -S="${WORKDIR}/tables-${PV}" - -src_install() { - cd "{S}" - DOCS="ANNOUNCE.txt MIGRATING_TO_2.x.txt RELEASE_NOTES.txt THANKS" - - distutils_src_install - - if use examples; then - insinto /usr/share/doc/${PF} - doins -r examples - fi - - if use doc; then - cd doc - - dohtml -r html/* - - docinto text - dodoc text/* - - insinto /usr/share/doc/${PF} - doins -r usersguide.pdf scripts/ - fi -} - -src_test() { - python_version - "${python}" setup.py install --root="${T}" --no-compile "$@" || die "temporary install failed" - PYTHONPATH="${T}/usr/$(get_libdir)/python${PYVER}/site-packages" "${python}" tables/tests/test_all.py || die "tests failed" -} diff --git a/dev-python/pytables/pytables-2.1.2.ebuild b/dev-python/pytables/pytables-2.1.2.ebuild new file mode 100644 index 000000000000..616c9cca8652 --- /dev/null +++ b/dev-python/pytables/pytables-2.1.2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pytables/pytables-2.1.2.ebuild,v 1.1 2009/12/12 16:26:37 bicatali Exp $ + +EAPI=2 +inherit eutils distutils + +MYP="tables-${PV}" + +DESCRIPTION="A package for managing hierarchical datasets built on top of the HDF5 library." +SRC_URI="http://www.pytables.org/download/stable/${MYP}.tar.gz" +HOMEPAGE="http://www.pytables.org/" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +LICENSE="BSD" +IUSE="doc examples" + +DEPEND="sci-libs/hdf5 + dev-python/numpy + dev-libs/lzo:2 + app-arch/bzip2" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MYP}" + +DOCS="ANNOUNCE.txt MIGRATING_TO_2.x.txt RELEASE_NOTES.txt THANKS" + +src_prepare() { + epatch "${FILESDIR}"/${P}-failingtests.patch +} + +src_test() { + cd build/lib* + PYTHONPATH=. "${python}" tables/tests/test_all.py || die "tests failed" +} + +src_install() { + distutils_src_install + + insinto /usr/share/doc/${PF} + if use examples; then + doins -r examples || die + fi + if use doc; then + cd doc + dodoc text/* || die + doins -r usersguide.pdf scripts html || die + fi +} -- cgit v1.2.3-65-gdbad