Commits

Denis Bilenko committed b7471e2

use README.rst as long_description in setup.py

  • Participants
  • Parent commits d3f0838
  • Tags 0.13.0

Comments (0)

Files changed (1)

     from setuptools import Extension, setup
 else:
     from distutils.core import Extension, setup
-from os.path import join, isdir, abspath, basename, exists
+from os.path import join, isdir, abspath, basename, exists, dirname
 
 __version__ = re.search("__version__\s*=\s*'(.*)'", open('gevent/__init__.py').read(), re.M).group(1)
 assert __version__
                         extra_objects=extra_objects,
                         extra_compile_args=extra_compile_args)
 
+def read(name):
+    return open(join(dirname(__file__), name)).read()
+
 
 if __name__ == '__main__':
     setup(
         name='gevent',
         version=__version__,
         description='Python network library that uses greenlet and libevent for easy and scalable concurrency',
+        long_description=read('README.rst'),
         author='Denis Bilenko',
         author_email='denis.bilenko@gmail.com',
         url='http://www.gevent.org/',