diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-10-16 22:42:58 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-10-16 22:42:58 +0000 |
commit | 8af3ed6d8bd8ccf70dd45206a698d412afdd4e9d (patch) | |
tree | 37e9a1aef3b5e1b740834cb0aa34c8cd72d650e3 /dev-python/logilab-common | |
parent | Remove an unused patch (bug #340729). (diff) | |
download | gentoo-2-8af3ed6d8bd8ccf70dd45206a698d412afdd4e9d.tar.gz gentoo-2-8af3ed6d8bd8ccf70dd45206a698d412afdd4e9d.tar.bz2 gentoo-2-8af3ed6d8bd8ccf70dd45206a698d412afdd4e9d.zip |
Version bump.
(Portage version: 2.2_rc97_p1/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/logilab-common')
-rw-r--r-- | dev-python/logilab-common/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/logilab-common/logilab-common-0.52.1.ebuild | 60 |
2 files changed, 67 insertions, 1 deletions
diff --git a/dev-python/logilab-common/ChangeLog b/dev-python/logilab-common/ChangeLog index 282c362ab710..820afa503a76 100644 --- a/dev-python/logilab-common/ChangeLog +++ b/dev-python/logilab-common/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/logilab-common # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.71 2010/09/29 00:43:05 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.72 2010/10/16 22:42:58 arfrever Exp $ + +*logilab-common-0.52.1 (16 Oct 2010) + + 16 Oct 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +logilab-common-0.52.1.ebuild: + Version bump. *logilab-common-0.52.0 (29 Sep 2010) diff --git a/dev-python/logilab-common/logilab-common-0.52.1.ebuild b/dev-python/logilab-common/logilab-common-0.52.1.ebuild new file mode 100644 index 000000000000..d0dd21c97752 --- /dev/null +++ b/dev-python/logilab-common/logilab-common-0.52.1.ebuild @@ -0,0 +1,60 @@ +# 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.52.1.ebuild,v 1.1 2010/10/16 22:42:58 arfrever Exp $ + +EAPI="3" +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" + +inherit distutils + +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 ~s390 ~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. +# dev-python/unittest2 is not required with Python >=3.2. +DEPEND="${RDEPEND} + test? ( + dev-python/egenix-mx-base + dev-python/unittest2 + !dev-python/psycopg[-mxdatetime] + )" + +PYTHON_MODNAME="logilab" + +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 +} |