[enh] add the pypandoc trick for README.md
This commit is contained in:
parent
6cb92885e4
commit
34d96026b4
10
setup.py
10
setup.py
@ -3,11 +3,19 @@
|
|||||||
|
|
||||||
from setuptools import setup
|
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',
|
setup(name='prosopopee',
|
||||||
version='0.1',
|
version='0.1',
|
||||||
description='excposure.co clone in a static web generating tool',
|
description='excposure.co clone in a static web generating tool',
|
||||||
author='Laurent Peuch',
|
author='Laurent Peuch',
|
||||||
#long_description='',
|
long_description=read_md('README.md'),
|
||||||
author_email='cortex@worlddomination.be',
|
author_email='cortex@worlddomination.be',
|
||||||
url='https://github.com/Psycojoker/prosopopee',
|
url='https://github.com/Psycojoker/prosopopee',
|
||||||
install_requires=open("./requirements.txt", "r").read().split(),
|
install_requires=open("./requirements.txt", "r").read().split(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user