From f8a20e159685877d174e0c14d09639088c434468 Mon Sep 17 00:00:00 2001 From: Pradeep Neerukonda Date: Wed, 1 Dec 2021 23:44:18 +0530 Subject: [PATCH 1/5] Bumping python support version to 3.7+ --- .github/workflows/static.yml | 2 +- .github/workflows/test-linux.yml | 2 +- .github/workflows/test-mac.yml | 2 +- .github/workflows/test-win.yml | 2 +- setup.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index d6aec6a1..2abe3c4f 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -28,7 +28,7 @@ jobs: with: # TODO: check with Python 3, but need to fix the # errors first - python-version: '3.6' + python-version: '3.7' architecture: 'x64' - run: python -m pip install --upgrade pip setuptools jsonschema - run: pip install -e .[pylint,pycodestyle,pyflakes] diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml index f335233b..861f423b 100644 --- a/.github/workflows/test-linux.yml +++ b/.github/workflows/test-linux.yml @@ -20,7 +20,7 @@ jobs: strategy: fail-fast: false matrix: - PYTHON_VERSION: ['3.9', '3.8', '3.7', '3.6'] + PYTHON_VERSION: ['3.9', '3.8', '3.7'] timeout-minutes: 10 steps: - uses: actions/cache@v1 diff --git a/.github/workflows/test-mac.yml b/.github/workflows/test-mac.yml index a0795b84..29084068 100644 --- a/.github/workflows/test-mac.yml +++ b/.github/workflows/test-mac.yml @@ -20,7 +20,7 @@ jobs: strategy: fail-fast: false matrix: - PYTHON_VERSION: ['3.9', '3.8', '3.7', '3.6'] + PYTHON_VERSION: ['3.9', '3.8', '3.7'] timeout-minutes: 10 steps: - uses: actions/cache@v1 diff --git a/.github/workflows/test-win.yml b/.github/workflows/test-win.yml index d051caf7..85f1013e 100644 --- a/.github/workflows/test-win.yml +++ b/.github/workflows/test-win.yml @@ -20,7 +20,7 @@ jobs: strategy: fail-fast: false matrix: - PYTHON_VERSION: ['3.9', '3.8', '3.7', '3.6'] + PYTHON_VERSION: ['3.9', '3.8', '3.7'] timeout-minutes: 10 steps: - uses: actions/cache@v1 diff --git a/setup.py b/setup.py index f8deee52..0c471a6a 100755 --- a/setup.py +++ b/setup.py @@ -43,7 +43,7 @@ def get_version(module='pylsp'): author='Python Language Server Contributors', packages=find_packages(exclude=['contrib', 'docs', 'test', 'test.*']), install_requires=install_requires, - python_requires='>=3.6', + python_requires='>=3.7', extras_require={ 'all': [ 'autopep8>=1.6.0,<1.7.0', From a16304e1d76c0a63f4dfa93be2dc617950da34de Mon Sep 17 00:00:00 2001 From: Pradeep Neerukonda Date: Wed, 1 Dec 2021 23:46:31 +0530 Subject: [PATCH 2/5] Updated python version in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6b3cec14..903f841f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![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) -A Python 3.6+ implementation of the [Language Server Protocol](https://github.com/Microsoft/language-server-protocol). +A Python 3.7+ implementation of the [Language Server Protocol](https://github.com/Microsoft/language-server-protocol). ## Installation @@ -44,7 +44,7 @@ pip install -U setuptools Installing these plugins will add extra functionality to the language server: - [pyls-flake8](https://github.com/emanspeaks/pyls-flake8/): Error checking using [flake8](https://flake8.pycqa.org/en/latest/). -- [pylsp-mypy](https://github.com/Richardk2n/pylsp-mypy): [MyPy](http://mypy-lang.org/) type checking for Python >=3.6. +- [pylsp-mypy](https://github.com/Richardk2n/pylsp-mypy): [MyPy](http://mypy-lang.org/) type checking for Python >=3.7. - [pyls-isort](https://github.com/paradoxxxzero/pyls-isort): code formatting using [isort](https://github.com/PyCQA/isort) (automatic import sorting). - [python-lsp-black](https://github.com/python-lsp/python-lsp-black): code formatting using [Black](https://github.com/psf/black). - [pyls-memestra](https://github.com/QuantStack/pyls-memestra): detecting the use of deprecated APIs. From 270c49f49d4b30272996cff65b5ab5c0aae35699 Mon Sep 17 00:00:00 2001 From: pradeep <16036792+npradeep357@users.noreply.github.com> Date: Fri, 3 Dec 2021 09:35:44 +0530 Subject: [PATCH 3/5] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 903f841f..dac18155 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![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) A Python 3.7+ implementation of the [Language Server Protocol](https://github.com/Microsoft/language-server-protocol). +(Note: Python 3.6 is now not supported) ## Installation From 08541235b96c9529eb1866fa4363659ad15129fa Mon Sep 17 00:00:00 2001 From: pradeep <16036792+npradeep357@users.noreply.github.com> Date: Thu, 9 Dec 2021 19:02:36 +0530 Subject: [PATCH 4/5] updated jsonschema test to pass empty instance --- .github/workflows/static.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 2abe3c4f..37e2b763 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -39,7 +39,7 @@ jobs: - name: Pyflakes checks run: pyflakes pylsp test - name: Validate JSON schema - run: jsonschema pylsp/config/schema.json + run: echo {} | jsonschema pylsp/config/schema.json - name: Ensure JSON schema and Markdown docs are in sync run: | python scripts/jsonschema2md.py pylsp/config/schema.json EXPECTED_CONFIGURATION.md From 107c11c140c6806ed4e0c5443e93b69fec12001f Mon Sep 17 00:00:00 2001 From: pradeep <16036792+npradeep357@users.noreply.github.com> Date: Thu, 9 Dec 2021 23:44:51 +0530 Subject: [PATCH 5/5] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: MichaƂ Krassowski <5832902+krassowski@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dac18155..5f509621 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![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) A Python 3.7+ implementation of the [Language Server Protocol](https://github.com/Microsoft/language-server-protocol). -(Note: Python 3.6 is now not supported) +(Note: versions <1.4 should still work with Python 3.6) ## Installation