Explorar o código

Setup script for Pypi now converts README to RST

Taddeus Kroes %!s(int64=11) %!d(string=hai) anos
pai
achega
bf559a719f
Modificáronse 1 ficheiros con 10 adicións e 1 borrados
  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',