Skip to content

Moved the metadata from setup.py to setup.cfg #669

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 80 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,18 +1,91 @@
[versioneer]
VCS = git
style = pep440
versionfile_source = pyls/_version.py
versionfile_build = pyls/_version.py
tag_prefix =
parentdir_prefix =
[metadata]
name = python-language-server
author = Palantir Technologies, Inc.
description = Python Language Server for the Language Server Protocol
url = https://github.com/palantir/python-language-server
long_description = file: README.rst

[options]
packages = find:
install_requires =
configparser; python_version<"3.0"
future>=0.14.0
futures; python_version<"3.2"
backports.functools_lru_cache; python_version<"3.2"
jedi>=0.15.0,<0.16
python-jsonrpc-server>=0.1.0
pluggy

[options.packages.find]
exclude =
contrib
docs
test
test.*


[pycodestyle]
ignore = E226, E722, W504
max-line-length = 120
exclude = test/plugins/.ropeproject,test/.ropeproject

[options.entry_points]
console_scripts = pyls = pyls.__main__:main
pyls =
autopep8 = pyls.plugins.autopep8_format
jedi_completion = pyls.plugins.jedi_completion
jedi_definition = pyls.plugins.definition
jedi_hover = pyls.plugins.hover
jedi_highlight = pyls.plugins.highlight
jedi_references = pyls.plugins.references
jedi_signature_help = pyls.plugins.signature
jedi_symbols = pyls.plugins.symbols
mccabe = pyls.plugins.mccabe_lint
preload = pyls.plugins.preload_imports
pycodestyle = pyls.plugins.pycodestyle_lint
pydocstyle = pyls.plugins.pydocstyle_lint
pyflakes = pyls.plugins.pyflakes_lint
pylint = pyls.plugins.pylint_lint
rope_completion = pyls.plugins.rope_completion
rope_rename = pyls.plugins.rope_rename
yapf = pyls.plugins.yapf_format

[tool:pytest]
testpaths = test
addopts =
--cov-report html --cov-report term --junitxml=pytest.xml
--cov pyls --cov test

[options.extras_require]
all =
autopep8
mccabe
pycodestyle
pydocstyle>=2.0.0
pyflakes>=1.6.0
pylint
rope>=0.10.5
yapf
autopep8 = autopep8
mccabe = mccabe
pycodestyle = pycodestyle
pydocstyle = pydocstyle>=2.0.0
pyflakes = pyflakes>=1.6.0
pylint = pylint
rope = rope>0.10.5
yapf = yapf
test =
versioneer
pylint
pytest
mock
pytest-cov
coverage

[versioneer]
VCS = git
style = pep440
versionfile_source = pyls/_version.py
versionfile_build = pyls/_version.py
tag_prefix =
parentdir_prefix =
89 changes: 0 additions & 89 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,96 +2,7 @@
from setuptools import find_packages, setup
import versioneer

README = open('README.rst', 'r').read()


setup(
name='python-language-server',

# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# 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
# simple. Or you can use find_packages().
packages=find_packages(exclude=['contrib', 'docs', 'test', 'test.*']),

# List run-time dependencies here. These will be installed by pip when
# your project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
install_requires=[
'configparser; python_version<"3.0"',
'future>=0.14.0',
'futures; python_version<"3.2"',
'backports.functools_lru_cache; python_version<"3.2"',
'jedi>=0.15.0,<0.16',
'python-jsonrpc-server>=0.1.0',
'pluggy'
],

# List additional groups of dependencies here (e.g. development
# dependencies). You can install these using the following syntax,
# for example:
# $ pip install -e .[test]
extras_require={
'all': [
'autopep8',
'mccabe',
'pycodestyle',
'pydocstyle>=2.0.0',
'pyflakes>=1.6.0',
'pylint',
'rope>=0.10.5',
'yapf',
],
'autopep8': ['autopep8'],
'mccabe': ['mccabe'],
'pycodestyle': ['pycodestyle'],
'pydocstyle': ['pydocstyle>=2.0.0'],
'pyflakes': ['pyflakes>=1.6.0'],
'pylint': ['pylint'],
'rope': ['rope>0.10.5'],
'yapf': ['yapf'],
'test': ['versioneer', 'pylint', 'pytest', 'mock', 'pytest-cov', 'coverage'],
},

# To provide executable scripts, use entry points in preference to the
# "scripts" keyword. Entry points provide cross-platform support and allow
# pip to create the appropriate form of executable for the target platform.
entry_points={
'console_scripts': [
'pyls = pyls.__main__:main',
],
'pyls': [
'autopep8 = pyls.plugins.autopep8_format',
'jedi_completion = pyls.plugins.jedi_completion',
'jedi_definition = pyls.plugins.definition',
'jedi_hover = pyls.plugins.hover',
'jedi_highlight = pyls.plugins.highlight',
'jedi_references = pyls.plugins.references',
'jedi_signature_help = pyls.plugins.signature',
'jedi_symbols = pyls.plugins.symbols',
'mccabe = pyls.plugins.mccabe_lint',
'preload = pyls.plugins.preload_imports',
'pycodestyle = pyls.plugins.pycodestyle_lint',
'pydocstyle = pyls.plugins.pydocstyle_lint',
'pyflakes = pyls.plugins.pyflakes_lint',
'pylint = pyls.plugins.pylint_lint',
'rope_completion = pyls.plugins.rope_completion',
'rope_rename = pyls.plugins.rope_rename',
'yapf = pyls.plugins.yapf_format',
]
},
)