Commit e315dd57 authored by Michael Howitz's avatar Michael Howitz

added README and change log to long descriptions so they will be visible in pypi

parent fc30346f
...@@ -227,6 +227,10 @@ def alltests(): ...@@ -227,6 +227,10 @@ def alltests():
doclines = __doc__.split("\n") doclines = __doc__.split("\n")
def read_file(name):
base_dir = os.path.dirname(__file__)
return file(os.path.join(base_dir, name)).read()
setup(name="ZODB3", setup(name="ZODB3",
version=VERSION, version=VERSION,
maintainer="Zope Corporation", maintainer="Zope Corporation",
...@@ -241,7 +245,11 @@ setup(name="ZODB3", ...@@ -241,7 +245,11 @@ 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 = "\n".join(doclines[2:]), long_description = (
"\n".join(doclines[2:]) + "\n\n" +
".. contents::\n\n" +
read_file("README.txt") + "\n\n" +
read_file("HISTORY.txt")),
distclass = MyDistribution, distclass = MyDistribution,
test_suite="__main__.alltests", # to support "setup.py test" test_suite="__main__.alltests", # to support "setup.py test"
tests_require = [ tests_require = [
......
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