summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-02-18 18:55:22 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-02-18 18:55:22 +0000
commite8ae132b345ad2069de5df844b6e0f887c310659 (patch)
tree66c7778bddbc9c1d3df6c006ad3d863f465830e6 /dev-python
parentLinux patch 2.6.32.29 (diff)
downloadgentoo-2-e8ae132b345ad2069de5df844b6e0f887c310659.tar.gz
gentoo-2-e8ae132b345ad2069de5df844b6e0f887c310659.tar.bz2
gentoo-2-e8ae132b345ad2069de5df844b6e0f887c310659.zip
Version bump.
(Portage version: 2.2.0_alpha24_p9/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/logilab-common/ChangeLog8
-rw-r--r--dev-python/logilab-common/logilab-common-0.55.0.ebuild63
2 files changed, 70 insertions, 1 deletions
diff --git a/dev-python/logilab-common/ChangeLog b/dev-python/logilab-common/ChangeLog
index f140964029d2..37686093467b 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-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.85 2011/01/17 17:59:21 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.86 2011/02/18 18:55:22 arfrever Exp $
+
+*logilab-common-0.55.0 (18 Feb 2011)
+
+ 18 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ +logilab-common-0.55.0.ebuild:
+ Version bump.
*logilab-common-0.54.0 (17 Jan 2011)
diff --git a/dev-python/logilab-common/logilab-common-0.55.0.ebuild b/dev-python/logilab-common/logilab-common-0.55.0.ebuild
new file mode 100644
index 000000000000..743db68a17b2
--- /dev/null
+++ b/dev-python/logilab-common/logilab-common-0.55.0.ebuild
@@ -0,0 +1,63 @@
+# 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.55.0.ebuild,v 1.1 2011/02/18 18:55:22 arfrever Exp $
+
+EAPI="3"
+SUPPORT_PYTHON_ABIS="1"
+
+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 ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="test"
+
+# dev-python/unittest2 is not required with Python >=3.2.
+RDEPEND="dev-python/setuptools
+ dev-python/unittest2"
+# 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_test() {
+ testing() {
+ # Install temporarily.
+ local tpath="${T}/test-${PYTHON_ABI}"
+ local spath="${tpath}${EPREFIX}$(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
+ if [[ "${PYTHON_ABI}" == 3.* ]]; then
+ # Support for Python 3 is experimental. Some tests are known to fail.
+ PYTHONPATH="${spath}" "$(PYTHON)" "${tpath}${EPREFIX}/usr/bin/pytest" -v
+ else
+ PYTHONPATH="${spath}" "$(PYTHON)" "${tpath}${EPREFIX}/usr/bin/pytest" -v || return 1
+ fi
+ 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
+}