From 093231544ee98819def970711634942d5984b245 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Fri, 15 Jan 2021 16:29:07 +0000 Subject: Remove old code from setup.py --- python/setup.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/python/setup.py b/python/setup.py index 3f73c38..2264bc1 100644 --- a/python/setup.py +++ b/python/setup.py @@ -51,17 +51,11 @@ here = os.path.abspath(os.path.dirname(__file__)) # Import the README and use it as the long-description. # Note: this will only work if 'README.md' is present in your MANIFEST.in file! -# see if it hard fails on CI +# We don't use try-except here because we want builds to fail if they can't +# find the README. with io.open(os.path.join(here, "README.md"), encoding="utf-8") as f: long_description = "\n" + f.read() -# DEBUG OLD -# try: -# with io.open(os.path.join(here, "README.md"), encoding="utf-8") as f: -# long_description = "\n" + f.read() -# except FileNotFoundError: -# long_description = DESCRIPTION - # Load the package's __version__.py module as a dictionary. about = {} if not VERSION: -- cgit v1.2.3