Mercurial > hg > webob_view
changeset 6:9aa8f5721649
add auto-creation of README files
author | k0s <k0scist@gmail.com> |
---|---|
date | Sun, 24 Jan 2010 19:31:13 -0500 |
parents | f70d8f3aee51 |
children | ff0e2a6dd07b |
files | setup.py webob_view/template/README.txt_tmpl webob_view/template/setup.py_tmpl |
diffstat | 3 files changed, 15 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/setup.py Sun Dec 27 16:38:50 2009 -0500 +++ b/setup.py Sun Jan 24 19:31:13 2010 -0500 @@ -1,7 +1,7 @@ from setuptools import setup, find_packages import sys, os -version = '0.6' +version = '0.6.1' setup(name='webob_view', version=version,
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/webob_view/template/README.txt_tmpl Sun Jan 24 19:31:13 2010 -0500 @@ -0,0 +1,8 @@ +${project} +---------- + +${description} + +-- + +${url} \ No newline at end of file
--- a/webob_view/template/setup.py_tmpl Sun Dec 27 16:38:50 2009 -0500 +++ b/webob_view/template/setup.py_tmpl Sun Jan 24 19:31:13 2010 -0500 @@ -1,13 +1,17 @@ from setuptools import setup, find_packages import sys, os +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},