From 49a284022cac8beb4ded587ed59b0b9db066f894 Mon Sep 17 00:00:00 2001 From: Montana Mendy Date: Tue, 18 Jan 2022 10:44:00 -0800 Subject: [PATCH] Refactor for better alignment, annotation and a bit smaller. --- setup.py | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/setup.py b/setup.py index 12782990..fe9a7b8a 100755 --- a/setup.py +++ b/setup.py @@ -7,14 +7,12 @@ README = open('README.rst', 'r').read() install_requires = [ - 'configparser; python_version<"3.0"', - 'future>=0.14.0; python_version<"3"', - 'backports.functools_lru_cache; python_version<"3.2"', - 'jedi>=0.17.2,<0.18.0', - 'python-jsonrpc-server>=0.4.0', - 'pluggy', - 'ujson<=2.0.3 ; platform_system!="Windows" and python_version<"3.0"', - 'ujson>=3.0.0 ; python_version>"3"'] + 'configparser; python_version<"3.0"', 'future>=0.14.0; python_version<"3"', + 'backports.functools_lru_cache; python_version<"3.2"', + 'jedi>=0.17.2,<0.18.0', 'python-jsonrpc-server>=0.4.0', 'pluggy', + 'ujson<=2.0.3 ; platform_system!="Windows" and python_version<"3.0"', + 'ujson>=3.0.0 ; python_version>"3"' +] setup( name='python-language-server', @@ -24,14 +22,11 @@ # https://packaging.python.org/en/latest/single_source_version.html version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), - description='Python Language Server for the Language Server Protocol', - long_description=README, # The project's main homepage. url='https://github.com/palantir/python-language-server', - author='Palantir Technologies, Inc.', # You can just specify the packages manually here if your project is @@ -68,14 +63,16 @@ 'pycodestyle': ['pycodestyle>=2.6.0,<2.7.0'], 'pydocstyle': ['pydocstyle>=2.0.0'], 'pyflakes': ['pyflakes>=2.2.0,<2.3.0'], - 'pylint': [ - 'pylint>=2.5.0' if sys.version_info.major >= 3 else 'pylint'], + 'pylint': + ['pylint>=2.5.0' if sys.version_info.major >= 3 else 'pylint'], 'rope': ['rope>0.10.5'], 'yapf': ['yapf'], - 'test': ['versioneer', - 'pylint>=2.5.0' if sys.version_info.major >= 3 else 'pylint', - 'pytest', 'mock', 'pytest-cov', 'coverage', 'numpy', 'pandas', - 'matplotlib', 'pyqt5;python_version>="3"', 'flaky'], + 'test': [ + 'versioneer', + 'pylint>=2.5.0' if sys.version_info.major >= 3 else 'pylint', + 'pytest', 'mock', 'pytest-cov', 'coverage', 'numpy', 'pandas', + 'matplotlib', 'pyqt5;python_version>="3"', 'flaky' + ], }, # To provide executable scripts, use entry points in preference to the