Skip to content

Commit ad1e786

Browse files
committed
Convert readme to rst
1 parent ca1fd7c commit ad1e786

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

setup.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
from setuptools import setup, find_packages
22

3-
VERSION = '0.0.1'
3+
VERSION = '0.0.2'
4+
5+
try:
6+
from pypandoc import convert
7+
read_md = lambda f: convert(f, 'rst')
8+
except ImportError:
9+
print("Warning: pypandoc module not found, could not convert Markdown to RST")
10+
read_md = lambda f: open(f, 'r').read()
411

512
setup(
613
name='django-webhooks',
714
version=VERSION,
815
description='Reusable Django app that provides webhooks',
9-
long_description=open('README.md').read(),
16+
long_description=read_md('README.md'),
1017
author='Andrew Cutler',
1118
author_email='andrew@voltgrid.com',
1219
url='https://github.com/voltgrid/django-webhooks',

0 commit comments

Comments
 (0)