From 34d96026b4a4c8846370205627425b94a79f4ab9 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 9 Feb 2016 23:23:41 +0100 Subject: [PATCH] [enh] add the pypandoc trick for README.md --- setup.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 010f71e..fab63b5 100644 --- a/setup.py +++ b/setup.py @@ -3,11 +3,19 @@ from setuptools import setup +try: + from pypandoc import convert + read_md = lambda f: convert(f, 'rst') +except ImportError: + print("warning: pypandoc module not found, could not convert Markdown to RST") + read_md = lambda f: open(f, 'r').read() + + setup(name='prosopopee', version='0.1', description='excposure.co clone in a static web generating tool', author='Laurent Peuch', - #long_description='', + long_description=read_md('README.md'), author_email='cortex@worlddomination.be', url='https://github.com/Psycojoker/prosopopee', install_requires=open("./requirements.txt", "r").read().split(),