From 9bad2b6c214e56cf3605174f7e1bf9a75539171a Mon Sep 17 00:00:00 2001 From: Eran Cohen Date: Thu, 25 Feb 2021 13:47:27 +0200 Subject: [PATCH] Moved project description to setup.cfg --- setup.cfg | 2 ++ setup.py | 8 -------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/setup.cfg b/setup.cfg index d588367..1e9dab8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,6 +5,8 @@ author-email = adir@stratoscale.com home-page = http://github.com/Stratoscale/skipper summary = Easily dockerize your Git repository license = Apache-2 +long_description = file: README.md +long_description_content_type = text/markdown requires-dist = setuptools diff --git a/setup.py b/setup.py index 311c2d7..f454d1b 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,3 @@ -import io import os import sys from setuptools import setup @@ -8,17 +7,10 @@ if os.getuid() == 0 and 'bdist_wheel' in sys.argv: raise RuntimeError("This setup.py does not support wheels") -# read the contents the README file -this_directory = os.path.abspath(os.path.dirname(__file__)) -with io.open(os.path.join(this_directory, 'README.md'), 'r', encoding='utf-8') as f: - long_description = f.read() - setup( setup_requires=[ 'pbr >= 1.9', 'setuptools >= 17.1' ], pbr=True, - long_description=long_description, - long_description_content_type='text/markdown' )