From d81a1736c2b3e840a3ff95a904f93677fd5c6041 Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Thu, 23 May 2019 13:48:18 +0200 Subject: [PATCH] Use Readme for long_description in setup.py Also add "Spyder Development Team" as maintainer and update supported Python versions. --- setup.py | 40 +++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/setup.py b/setup.py index c0de008f..4c62bc25 100644 --- a/setup.py +++ b/setup.py @@ -27,8 +27,9 @@ # get on with it #----------------------------------------------------------------------------- -import os from glob import glob +import io +import os from distutils.core import setup @@ -49,22 +50,27 @@ with open(pjoin(here, name, '_version.py')) as f: exec(f.read(), {}, version_ns) +with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f: + long_description = f.read() + setup_args = dict( - name = name, - version = version_ns['__version__'], - scripts = glob(pjoin('scripts', '*')), - packages = packages, - package_data = package_data, - description = "Jupyter Qt console", - long_description= "Qt-based console for Jupyter with support for rich media output", - author = 'Jupyter Development Team', - author_email = 'jupyter@googlegroups.com', - url = 'http://jupyter.org', - license = 'BSD', - platforms = "Linux, Mac OS X, Windows", - keywords = ['Interactive', 'Interpreter', 'Shell'], - classifiers = [ + name = name, + version = version_ns['__version__'], + scripts = glob(pjoin('scripts', '*')), + packages = packages, + package_data = package_data, + description = "Jupyter Qt console", + long_description = long_description, + long_description_content_type = 'text/markdown', + author = 'Jupyter Development Team', + author_email = 'jupyter@googlegroups.com', + maintainer = 'Spyder Development Team', + url = 'http://jupyter.org', + license = 'BSD', + platforms = "Linux, Mac OS X, Windows", + keywords = ['Interactive', 'Interpreter', 'Shell'], + classifiers = [ 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Intended Audience :: Science/Research', @@ -72,9 +78,9 @@ 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.3', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', ], )