changeset 19:4a5b542a638c

add README to template
author k0s <k0scist@gmail.com>
date Sun, 24 Jan 2010 12:50:12 -0500
parents 24cd9c7749ce
children cf19d2e129de
files genshi_view/template/README.txt_tmpl genshi_view/template/setup.py_tmpl setup.py
diffstat 3 files changed, 15 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/genshi_view/template/README.txt_tmpl	Sun Jan 24 12:50:12 2010 -0500
@@ -0,0 +1,8 @@
+${project}
+----------
+
+${description}
+
+--
+
+${url}
\ No newline at end of file
--- a/genshi_view/template/setup.py_tmpl	Sun Dec 27 16:44:26 2009 -0500
+++ b/genshi_view/template/setup.py_tmpl	Sun Jan 24 12:50:12 2010 -0500
@@ -1,12 +1,16 @@
 from setuptools import setup, find_packages
 
+try:
+    description = file('README.txt').read()
+except IOError: 
+    description = ''
+
 version = "0.0"
 
 setup(name=${repr(project)},
       version=version,
       description="${description|nothing}",
-      long_description="""
-""",
+      long_description=description,
       classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
       author=${repr(author)|empty},
       author_email=${repr(author_email)|empty},
--- a/setup.py	Sun Dec 27 16:44:26 2009 -0500
+++ b/setup.py	Sun Jan 24 12:50:12 2010 -0500
@@ -1,6 +1,6 @@
 from setuptools import setup, find_packages
 
-version = '0.3'
+version = '0.3.1'
 
 setup(name='genshi_view',
       version=version,