Skip to content

Commit

Permalink
feat: drop Python 3.7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
tombh committed Nov 26, 2023
1 parent a590d30 commit 40d9e58
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Features
Python Versions
---------------

*pygls* works with Python 3.7.16+.
*pygls* works with Python 3.8+.

User Guide
----------
Expand Down
2 changes: 1 addition & 1 deletion docs/source/pages/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ In order to setup and run the example VSCode extension, you need following softw
installed:

* `Visual Studio Code <https://code.visualstudio.com/>`_ editor
* `Python 3.7.16+ <https://www.python.org/downloads/>`_
* `Python 3.8+ <https://www.python.org/downloads/>`_
* `vscode-python <https://marketplace.visualstudio.com/items?itemName=ms-python.python>`_ extension
* A clone of the `pygls <https://github.com/openlawlibrary/pygls>`_ repository

Expand Down
2 changes: 1 addition & 1 deletion docs/source/pages/user-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ Depending on the use case, handlers can be registered in three different ways:
*Asynchronous* Functions (*Coroutines*)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

*pygls* supports ``python 3.7+`` which has a keyword ``async`` to
*pygls* supports ``python 3.8+`` which has a keyword ``async`` to
specify coroutines.

The code snippet below shows how to register a command as a coroutine:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ license = "Apache 2.0"
readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.7.9,<4"
python = ">=3.8.18,<4"
lsprotocol = "2023.0.0"
websockets = { version = "^11.0.3", optional = true }

Expand Down
12 changes: 6 additions & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@
############################################################################
import asyncio
import pathlib
import sys

import pytest
from lsprotocol import types, converters

from pygls import uris, IS_PYODIDE, IS_WIN
from pygls import uris, IS_PYODIDE
from pygls.feature_manager import FeatureManager
from pygls.workspace import Workspace

Expand Down Expand Up @@ -85,10 +84,11 @@ def event_loop():
of our client fixture."""

# Only required for Python 3.7 on Windows.
if sys.version_info.minor == 7 and IS_WIN:
policy = asyncio.WindowsProactorEventLoopPolicy()
else:
policy = asyncio.get_event_loop_policy()
# @alcarney is this needed if we drop 3.7 suppoer?
# if sys.version_info.minor == 7 and IS_WIN:
# policy = asyncio.WindowsProactorEventLoopPolicy()

policy = asyncio.get_event_loop_policy()

loop = policy.new_event_loop()
yield loop
Expand Down

0 comments on commit 40d9e58

Please sign in to comment.