From f5e691a7339b87694110145ddb4b134811ca5208 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Mon, 13 May 2019 13:26:42 +0100 Subject: [PATCH] fix long_description and license MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pypi.org now requires long_description values rendor correctly. license should not contain the full text of the licence: > The license field is a text indicating the license covering the package where the license is not a selection from the “License” Trove classifiers. See the Classifier field. Notice that there’s a licence distribution option which is deprecated but still acts as an alias for license. https://docs.python.org/3/distutils/setupscript.html#additional-meta-data --- setup.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 0dde8aa..cd958c1 100644 --- a/setup.py +++ b/setup.py @@ -10,22 +10,20 @@ download_url = 'https://github.com/downloads/btimby/' + name + \ '/' + name + '-' + versrel + '.tar.gz' -with open('LICENSE', 'r') as l: - license = l.read() +with open('README.rst', 'r') as rm: + long_description = rm.read() setup( name = name, version = versrel, description = 'RADIUS authentication module', - long_description = 'A pure Python module that implements client side RADIUS ' \ - 'authentication, as defined by RFC2865.', + long_description=long_description, author = 'Stuart Bishop', author_email = 'zen@shangri-la.dropbear.id.au', maintainer = 'Ben Timby', maintainer_email = 'btimby@gmail.com', url = 'http://github.com/btimby/' + name + '/', download_url = download_url, - license = license, py_modules = ["radius"], classifiers = [ 'License :: OSI Approved :: MIT License',