[Checkins] SVN: Sandbox/J1m/project_template/branches/dev/setup.py spruced up

Jim Fulton jim at zope.com
Tue Jan 22 20:08:10 EST 2008


Log message for revision 83103:
  spruced up
  

Changed:
  U   Sandbox/J1m/project_template/branches/dev/setup.py

-=-
Modified: Sandbox/J1m/project_template/branches/dev/setup.py
===================================================================
--- Sandbox/J1m/project_template/branches/dev/setup.py	2008-01-23 00:42:39 UTC (rev 83102)
+++ Sandbox/J1m/project_template/branches/dev/setup.py	2008-01-23 01:08:09 UTC (rev 83103)
@@ -1,3 +1,17 @@
+##############################################################################
+#
+# Copyright (c) Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+import os
 from setuptools import setup, find_packages
 
 entry_points = """
@@ -3,4 +17,17 @@
 """
 
+def read(rname):
+    return open(os.path.join(os.path.dirname(__file__), *rname.split('/')
+                             )).read()
+
+long_description = (
+        read('src/zc/?/README.txt')
+        + '\n' +
+        'Download\n'
+        '--------\n'
+        )
+
+open('doc.txt', 'w').write(long_description)
+
 setup(
     name = '',
@@ -9,6 +36,7 @@
     author = 'Jim Fulton',
     author_email = 'jim at zope.com',
     description = '',
+    long_description=long_description,
     license = 'ZPL 2.1',
     
     packages = find_packages('src'),



More information about the Checkins mailing list