diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-01-17 17:57:44 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-01-17 17:57:44 +0000 |
commit | 9b612631f526b218337f729ac74fa4e50e8b14d0 (patch) | |
tree | c21f40be6f91e95a4ec9b04a2fd0a341b4b02206 /dev-python/logilab-common | |
parent | cleanup (diff) | |
download | gentoo-2-9b612631f526b218337f729ac74fa4e50e8b14d0.tar.gz gentoo-2-9b612631f526b218337f729ac74fa4e50e8b14d0.tar.bz2 gentoo-2-9b612631f526b218337f729ac74fa4e50e8b14d0.zip |
Delete older ebuilds.
Diffstat (limited to 'dev-python/logilab-common')
3 files changed, 0 insertions, 185 deletions
diff --git a/dev-python/logilab-common/files/logilab-common-0.51.1-python-2.7.patch b/dev-python/logilab-common/files/logilab-common-0.51.1-python-2.7.patch deleted file mode 100644 index dae021e12259..000000000000 --- a/dev-python/logilab-common/files/logilab-common-0.51.1-python-2.7.patch +++ /dev/null @@ -1,16 +0,0 @@ ---- testlib.py -+++ testlib.py -@@ -1022,8 +1022,12 @@ - - def __init__(self, methodName='runTest'): - super(TestCase, self).__init__(methodName) -+ # internal API changed in python2.7 -+ if sys.version_info >= (2, 7): -+ self.__exc_info = sys.exc_info -+ self.__testMethodName = self._testMethodName - # internal API changed in python2.5 -- if sys.version_info >= (2, 5): -+ elif sys.version_info >= (2, 5): - self.__exc_info = self._exc_info - self.__testMethodName = self._testMethodName - else: diff --git a/dev-python/logilab-common/logilab-common-0.50.3.ebuild b/dev-python/logilab-common/logilab-common-0.50.3.ebuild deleted file mode 100644 index 76a8119c125e..000000000000 --- a/dev-python/logilab-common/logilab-common-0.50.3.ebuild +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/logilab-common-0.50.3.ebuild,v 1.4 2010/07/18 14:05:30 nixnut Exp $ - -EAPI="3" -PYTHON_DEPEND="2" -SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="3.*" - -inherit distutils eutils - -DESCRIPTION="Useful miscellaneous modules used by Logilab projects" -HOMEPAGE="http://www.logilab.org/projects/common/ http://pypi.python.org/pypi/logilab-common" -SRC_URI="ftp://ftp.logilab.org/pub/common/${P}.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="amd64 ~ia64 ppc ~ppc64 ~s390 ~sparc x86 ~amd64-linux ~ia64-linux ~x86-linux ~x64-macos ~x86-macos" -IUSE="test" - -# Tests using dev-python/psycopg are skipped when dev-python/psycopg isn't installed. -DEPEND="test? ( - dev-python/egenix-mx-base - !dev-python/psycopg[-mxdatetime] - )" -RDEPEND="" - -PYTHON_MODNAME="logilab" -# Extra documentation (html/pdf) needs some love - -src_prepare() { - distutils_src_prepare - - # Disable broken tests. - sed -e "s/test_moved/_&/" -i test/unittest_deprecation.py - sed -e "s/test_manpage/_&/" -i test/unittest_configuration.py - sed -e "s/test_knownValues_is_standard_module_4/_&/" -i test/unittest_modutils.py - - # Disable tests failing when stdout is not a tty. - sed \ - -e "s/test_both_capture/_&/" \ - -e "s/test_capture_core/_&/" \ - -i test/unittest_testlib.py - - if [[ "${EUID}" -eq 0 ]]; then - # Disable tests failing with root permissions. - sed \ - -e "s/test_mode_change/_&/" \ - -e "s/test_mode_change_on_append/_&/" \ - -e "s/test_restore_on_close/_&/" \ - -i test/unittest_fileutils.py - fi -} - -src_test() { - testing() { - # Install temporarily. - local tpath="${T}/test-${PYTHON_ABI}" - local spath="${tpath}$(python_get_sitedir)" - - "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" install --root="${tpath}" || die "Installation for tests failed with Python ${PYTHON_ABI}" - - # Bug 223079. - if [[ "${EUID}" -eq 0 ]]; then - rm test/unittest_fileutils.py || die - fi - - # pytest picks up the tests relative to the current directory, so cd in. Do - # not cd in too far though (to logilab/common for example) or some - # relative/absolute module location tests fail. - pushd "${spath}" >/dev/null || die - PYTHONPATH="${spath}" "$(PYTHON)" "${tpath}/usr/bin/pytest" -v || return 1 - popd >/dev/null || die - } - python_execute_function testing -} - -src_install() { - distutils_src_install - - python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/pytest" - - doman doc/pytest.1 || die "doman failed" - - # Don't install tests. - rm -fr "${ED}"usr/lib*/python*/site-packages/${PN/-//}/test || die "Deletion of tests failed" -} diff --git a/dev-python/logilab-common/logilab-common-0.51.1.ebuild b/dev-python/logilab-common/logilab-common-0.51.1.ebuild deleted file mode 100644 index 9871f21b683d..000000000000 --- a/dev-python/logilab-common/logilab-common-0.51.1.ebuild +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/logilab-common-0.51.1.ebuild,v 1.5 2011/01/06 21:46:21 ranger Exp $ - -EAPI="3" -PYTHON_DEPEND="2" -SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="3.*" - -inherit distutils eutils - -DESCRIPTION="Useful miscellaneous modules used by Logilab projects" -HOMEPAGE="http://www.logilab.org/projects/common/ http://pypi.python.org/pypi/logilab-common" -SRC_URI="ftp://ftp.logilab.org/pub/common/${P}.tar.gz mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="amd64 ~ia64 ppc ~ppc64 ~s390 ~sparc x86 ~amd64-linux ~ia64-linux ~x86-linux ~x64-macos ~x86-macos" -IUSE="test" - -RDEPEND="dev-python/setuptools" -# Tests using dev-python/psycopg are skipped when dev-python/psycopg isn't installed. -DEPEND="${RDEPEND} - test? ( - dev-python/egenix-mx-base - !dev-python/psycopg[-mxdatetime] - )" - -PYTHON_MODNAME="logilab" - -src_prepare() { - distutils_src_prepare - - epatch "${FILESDIR}/${P}-python-2.7.patch" - - # Disable broken tests. - sed -e "s/test_knownValues_is_standard_module_4/_&/" -i test/unittest_modutils.py - - # Disable tests failing when stdout is not a tty. - sed \ - -e "s/test_both_capture/_&/" \ - -e "s/test_capture_core/_&/" \ - -i test/unittest_testlib.py - - if [[ "${EUID}" -eq 0 ]]; then - # Disable tests failing with root permissions. - sed \ - -e "s/test_mode_change/_&/" \ - -e "s/test_mode_change_on_append/_&/" \ - -e "s/test_restore_on_close/_&/" \ - -i test/unittest_fileutils.py - fi -} - -src_test() { - testing() { - # Install temporarily. - local tpath="${T}/test-${PYTHON_ABI}" - local spath="${tpath}$(python_get_sitedir)" - - "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" install --root="${tpath}" || die "Installation for tests failed with $(python_get_implementation) $(python_get_version)" - - # pytest uses tests placed relatively to the current directory. - pushd "${spath}" > /dev/null || return 1 - PYTHONPATH="${spath}" "$(PYTHON)" "${tpath}/usr/bin/pytest" -v || return 1 - popd > /dev/null || return 1 - } - python_execute_function testing -} - -src_install() { - distutils_src_install - - python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/pytest" - - doman doc/pytest.1 || die "doman failed" - - delete_tests() { - rm -fr "${ED}$(python_get_sitedir)/${PN/-//}/test" - } - python_execute_function -q delete_tests -} |