Skip to content

Commit

Permalink
lsp-devtool: Drop Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarney committed Aug 19, 2023
1 parent c568cfb commit a56dac7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lsp-devtools-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-latest]

steps:
Expand Down
1 change: 1 addition & 0 deletions lib/lsp-devtools/changes/77.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Drop Python 3.7 support
7 changes: 1 addition & 6 deletions lib/lsp-devtools/lsp_devtools/handlers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import json
import logging
from typing import Any
from typing import Literal
from typing import Mapping
from typing import Optional
from uuid import uuid4

import attrs

try:
from typing import Literal
except ImportError:
from typing_extensions import Literal # type: ignore[assignment]


MessageSource = Literal["client", "server"]


Expand Down
7 changes: 1 addition & 6 deletions lib/lsp-devtools/lsp_devtools/record/filters.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import logging
from typing import Dict
from typing import Literal
from typing import Set
from typing import Union

import attrs

from .formatters import FormatString

try:
from typing import Literal
except ImportError:
from typing_extensions import Literal # type: ignore[assignment]


logger = logging.getLogger(__name__)

MessageSource = Literal["client", "server", "both"]
Expand Down
4 changes: 1 addition & 3 deletions lib/lsp-devtools/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "lsp-devtools"
version = "0.1.1"
description = "Developer tooling for language servers"
readme = "README.md"
requires-python = ">=3.7"
requires-python = ">=3.8"
license = { text = "MIT" }
authors = [{ name = "Alex Carney", email = "[email protected]" }]
classifiers = [
Expand All @@ -16,7 +16,6 @@ classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand All @@ -29,7 +28,6 @@ dependencies = [
"pygls",
"stamina",
"textual>=0.14.0",
"typing-extensions; python_version<\"3.8\"",
]

[project.urls]
Expand Down

0 comments on commit a56dac7

Please sign in to comment.