]> khamidou — GitHub mirrors - imapclient.git/commitdiff
examples moved to imapclient/examples. Docs updated to match.
authorMenno Smits <menno@freshfoo.com>
Wed, 15 Sep 2010 21:25:31 +0000 (22:25 +0100)
committerMenno Smits <menno@freshfoo.com>
Wed, 15 Sep 2010 21:25:31 +0000 (22:25 +0100)
README
imapclient/examples/example.py [moved from examples/example.py with 100% similarity]
setup.py

diff --git a/README b/README
index 6ea7d4fbf5cfde9f6bfc5d303aefa23e37ba6290..cd3842b2faf0726c7b06c72c90372e260f298c12 100644 (file)
--- 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".
index 3b5a36006f66991a3c34ee0a5dd40a7953dd5bd5..7181a84af01a24b9ca21bfeaa4828cfee1e27727 100644 (file)
--- 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,