diff options
author | drebs <drebs@leap.se> | 2013-06-29 14:33:50 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2013-07-22 14:46:35 -0300 |
commit | d81f6ced46c1c36c7ceda2783814b60d6b347826 (patch) | |
tree | f5f78609d0a120424acf51a2e5bad0c2ecc07fac | |
parent | 6ae53da98b4ae9afef28ccfc1e5ad001a371fec3 (diff) |
Fix setuptools' test suite spec.
-rw-r--r-- | mail/setup.py | 8 | ||||
-rw-r--r-- | mail/src/leap/mail/__init__.py | 28 |
2 files changed, 33 insertions, 3 deletions
diff --git a/mail/setup.py b/mail/setup.py index f0713bf8..3feb275d 100644 --- a/mail/setup.py +++ b/mail/setup.py @@ -17,8 +17,11 @@ """ setup file for leap.mail """ + + from setuptools import setup, find_packages + requirements = [ "leap.soledad", "leap.common>=0.2.3-dev", @@ -32,7 +35,6 @@ tests_requirements = [ ] # XXX add classifiers, docs - setup( name='leap.mail', version='0.2.0-dev', @@ -46,8 +48,8 @@ setup( ), namespace_packages=["leap"], package_dir={'': 'src'}, - packages=find_packages('src', exclude=['leap.mail.tests']), - test_suite='leap.mail.tests', + packages=find_packages('src'), + test_suite='leap.mail.load_tests', install_requires=requirements, tests_require=tests_requirements, ) diff --git a/mail/src/leap/mail/__init__.py b/mail/src/leap/mail/__init__.py index e69de29b..04a99519 100644 --- a/mail/src/leap/mail/__init__.py +++ b/mail/src/leap/mail/__init__.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# __init__.py +# Copyright (C) 2013 LEAP +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + +""" +Provide function for loading tests. +""" + + +import unittest + + +def load_tests(): + return unittest.defaultTestLoader.discover('./src/leap/mail') |