From f4de1929b054925d54b7677f833680ee657b6f51 Mon Sep 17 00:00:00 2001 From: Reinout van Rees Date: Wed, 9 Dec 2009 15:38:12 +0000 Subject: [PATCH] Added test dependencies --- buildout.cfg | 1 + setup.py | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/buildout.cfg b/buildout.cfg index 251886a..707331b 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -17,4 +17,5 @@ interpreter = python [test] recipe = zc.recipe.testrunner eggs = grokcore.security + grokcore.security[test] defaults = ['--tests-pattern', '^f?tests$', '-v'] diff --git a/setup.py b/setup.py index 124e56f..006b788 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,11 @@ def read(*rnames): read('CHANGES.txt') ) +tests_require = [ + 'zope.configuration', + 'zope.testing', + ] + setup( name='grokcore.security', version = '1.4dev', @@ -37,8 +42,7 @@ def read(*rnames): 'zope.component', 'zope.interface', 'zope.security', - # For tests only, could be moved to [test] extras. - 'zope.configuration', - 'zope.testing', ], + tests_require=tests_require, + extras_require={'test': tests_require}, )