From: Menno Smits Date: Wed, 15 Sep 2010 21:25:31 +0000 (+0100) Subject: examples moved to imapclient/examples. Docs updated to match. X-Git-Tag: 0.7~13 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=4d23878ee811cb601a7d20bd7d39adf56b03e734;p=imapclient.git examples moved to imapclient/examples. Docs updated to match. --- diff --git a/README b/README index 6ea7d4f..cd3842b 100644 --- a/README +++ b/README @@ -67,10 +67,14 @@ To install from the source distribution: 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. @@ -113,5 +117,6 @@ IMAP server. 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". diff --git a/examples/example.py b/imapclient/examples/example.py similarity index 100% rename from examples/example.py rename to imapclient/examples/example.py diff --git a/setup.py b/setup.py index 3b5a360..7181a84 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,6 @@ Features: 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", @@ -38,6 +37,7 @@ setup(name='IMAPClient', 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,