From cd310c2501f9c36b5326b71046df317865d7cb4f Mon Sep 17 00:00:00 2001 From: Wayne Werner Date: Wed, 2 Jan 2019 15:49:43 -0600 Subject: [PATCH] Set long_description It's good to have information on PyPI if people are looking there. --- Closes saltstack/salt#50964 Signed-off-by: Wayne Werner --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.py b/setup.py index 83cc2b352087..8b1cc717ff3f 100755 --- a/setup.py +++ b/setup.py @@ -126,6 +126,7 @@ SALT_ZEROMQ_REQS = os.path.join(os.path.abspath(SETUP_DIRNAME), 'requirements', 'zeromq.txt') SALT_RAET_REQS = os.path.join(os.path.abspath(SETUP_DIRNAME), 'requirements', 'raet.txt') SALT_WINDOWS_REQS = os.path.join(os.path.abspath(SETUP_DIRNAME), 'pkg', 'windows', 'req.txt') +SALT_LONG_DESCRIPTION_FILE = os.path.join(os.path.abspath(SETUP_DIRNAME), 'README.rst') # Salt SSH Packaging Detection PACKAGED_FOR_SALT_SSH_FILE = os.path.join(os.path.abspath(SETUP_DIRNAME), '.salt-ssh-package') @@ -873,6 +874,9 @@ def __init__(self, attrs=None): self.name = 'salt-ssh' if PACKAGED_FOR_SALT_SSH else 'salt' self.salt_version = __version__ # pylint: disable=undefined-variable self.description = 'Portable, distributed, remote execution and configuration management system' + with open(SALT_LONG_DESCRIPTION_FILE) as f: + self.long_description = f.read() + self.long_description_content_type = 'text/x-rst' self.author = 'Thomas S Hatch' self.author_email = 'thatch45@gmail.com' self.url = 'http://saltstack.org'