Skip to content

Commit

Permalink
Simpler handling of pandoc markdown to rst conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnVinyard committed Nov 9, 2018
1 parent 9307a55 commit 907f6b3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
from setuptools import setup
import re
import os
import warnings
import subprocess

try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError, RuntimeError):
long_description = subprocess.check_output(
'pandoc --to rst README.md', shell=True)
except(IOError, ImportError, subprocess.CalledProcessError):
long_description = open('README.md').read()
warnings.warn('pypandoc is not working correctly')


with open('zounds/__init__.py', 'r') as fd:
version = re.search(
Expand Down

0 comments on commit 907f6b3

Please sign in to comment.