File tree 6 files changed +57
-53
lines changed
6 files changed +57
-53
lines changed Original file line number Diff line number Diff line change
1
+ # autogenerated version file
2
+ /pylsp_jsonrpc /_version.py
3
+
1
4
# Byte-compiled / optimized / DLL files
2
5
__pycache__ /
3
6
* .py [cod ]
Original file line number Diff line number Diff line change 1
1
# Copyright 2017-2020 Palantir Technologies, Inc.
2
2
# Copyright 2021- Python Language Server Contributors.
3
3
4
+ from . import _version
4
5
from ._version import __version__
5
6
6
- __all__ = [__version__ ]
7
+
8
+ def convert_version_info (version : str ) -> (int , ..., str ):
9
+ version_info = version .split ("." )
10
+ for i in range (len (version_info )): # pylint:disable=consider-using-enumerate
11
+ try :
12
+ version_info [i ] = int (version_info [i ])
13
+ except ValueError :
14
+ version_info [i ] = version_info [i ].split ("+" )[0 ]
15
+ version_info = version_info [: i + 1 ]
16
+ break
17
+
18
+ return tuple (version_info )
19
+
20
+
21
+ _version .VERSION_INFO = convert_version_info (__version__ )
22
+
23
+ __all__ = ("__version__" ,)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ requires = [" setuptools>=44" , " wheel" , " setuptools_scm[toml]>=3.4.3" ]
3
+ build-backend = " setuptools.build_meta"
4
+
5
+ [tool .setuptools_scm ]
6
+ write_to = " pylsp_jsonrpc/_version.py"
7
+ write_to_template = " __version__ = \" {version}\"\n " # VERSION_INFO is populated in __main__
Original file line number Diff line number Diff line change
1
+ [metadata]
2
+ name = python-lsp-jsonrpc
3
+ author = Python Language Server Contributors
4
+ description = JSON RPC 2.0 server library
5
+ url = https://github.com/python-lsp/python-lsp-jsonrpc
6
+ long_description = file: README.md
7
+ long_description_content_type = text/markdown
8
+
9
+
10
+ [options]
11
+ packages = find:
12
+ setup_requires = setuptools>=44; wheel; setuptools_scm[toml]>=3.4.3
13
+ install_requires = ujson>=3.0.0
14
+
15
+ [options.packages.find]
16
+ exclude =
17
+ contrib
18
+ docs
19
+ test
20
+ test.*
21
+
22
+ [options.extras_require]
23
+ test =
24
+ pylint
25
+ pycodestyle
26
+ pyflakes
27
+ pytest
28
+ pytest-cov
29
+ coverage
1
30
2
31
[pycodestyle]
3
32
ignore = E226, E722, W504
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments