Ver Fonte

Setup script for Pypi now converts README to RST

Taddeus Kroes há 11 anos atrás
pai
commit
bf559a719f
1 ficheiros alterados com 10 adições e 1 exclusões
  1. 10 1
      setup.py

+ 10 - 1
setup.py

@@ -1,9 +1,18 @@
 #!/usr/bin/env python
 from distutils.core import setup
+
+try:
+    from pypandoc import convert
+    read_md = lambda f: convert(f, 'rst')
+except ImportError:
+    print 'warning: module pypandoc not found, cannot convert Markdown to RST'
+    read_md = lambda f: open(f, 'r').read()
+
 setup(
     name='wspy',
-    version='0.91',
+    version='0.9.1',
     description='A standalone implementation of websockets (RFC 6455).',
+    long_description=read_md('README.md'),
     author='Taddeus Kroes',
     author_email='taddeus@kompiler.org',
     url='https://github.com/taddeus/wspy',