read unicode directly from README.rst
don't use pandoc to convert .md to .rst
This commit is contained in:
parent
2bb8ca83fc
commit
09e9e62c20
17
setup.py
17
setup.py
|
@ -1,13 +1,22 @@
|
||||||
import pypandoc
|
import os
|
||||||
|
import codecs
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
def readme():
|
|
||||||
return pypandoc.convert('README.md', 'rst')
|
def read_file(filename, encoding='utf8'):
|
||||||
|
"""Read unicode from given file."""
|
||||||
|
with codecs.open(filename, encoding=encoding) as fd:
|
||||||
|
return fd.read()
|
||||||
|
|
||||||
|
|
||||||
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
readme = read_file(os.path.join(here, 'README.rst'))
|
||||||
|
|
||||||
|
|
||||||
setup(name='transwhat',
|
setup(name='transwhat',
|
||||||
version='0.2',
|
version='0.2',
|
||||||
description='A gateway between the XMPP and the WhatsApp IM networks',
|
description='A gateway between the XMPP and the WhatsApp IM networks',
|
||||||
long_description=readme(),
|
long_description=readme,
|
||||||
keywords='whatsapp xmpp im gateway transport yowsup',
|
keywords='whatsapp xmpp im gateway transport yowsup',
|
||||||
url='https://github.com/stv0g/transwhat',
|
url='https://github.com/stv0g/transwhat',
|
||||||
author='Steffen Vogel',
|
author='Steffen Vogel',
|
||||||
|
|
Loading…
Reference in a new issue