summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-05-17 00:14:31 +0200
committerMichał Górny <mgorny@gentoo.org>2017-05-17 00:42:20 +0200
commit5c299433473b8d67dcec6a207b40cca10b508d75 (patch)
tree43c76ea6081362e46a4178737d9b00243fd5b2cb
parent70dd4a7e908a830d0543b615ce27bbb091b8fa93 (diff)
downloadgentoo-5c299433473b8d67dcec6a207b40cca10b508d75.tar.gz
gentoo-5c299433473b8d67dcec6a207b40cca10b508d75.tar.xz
dev-python/beaker: Enable tests
-rw-r--r--dev-python/beaker/beaker-1.8.0-r1.ebuild17
1 files changed, 15 insertions, 2 deletions
diff --git a/dev-python/beaker/beaker-1.8.0-r1.ebuild b/dev-python/beaker/beaker-1.8.0-r1.ebuild
index 26e77aedf99..8f601d801d9 100644
--- a/dev-python/beaker/beaker-1.8.0-r1.ebuild
+++ b/dev-python/beaker/beaker-1.8.0-r1.ebuild
@@ -15,10 +15,19 @@ SRC_URI="https://github.com/bbangert/beaker/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE="test"
RDEPEND="virtual/python-funcsigs[${PYTHON_USEDEP}]"
-# webtest-based tests are skipped when webtest is not installed
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ ${RDEPEND}
+ $(python_gen_impl_dep sqlite)
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/nose[${PYTHON_USEDEP}]
+ dev-python/pycrypto[${PYTHON_USEDEP}]
+ dev-python/sqlalchemy[${PYTHON_USEDEP}]
+ dev-python/webtest[${PYTHON_USEDEP}]
+ )"
# Py2.7 fais some tests without this
DISTUTILS_IN_SOURCE_BUILD=1
@@ -31,6 +40,10 @@ python_prepare_all() {
distutils-r1_python_prepare_all
}
+python_test() {
+ esetup.py test
+}
+
pkg_postinst() {
elog "beaker also has optional support for packages"
elog "pycrypto and pycryptopp"