From 5fb1a1b509a61f3d29c281604ec0a4b8f8515e10 Mon Sep 17 00:00:00 2001 From: Daniel Suess Date: Wed, 25 Oct 2017 14:27:39 +0200 Subject: [PATCH] Fix long_description loader in setup.py --- setup.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 25ea008..effafa4 100755 --- a/setup.py +++ b/setup.py @@ -13,9 +13,11 @@ author_emails = ["daniel@dsuess.me", "mail@mjh.name"] name = "mpnum" description = "matrix product representation library" -if os.path.isfile('README.txt'): - long_description = open('README.txt').read() -else: +try: + # can be created via pandoc: + # pandoc --from=markdown --to=rst --output=README.rst README.md + long_description = open('README.rst').read() +except FileNotFoundError: long_description = description year = "2016"