commit: 5c299433473b8d67dcec6a207b40cca10b508d75 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Tue May 16 22:14:31 2017 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue May 16 22:42:20 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c299433
dev-python/beaker: Enable tests dev-python/beaker/beaker-1.8.0-r1.ebuild | 17 +++++++++++++++-- 1 file 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"
