-include README COPYING AUTHORS THANKS example.py
+include README COPYING AUTHORS THANKS
include run_tests.py
+include livetest.py
include ez_setup.py
include make_release.py
-recursive-include doc *
recursive-include examples *
Install the single source file (imapclient.py) in your Python site-packages
directory or where it makes sense for your application.
-See example.py for a simple example of how to use IMAPClient.
+See examples/example.py for a simple example of how to use IMAPClient.
The code is well documented. See the docstrings for more usage information.
----------
There are fairly comprehensive unit tests for the FETCH response parser and
related code in test_FetchParser.py. These tests use unittest and can be run
-using "python test_FetchParser.py".
+using "python setup.py test" or "python run_tests.py".
-- package as an egg
+- fix MANIFEST
+- update install instructions in README
+- update testing instructions
- rename to IMAPClient(et), be consistent in the docs, update cheeseshop
- - script to run tests
- - include test_suite
- - update install instructions in README
- - update testing instructions
- automatic changelog generation
- support for more IMAP functions: sort, examine etc
- write a comparision of imaplib vs imapclient.py
--- /dev/null
+import sys
+import glob
+import imp
+import unittest
+from os.path import abspath, dirname, basename, join as joinpath
+
+_mydir = abspath(joinpath(dirname(__file__)))
+
+# Make sure that imapclient is imported from the right place
+_import_dir = abspath(joinpath(_mydir, '..', '..'))
+sys.path.insert(0, _import_dir)
+
+def load_suite():
+ full_suite = unittest.TestSuite()
+ for modpath in glob.glob(joinpath(_mydir, 'test_*.py')):
+ module_name = basename(modpath).split('.', 1)[0]
+ module = imp.load_source(module_name, modpath)
+ suite = unittest.defaultTestLoader.loadTestsFromModule(module)
+ full_suite.addTest(suite)
+ return full_suite
+
+def run_suite():
+ suite = load_suite()
+ runner = unittest.TextTestRunner(verbosity=1)
+ runner.run(suite)
+
+
import unittest
import datetime
-from imapclient import FetchParser, FetchTokeniser, Literal
+from imapclient.imapclient import FetchParser, FetchTokeniser, Literal
from pprint import pformat
#TODO: test timezone handling
--- /dev/null
+#!/usr/bin/env python
+
+import imapclient.test
+imapclient.test.run_suite()
url="http://freshfoo.com/wiki/CodeIndex",
download_url='http://freshfoo.com/projects/imapclient/IMAPClient-%s.tar.gz' % version,
packages=['imapclient', 'imapclient.test'],
+ test_suite='imapclient.test.load_suite',
py_modules=[],
install_requires=[],
description="Easy-to-use, Pythonic and complete IMAP client library with "