[Checkins] SVN: zc.sourcefactory/trunk/s added all documents inside package to the long-description

Michael Howitz mh at gocept.com
Wed Aug 27 06:37:13 EDT 2008


Log message for revision 90423:
  added all documents inside package to the long-description

Changed:
  U   zc.sourcefactory/trunk/setup.py
  U   zc.sourcefactory/trunk/src/zc/sourcefactory/README.txt
  U   zc.sourcefactory/trunk/src/zc/sourcefactory/adapters.txt

-=-
Modified: zc.sourcefactory/trunk/setup.py
===================================================================
--- zc.sourcefactory/trunk/setup.py	2008-08-27 10:16:54 UTC (rev 90422)
+++ zc.sourcefactory/trunk/setup.py	2008-08-27 10:37:13 UTC (rev 90423)
@@ -1,6 +1,10 @@
 from setuptools import setup, find_packages
 import os.path
 
+def read_file(*args):
+    return open(os.path.join(os.path.dirname(__file__), *args), "r").read()
+
+
 setup(
     name="zc.sourcefactory",
     version="0.4.0dev",
@@ -10,12 +14,21 @@
 
     description="An easy way to create custom Zope 3 sources.",
 
-    long_description=(open(
-        os.path.join(os.path.dirname(__file__),
-                     "src", "zc", "sourcefactory", "README.txt"),
-        "r").read() + "\n\n" + 
-        open(os.path.join(os.path.dirname(__file__), "CHANGES.txt"),
-             "r").read()),
+    long_description=(
+        read_file("src", "zc", "sourcefactory", "README.txt") +
+        "\n\n" + 
+        read_file("src", "zc", "sourcefactory", "mapping.txt") +
+        "\n\n" + 
+        read_file("src", "zc", "sourcefactory", "constructors.txt") +
+        "\n\n" + 
+        read_file("src", "zc", "sourcefactory", "adapters.txt") +
+        "\n\n" + 
+        read_file("src", "zc", "sourcefactory", "browser", "README.txt") +
+        "\n\n" + 
+        read_file("src", "zc", "sourcefactory", "browser", "token.txt") +
+        "\n\n" + 
+        read_file("CHANGES.txt")
+        ),
 
     packages=find_packages('src'),
     package_dir={'':'src'},

Modified: zc.sourcefactory/trunk/src/zc/sourcefactory/README.txt
===================================================================
--- zc.sourcefactory/trunk/src/zc/sourcefactory/README.txt	2008-08-27 10:16:54 UTC (rev 90422)
+++ zc.sourcefactory/trunk/src/zc/sourcefactory/README.txt	2008-08-27 10:37:13 UTC (rev 90423)
@@ -14,6 +14,7 @@
 allow users to define only the business relevant code for getting a list of
 values, getting a token and a title to display.
 
+.. contents
 
 Simple case
 ===========

Modified: zc.sourcefactory/trunk/src/zc/sourcefactory/adapters.txt
===================================================================
--- zc.sourcefactory/trunk/src/zc/sourcefactory/adapters.txt	2008-08-27 10:16:54 UTC (rev 90422)
+++ zc.sourcefactory/trunk/src/zc/sourcefactory/adapters.txt	2008-08-27 10:37:13 UTC (rev 90423)
@@ -7,7 +7,7 @@
 multi-adapter for (FactoredSource, SourceFactory).
 
 ISourceQueriables
------------------
+=================
 
   >>> from zc.sourcefactory.basic import BasicSourceFactory
   >>> class Factory(BasicSourceFactory):



More information about the Checkins mailing list