Mercurial > p > roundup > code
comparison setup.py @ 4492:5d43b2a5eb69
test that announcement.txt is pure ASCII...
...required at least up to python2.5 by distutils. (Note tht
doc/announcement.txt is the *old* announcement from the last release,
I've changed it so that setup.py will work for now and to illustrate
what needed to be changed).
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Wed, 20 Apr 2011 13:12:53 +0000 |
| parents | 528ace81fd16 |
| children | 53e438d1ca19 |
comparison
equal
deleted
inserted
replaced
| 4491:357c6079c73b | 4492:5d43b2a5eb69 |
|---|---|
| 92 data_files.append(include('share/doc/roundup/html', '*')) | 92 data_files.append(include('share/doc/roundup/html', '*')) |
| 93 | 93 |
| 94 # perform the setup action | 94 # perform the setup action |
| 95 from roundup import __version__ | 95 from roundup import __version__ |
| 96 | 96 |
| 97 long_description=open('doc/announcement.txt').read().decode('utf8') | |
| 98 try: | |
| 99 long_description.encode('ascii') | |
| 100 except UnicodeEncodeError, cause: | |
| 101 print >> sys.stderr, "doc/announcement.txt contains non-ascii: %s" \ | |
| 102 % cause | |
| 103 sys.exit(42) | |
| 104 | |
| 97 setup(name='roundup', | 105 setup(name='roundup', |
| 98 version=__version__, | 106 version=__version__, |
| 99 author="Richard Jones", | 107 author="Richard Jones", |
| 100 author_email="richard@users.sourceforge.net", | 108 author_email="richard@users.sourceforge.net", |
| 101 description="A simple-to-use and -install issue-tracking system" | 109 description="A simple-to-use and -install issue-tracking system" |
| 102 " with command-line, web and e-mail interfaces. Highly" | 110 " with command-line, web and e-mail interfaces. Highly" |
| 103 " customisable.", | 111 " customisable.", |
| 104 long_description=open('doc/announcement.txt').read().decode('utf8'), | 112 long_description=long_description, |
| 105 url='http://www.roundup-tracker.org', | 113 url='http://www.roundup-tracker.org', |
| 106 download_url='http://pypi.python.org/pypi/roundup', | 114 download_url='http://pypi.python.org/pypi/roundup', |
| 107 classifiers=['Development Status :: 5 - Production/Stable', | 115 classifiers=['Development Status :: 5 - Production/Stable', |
| 108 'Environment :: Console', | 116 'Environment :: Console', |
| 109 'Environment :: Web Environment', | 117 'Environment :: Web Environment', |
