File tree Expand file tree Collapse file tree 6 files changed +55
-53
lines changed Expand file tree Collapse file tree 6 files changed +55
-53
lines changed Original file line number Diff line number Diff line change 1+ # autogenerated version file
2+ /pylsp_jsonrpc /_version.py
3+
14# Byte-compiled / optimized / DLL files
25__pycache__ /
36* .py [cod ]
Original file line number Diff line number Diff line change 11# Copyright 2017-2020 Palantir Technologies, Inc.
22# Copyright 2021- Python Language Server Contributors.
33
4+ from . import _version
45from ._version import __version__
56
6- __all__ = [__version__ ]
7+ def convert_version_info (version : str ) -> (int , ..., str ):
8+ version_info = version .split ("." )
9+ for i in range (len (version_info )):
10+ try :
11+ version_info [i ] = int (version_info [i ])
12+ except ValueError :
13+ version_info [i ] = version_info [i ].split ("+" )[0 ]
14+ version_info = version_info [:i + 1 ]
15+ break
16+
17+ return tuple (version_info )
18+
19+ _version .VERSION_INFO = convert_version_info (__version__ )
20+
21+ __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
130
231[pycodestyle]
332ignore = E226, E722, W504
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments