Skip to content

Commit

Permalink
Stop using pypandoc/rst (use original README.md)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtermanis committed Nov 30, 2019
1 parent e2f1ff8 commit 571ab2d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

from __future__ import print_function

import os

# Allow for environments without setuptools
try:
from setuptools import setup, Extension
Expand All @@ -24,14 +26,11 @@
use_setuptools()
from setuptools import setup, Extension

# For converting markdown README.md
try:
from pypandoc import convert
except ImportError:
READ_MD = lambda f: open(f, 'r').read() # noqa: E731
print('Warning: pypandoc module not found, will not convert Markdown to RST')
else:
READ_MD = lambda f: convert(f, 'rst') # noqa: E731

def load_description(filename):
script_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(script_dir, filename), 'r') as infile:
return infile.read()


VERSION = '0.14.0'
Expand All @@ -40,7 +39,8 @@
name='py-lz4framed',
version=VERSION,
description='LZ4Frame library for Python (via C bindings)',
long_description=READ_MD('README.md'),
long_description=load_description('README.md'),
long_description_content_type='text/markdown',
author='Iotic Labs Ltd',
author_email='[email protected]',
maintainer='Iotic Labs Ltd',
Expand Down

0 comments on commit 571ab2d

Please sign in to comment.