python setup.py install
-The usual setuptools installation options are available. See
-http://peak.telecommunity.com/DevCenter/EasyInstall for more info.
+The project is packaged using Distribute (mostly compatible with
+setuptools) and all the usual setup.py installation options are
+available. See http://packages.python.org/distribute/ for more info.
-See examples/example.py for a simple example of how to use IMAPClient.
+See imapclient/examples/example.py for a sample of how to use
+IMAPClient. If the IMAPClient was installed from PyPI the examples
+subdirectory can be found under whereever the imapclient package is
+installed.
The code is well documented. See the docstrings for more usage
information.
Unit Tests
----------
There are comprehensive unit tests for the FETCH response parser and a
-growing number of other parts of the code. These tests use unittest
-and can be run using "python setup.py test" or "python run_tests.py".
+growing number of other parts of the code. These tests use the
+unittest package from the standard library and can be run using
+"python run_tests.py".
IMAPClient includes units tests for more complex functionality and a automated functional test that can be run against a live IMAP server.
"""
-#XXX put "test" command support back in
setup(name='IMAPClient',
version=version,
author="Menno Smits",
url="http://imapclient.freshfoo.com/",
download_url='http://freshfoo.com/projects/IMAPClient/IMAPClient-%s.tar.gz' % version,
packages=find_packages(),
+ package_data=dict(imapclient=['examples/*.py']),
description="Easy-to-use, Pythonic and complete IMAP client library with "
"no dependencies outside the Python standard library.",
long_description=desc,