Skip to content

Commit

Permalink
simplify readme conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
nsheff committed Nov 4, 2021
1 parent 6797cac commit abe2ef3
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,9 @@ def read_reqs(reqs_name):
with open(os.path.join(PKG, "_version.py"), "r") as versionfile:
version = versionfile.readline().split()[-1].strip("\"'\n")

# Handle the pypi README (long description) formatting.
try:
import pypandoc

long_description = pypandoc.convert_file("README.md", "rst")
print("Pandoc conversion succeeded")
except (IOError, ImportError, OSError):
print("Warning: pandoc conversion failed!")
long_description = open("README.md").read()

with open("README.md") as f:
long_description = f.read()

setup(
name=PKG,
packages=[PKG],
Expand Down

0 comments on commit abe2ef3

Please sign in to comment.