[Zodb-checkins] SVN: ZODB/trunk/setup.py added README and change log to long descriptions so they will be visible in pypi

Michael Howitz mh at gocept.com
Tue Sep 23 03:15:46 EDT 2008


Log message for revision 91387:
  added README and change log to long descriptions so they will be visible in pypi

Changed:
  U   ZODB/trunk/setup.py

-=-
Modified: ZODB/trunk/setup.py
===================================================================
--- ZODB/trunk/setup.py	2008-09-23 01:22:18 UTC (rev 91386)
+++ ZODB/trunk/setup.py	2008-09-23 07:15:44 UTC (rev 91387)
@@ -227,6 +227,10 @@
 
 doclines = __doc__.split("\n")
 
+def read_file(name):
+    base_dir = os.path.dirname(__file__)
+    return file(os.path.join(base_dir, name)).read()
+
 setup(name="ZODB3",
       version=VERSION,
       maintainer="Zope Corporation",
@@ -241,7 +245,11 @@
       platforms = ["any"],
       description = doclines[0],
       classifiers = filter(None, classifiers.split("\n")),
-      long_description = "\n".join(doclines[2:]),
+      long_description = (
+        "\n".join(doclines[2:]) + "\n\n" +
+        ".. contents::\n\n" + 
+        read_file("README.txt")  + "\n\n" +
+        read_file("HISTORY.txt")),
       distclass = MyDistribution,
       test_suite="__main__.alltests", # to support "setup.py test"
       tests_require = [



More information about the Zodb-checkins mailing list