-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop using pypandoc/rst (use original README.md)
- Loading branch information
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,8 @@ | |
|
||
from __future__ import print_function | ||
|
||
import os | ||
|
||
# Allow for environments without setuptools | ||
try: | ||
from setuptools import setup, Extension | ||
|
@@ -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' | ||
|
@@ -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', | ||
|