summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2012-04-11 07:32:29 +0000
committerPatrick Lauer <patrick@gentoo.org>2012-04-11 07:32:29 +0000
commit404292de98cf6adf0438c1d702470dc8015c5a2c (patch)
tree4896ceca77ae6e9f99d7c9d4af3b08d8261ab21c /dev-python
parentBump for #410803, restricting tests (diff)
downloadgentoo-2-404292de98cf6adf0438c1d702470dc8015c5a2c.tar.gz
gentoo-2-404292de98cf6adf0438c1d702470dc8015c5a2c.tar.bz2
gentoo-2-404292de98cf6adf0438c1d702470dc8015c5a2c.zip
Bump for #411441
(Portage version: 2.2.0_alpha100/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/logilab-common/ChangeLog7
-rw-r--r--dev-python/logilab-common/logilab-common-0.57.2.ebuild63
2 files changed, 69 insertions, 1 deletions
diff --git a/dev-python/logilab-common/ChangeLog b/dev-python/logilab-common/ChangeLog
index 7717385ce03a..2a1bf1774cec 100644
--- a/dev-python/logilab-common/ChangeLog
+++ b/dev-python/logilab-common/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/logilab-common
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.100 2012/03/13 02:40:35 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.101 2012/04/11 07:32:29 patrick Exp $
+
+*logilab-common-0.57.2 (11 Apr 2012)
+
+ 11 Apr 2012; Patrick Lauer <patrick@gentoo.org> +logilab-common-0.57.2.ebuild:
+ Bump for #411441
13 Mar 2012; Mike Gilbert <floppym@gentoo.org> logilab-common-0.57.1.ebuild:
Revert previous commit; handled in logilab-constraint.
diff --git a/dev-python/logilab-common/logilab-common-0.57.2.ebuild b/dev-python/logilab-common/logilab-common-0.57.2.ebuild
new file mode 100644
index 000000000000..8532695ad579
--- /dev/null
+++ b/dev-python/logilab-common/logilab-common-0.57.2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2012 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.57.2.ebuild,v 1.1 2012/04/11 07:32:29 patrick 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
+}