From b3211673040a5df3d323e45457c2556543abf672 Mon Sep 17 00:00:00 2001 From: MattHag <16444067+MattHag@users.noreply.github.com> Date: Sat, 11 May 2024 17:48:32 +0200 Subject: [PATCH] Drop support for end-of-life Python 3.7 * Drop support for end-of-life Python 3.7 * Remove handling of code for Python 3.7 and older --- .github/workflows/tests.yml | 4 ++-- lib/hid_parser/__init__.py | 6 +----- setup.py | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8f577c4b..f370fbbb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - python-version: [3.7, 3.12] + python-version: [3.8, 3.12] steps: - name: Checkout @@ -36,7 +36,7 @@ jobs: # # strategy: # matrix: -# python-version: [3.7, 3.12] +# python-version: [3.8, 3.12] # # steps: # - name: Checkout diff --git a/lib/hid_parser/__init__.py b/lib/hid_parser/__init__.py index f5683b34..d09e5eaa 100644 --- a/lib/hid_parser/__init__.py +++ b/lib/hid_parser/__init__.py @@ -14,17 +14,13 @@ from typing import Dict from typing import Iterable from typing import Iterator from typing import List +from typing import Literal from typing import Optional from typing import Sequence from typing import TextIO from typing import Tuple from typing import Union -if sys.version_info >= (3, 8): - from typing import Literal -else: # pragma: no cover - from typing_extensions import Literal - import hid_parser.data __version__ = "0.0.3" diff --git a/setup.py b/setup.py index 361b7097..ac373466 100755 --- a/setup.py +++ b/setup.py @@ -73,7 +73,7 @@ For instructions on installing Solaar see https://pwr-solaar.github.io/Solaar/in # sudo apt install python-gi python3-gi \ # gir1.2-gtk-3.0 gir1.2-notify-0.7 gir1.2-ayatanaappindicator3-0.1 # os_requires=['gi.repository.GObject (>= 2.0)', 'gi.repository.Gtk (>= 3.0)'], - python_requires=">=3.7", + python_requires=">=3.8", install_requires=[ 'evdev (>= 1.1.2) ; platform_system=="Linux"', "pyudev (>= 0.13)",