Skip to content

Commit 7b98f9f

Browse files
npradeep357Pradeep Neerukondakrassowski
authored
Update python base version to 3.7+ (#130)
* Bumping python support version to 3.7+ * Updated python version in README.md * Update README.md * updated jsonschema test to pass empty instance * Update README.md Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com> Co-authored-by: Pradeep Neerukonda <pneeruko@opentext.com> Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
1 parent fa9fb19 commit 7b98f9f

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

.github/workflows/static.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
# TODO: check with Python 3, but need to fix the
3030
# errors first
31-
python-version: '3.6'
31+
python-version: '3.7'
3232
architecture: 'x64'
3333
- run: python -m pip install --upgrade pip setuptools jsonschema
3434
- run: pip install -e .[pylint,pycodestyle,pyflakes]
@@ -39,7 +39,7 @@ jobs:
3939
- name: Pyflakes checks
4040
run: pyflakes pylsp test
4141
- name: Validate JSON schema
42-
run: jsonschema pylsp/config/schema.json
42+
run: echo {} | jsonschema pylsp/config/schema.json
4343
- name: Ensure JSON schema and Markdown docs are in sync
4444
run: |
4545
python scripts/jsonschema2md.py pylsp/config/schema.json EXPECTED_CONFIGURATION.md

.github/workflows/test-linux.yml

Lines changed: 1 addition & 1 deletion
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']
23+
PYTHON_VERSION: ['3.9', '3.8', '3.7']
2424
timeout-minutes: 10
2525
steps:
2626
- uses: actions/cache@v1

.github/workflows/test-mac.yml

Lines changed: 1 addition & 1 deletion
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']
23+
PYTHON_VERSION: ['3.9', '3.8', '3.7']
2424
timeout-minutes: 10
2525
steps:
2626
- uses: actions/cache@v1

.github/workflows/test-win.yml

Lines changed: 1 addition & 1 deletion
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']
23+
PYTHON_VERSION: ['3.9', '3.8', '3.7']
2424
timeout-minutes: 10
2525
steps:
2626
- uses: actions/cache@v1

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
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 3.6+ implementation of the [Language Server Protocol](https://github.com/Microsoft/language-server-protocol).
5+
A Python 3.7+ implementation of the [Language Server Protocol](https://github.com/Microsoft/language-server-protocol).
6+
(Note: versions <1.4 should still work with Python 3.6)
67

78
## Installation
89

@@ -44,7 +45,7 @@ pip install -U setuptools
4445
Installing these plugins will add extra functionality to the language server:
4546

4647
- [pyls-flake8](https://github.com/emanspeaks/pyls-flake8/): Error checking using [flake8](https://flake8.pycqa.org/en/latest/).
47-
- [pylsp-mypy](https://github.com/Richardk2n/pylsp-mypy): [MyPy](http://mypy-lang.org/) type checking for Python >=3.6.
48+
- [pylsp-mypy](https://github.com/Richardk2n/pylsp-mypy): [MyPy](http://mypy-lang.org/) type checking for Python >=3.7.
4849
- [pyls-isort](https://github.com/paradoxxxzero/pyls-isort): code formatting using [isort](https://github.com/PyCQA/isort) (automatic import sorting).
4950
- [python-lsp-black](https://github.com/python-lsp/python-lsp-black): code formatting using [Black](https://github.com/psf/black).
5051
- [pyls-memestra](https://github.com/QuantStack/pyls-memestra): detecting the use of deprecated APIs.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def get_version(module='pylsp'):
4343
author='Python Language Server Contributors',
4444
packages=find_packages(exclude=['contrib', 'docs', 'test', 'test.*']),
4545
install_requires=install_requires,
46-
python_requires='>=3.6',
46+
python_requires='>=3.7',
4747
extras_require={
4848
'all': [
4949
'autopep8>=1.6.0,<1.7.0',

0 commit comments

Comments
 (0)