Changeset 66:5f96d657c6c6 in livinglogic.python.nightshade

Show
Ignore:
Timestamp:
01/07/08 17:03:19 (12 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Automatically add change info to the description.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • setup.py

    r63 r66  
    4242 
    4343 
     44try: 
     45    news = list(open("NEWS.rst", "r")) 
     46except IOError: 
     47    description = DESCRIPTION.strip() 
     48else: 
     49    underlines = [i for (i, line) in enumerate(news) if line.startswith("---")] 
     50    news = news[underlines[0]-1:underlines[1]-1] 
     51    news = "".join(news) 
     52    description = "%s\n\n\n%s" % (DESCRIPTION.strip(), news) 
     53 
     54 
    4455args = dict( 
    4556    name="ll-nightshade", 
    4657    version="0.11", 
    4758    description="Serve the output of Oracle functions/procedures with CherryPy", 
    48     long_description=DESCRIPTION, 
     59    long_description=description, 
    4960    author=u"Walter Doerwald", 
    5061    author_email="walter@livinglogic.de",