Commit 60b77124 authored by Jim Fulton's avatar Jim Fulton

Distutils 1 doesn't do unicode. Whimpler.

parent de675069
...@@ -165,6 +165,16 @@ def read_file(*path): ...@@ -165,6 +165,16 @@ def read_file(*path):
file_path = (base_dir, ) + tuple(path) file_path = (base_dir, ) + tuple(path)
return file(os.path.join(*file_path)).read() return file(os.path.join(*file_path)).read()
long_description = str(
("\n".join(doclines[2:]) + "\n\n" +
".. contents::\n\n" +
read_file("README.txt") + "\n\n" +
read_file("src", "CHANGES.txt")
).decode('latin-1').replace(u'L\xf6wis', '|Lowis|')
)+ '''
.. |Lowis| unicode:: L\xf6wis
'''
setup(name="ZODB3", setup(name="ZODB3",
version=VERSION, version=VERSION,
maintainer="Zope Foundation and Contributors", maintainer="Zope Foundation and Contributors",
...@@ -179,11 +189,7 @@ setup(name="ZODB3", ...@@ -179,11 +189,7 @@ setup(name="ZODB3",
platforms = ["any"], platforms = ["any"],
description = doclines[0], description = doclines[0],
classifiers = filter(None, classifiers.split("\n")), classifiers = filter(None, classifiers.split("\n")),
long_description = ( long_description = long_description,
"\n".join(doclines[2:]) + "\n\n" +
".. contents::\n\n" +
read_file("README.txt") + "\n\n" +
read_file("src", "CHANGES.txt")).decode('latin-1'),
test_suite="__main__.alltests", # to support "setup.py test" test_suite="__main__.alltests", # to support "setup.py test"
tests_require = ['zope.testing', 'manuel'], tests_require = ['zope.testing', 'manuel'],
extras_require = dict(test=['zope.testing', 'manuel']), extras_require = dict(test=['zope.testing', 'manuel']),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment