Skip to content

Commit b910675

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 74aa977 + 3b105b4 commit b910675

File tree

4 files changed

+38
-52
lines changed

4 files changed

+38
-52
lines changed

pyls_mypy/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
from future.standard_library import install_aliases
21
from ._version import get_versions
2+
import sys
3+
4+
if sys.version_info[0] < 3:
5+
from future.standard_library import install_aliases
6+
install_aliases()
37

4-
install_aliases()
58
__version__ = get_versions()['version']
69
del get_versions

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
future
1+
future;python_version < '3'
22
flake8
33
configparser
44
python-language-server

setup.cfg

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,36 @@
1+
[metadata]
2+
name = pyls-mypy
3+
author = Tom van Ommeren
4+
description = Mypy linter for the Python Language Server
5+
url = https://github.com/tomv564/pyls-mypy
6+
long_description = file: README.rst
7+
8+
[options]
9+
packages = find:
10+
install_requires = python-language-server; mypy
11+
12+
13+
[options.entry_points]
14+
pyls = pyls_mypy = pyls_mypy.plugin
15+
16+
[options.extras_require]
17+
test =
18+
tox
19+
versioneer
20+
pytest
21+
pytest-cov
22+
coverage
23+
124
[versioneer]
225
VCS = git
326
style = pep440
427
versionfile_source = pyls_mypy/_version.py
528
versionfile_build = pyls_mypy/_version.py
629
tag_prefix =
730
parentdir_prefix =
31+
32+
[options.packages.find]
33+
exclude =
34+
contrib
35+
docs
36+
test

setup.py

Lines changed: 3 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,6 @@
11
#!/usr/bin/env python
2-
from setuptools import find_packages, setup
2+
from setuptools import setup
33
import versioneer
44

5-
README = open('README.rst', 'r').read()
6-
7-
8-
setup(
9-
name='pyls-mypy',
10-
11-
# Versions should comply with PEP440. For a discussion on single-sourcing
12-
# the version across setup.py and the project code, see
13-
# https://packaging.python.org/en/latest/single_source_version.html
14-
version=versioneer.get_version(),
15-
cmdclass=versioneer.get_cmdclass(),
16-
17-
description='Mypy linter for the Python Language Server',
18-
19-
long_description=README,
20-
21-
# The project's main homepage.
22-
url='https://github.com/tomv564/pyls-mypy',
23-
24-
author='Tom van Ommeren',
25-
26-
# You can just specify the packages manually here if your project is
27-
# simple. Or you can use find_packages().
28-
packages=find_packages(exclude=['contrib', 'docs', 'test']),
29-
30-
# List run-time dependencies here. These will be installed by pip when
31-
# your project is installed. For an analysis of "install_requires" vs pip's
32-
# requirements files see:
33-
# https://packaging.python.org/en/latest/requirements.html
34-
install_requires=[
35-
'python-language-server',
36-
'mypy'
37-
],
38-
39-
# List additional groups of dependencies here (e.g. development
40-
# dependencies). You can install these using the following syntax,
41-
# for example:
42-
# $ pip install -e .[test]
43-
extras_require={
44-
'test': ['tox', 'versioneer', 'pytest', 'pytest-cov', 'coverage'],
45-
},
46-
47-
entry_points={
48-
'pyls': [
49-
'pyls_mypy = pyls_mypy.plugin',
50-
],
51-
},
52-
)
5+
if __name__ == "__main__":
6+
setup(version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass())

0 commit comments

Comments
 (0)