[Checkins] SVN: Sandbox/J1m/metarecipe/ There can be only one.

jim cvs-admin at zope.org
Thu May 31 17:14:13 UTC 2012


Log message for revision 126541:
  There can be only one.
  

Changed:
  D   Sandbox/J1m/metarecipe/README.txt
  U   Sandbox/J1m/metarecipe/setup.py

-=-
Deleted: Sandbox/J1m/metarecipe/README.txt
===================================================================
--- Sandbox/J1m/metarecipe/README.txt	2012-05-31 17:13:03 UTC (rev 126540)
+++ Sandbox/J1m/metarecipe/README.txt	2012-05-31 17:14:05 UTC (rev 126541)
@@ -1,14 +0,0 @@
-Title Here
-**********
-
-
-To learn more, see
-
-
-Changes
-*******
-
-0.1.0 (yyyy-mm-dd)
-==================
-
-Initial release

Modified: Sandbox/J1m/metarecipe/setup.py
===================================================================
--- Sandbox/J1m/metarecipe/setup.py	2012-05-31 17:13:03 UTC (rev 126540)
+++ Sandbox/J1m/metarecipe/setup.py	2012-05-31 17:14:05 UTC (rev 126541)
@@ -21,6 +21,15 @@
 
 from setuptools import setup
 
+# copy README to root.
+import os
+here = os.path.dirname(__file__)
+with open(
+    os.path.join(here, *(['src'] + name.split('.') + ['README.txt']))
+    ) as inp:
+    with open(os.path.join(here, 'README.txt'), 'w') as outp:
+        outp.write(inp.read())
+
 setup(
     author = 'Jim Fulton',
     author_email = 'jim at zope.com',
@@ -40,3 +49,5 @@
     tests_require = extras_require['test'],
     test_suite = name+'.tests.test_suite',
     )
+
+os.remove(os.path.join(here, 'README.txt'))



More information about the checkins mailing list