Skip to content

Commit 0a3352d

Browse files
authored
PR: Rename namespace to pylsp and package to python-lsp-server (#10)
1 parent fcb9bee commit 0a3352d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+798
-5505
lines changed

.circleci/config.yml

-60
This file was deleted.

.coveragerc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[run]
2-
omit = pyls/_version.py
2+
omit = pylsp/_version.py

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pyls/_version.py export-subst
1+
pylsp/_version.py export-subst

.github/workflows/static.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ jobs:
2828
with:
2929
# TODO: check with Python 3, but need to fix the
3030
# errors first
31-
python-version: '2.7'
31+
python-version: '3.6'
3232
architecture: 'x64'
3333
- run: python -m pip install --upgrade pip setuptools
3434
- run: pip install -e .[pylint,pycodestyle,pyflakes]
3535
- name: Pylint checks
36-
run: pylint pyls test
36+
run: pylint pylsp test
3737
- name: Code style checks
38-
run: pycodestyle pyls test
38+
run: pycodestyle pylsp test
3939
- name: Pyflakes checks
40-
run: pyflakes pyls test
40+
run: pyflakes pylsp test

.github/workflows/test-linux.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
PYTHON_VERSION: ['3.9', '3.8', '3.7', '3.6', '2.7']
23+
PYTHON_VERSION: ['3.9', '3.8', '3.7', '3.6']
2424
timeout-minutes: 10
2525
steps:
2626
- uses: actions/cache@v1
@@ -41,3 +41,7 @@ jobs:
4141
- run: python -m pip install --upgrade pip setuptools
4242
- run: pip install -e .[all,test]
4343
- run: pytest -v test/
44+
# Enable this if SSH debugging is required
45+
# - name: Setup tmate session
46+
# uses: mxschmitt/action-tmate@v3
47+
# if: ${{ failure() }}

.github/workflows/test-mac.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
PYTHON_VERSION: ['3.9', '3.8', '3.7', '3.6', '2.7']
23+
PYTHON_VERSION: ['3.9', '3.8', '3.7', '3.6']
2424
timeout-minutes: 10
2525
steps:
2626
- uses: actions/cache@v1
@@ -41,3 +41,7 @@ jobs:
4141
- run: python -m pip install --upgrade pip setuptools
4242
- run: pip install -e .[all,test]
4343
- run: pytest -v test/
44+
# Enable this if SSH debugging is required
45+
# - name: Setup tmate session
46+
# uses: mxschmitt/action-tmate@v3
47+
# if: ${{ failure() }}

.github/workflows/test-win.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
PYTHON_VERSION: ['3.9', '3.8', '3.7', '3.6', '2.7']
23+
PYTHON_VERSION: ['3.9', '3.8', '3.7', '3.6']
2424
timeout-minutes: 10
2525
steps:
2626
- uses: actions/cache@v1

.pylintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ reports = no
2525
[TYPECHECK]
2626

2727
generated-members =
28-
pyls_*
28+
pylsp_*
2929
cache_clear

LICENSE

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
The MIT License (MIT)
22

3-
Copyright 2017 Palantir Technologies, Inc.
3+
Copyright 2017-2020 Palantir Technologies, Inc.
4+
Copyright 2021 Python Language Server Contributors.
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include README.md
22
include versioneer.py
3-
include pyls/_version.py
3+
include pylsp/_version.py
44
include LICENSE
55
include .pylintrc
66
recursive-include test *.py

README.md

+7-34
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# Python Language Server
1+
# Python LSP Server
22

33
[![image](https://github.com/python-ls/python-ls/workflows/Linux%20tests/badge.svg)](https://github.com/python-ls/python-ls/actions?query=workflow%3A%22Linux+tests%22) [![image](https://github.com/python-ls/python-ls/workflows/Mac%20tests/badge.svg)](https://github.com/python-ls/python-ls/actions?query=workflow%3A%22Mac+tests%22) [![image](https://github.com/python-ls/python-ls/workflows/Windows%20tests/badge.svg)](https://github.com/python-ls/python-ls/actions?query=workflow%3A%22Windows+tests%22) [![image](https://img.shields.io/github/license/python-ls/python-ls.svg)](https://github.com/python-ls/python-ls/blob/master/LICENSE)
44

5-
A Python 2.7 and 3.5+ implementation of the [Language Server Protocol](https://github.com/Microsoft/language-server-protocol).
5+
A Python 3.6+ implementation of the [Language Server Protocol](https://github.com/Microsoft/language-server-protocol).
66

77
## Installation
88

99
The base language server requires [Jedi](https://github.com/davidhalter/jedi) to provide Completions, Definitions, Hover, References, Signature Help, and Symbols:
1010

1111
```
12-
pip install python-language-server
12+
pip install python-lsp-server
1313
```
1414

1515
If the respective dependencies are found, the following optional providers will be enabled:
@@ -24,13 +24,13 @@ If the respective dependencies are found, the following optional providers will
2424
Optional providers can be installed using the `extras` syntax. To install [YAPF](https://github.com/google/yapf) formatting for example:
2525

2626
```
27-
pip install 'python-language-server[yapf]'
27+
pip install 'python-lsp-server[yapf]'
2828
```
2929

3030
All optional providers can be installed using:
3131

3232
```
33-
pip install 'python-language-server[all]'
33+
pip install 'python-lsp-server[all]'
3434
```
3535

3636
If you get an error similar to `'install_requires' must be a string or list of strings` then please upgrade setuptools before trying again.
@@ -57,12 +57,12 @@ Configuration is loaded from zero or more configuration sources. Currently impl
5757
- pycodestyle: discovered in `~/.config/pycodestyle`, `setup.cfg`, `tox.ini` and `pycodestyle.cfg`.
5858
- flake8: discovered in `~/.config/flake8`, `setup.cfg`, `tox.ini` and `flake8.cfg`
5959

60-
The default configuration source is pycodestyle. Change the `pyls.configurationSources` setting to `['flake8']` in order to respect flake8 configuration instead.
60+
The default configuration source is pycodestyle. Change the `pylsp.configurationSources` setting to `['flake8']` in order to respect flake8 configuration instead.
6161

6262
Overall configuration is computed first from user configuration (in home directory), overridden by configuration passed in by the language client, and then overriden by configuration discovered in the workspace.
6363

6464
To enable pydocstyle for linting docstrings add the following setting in your LSP configuration:
65-
`\` "pyls.plugins.pydocstyle.enabled": true \``
65+
`\` "pylsp.plugins.pydocstyle.enabled": true \``
6666

6767
See [vscode-client/package.json](vscode-client/package.json) for the full set of supported configuration options.
6868

@@ -108,33 +108,6 @@ To run the test suite:
108108
pip install .[test] && pytest
109109
```
110110

111-
# Develop against VS Code
112-
113-
The Python language server can be developed against a local instance of
114-
Visual Studio Code.
115-
116-
Install [VSCode](https://code.visualstudio.com/download)
117-
118-
```bash
119-
# Setup a virtual env
120-
virtualenv env
121-
. env/bin/activate
122-
123-
# Install pyls
124-
pip install .
125-
126-
# Install the vscode-client extension
127-
cd vscode-client
128-
yarn install
129-
130-
# Run VSCode which is configured to use pyls
131-
# See the bottom of vscode-client/src/extension.ts for info
132-
yarn run vscode -- $PWD/../
133-
```
134-
135-
Then to debug, click View -> Output and in the dropdown will be pyls.
136-
To refresh VSCode, press `Cmd + r`
137-
138111
## License
139112

140113
This project is made available under the MIT License.

RELEASE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
To release a new version of the PyLS you need to follow these steps:
1+
To release a new version of the PyLSP you need to follow these steps:
22

33
* Close the current milestone on Github
44

pyls/__init__.py

-19
This file was deleted.

0 commit comments

Comments
 (0)