From 3aa7f85de43575954497f83707042448a19793f7 Mon Sep 17 00:00:00 2001 From: Matthias Hagmann <16444067+MattHag@users.noreply.github.com> Date: Fri, 10 May 2024 11:21:38 +0200 Subject: [PATCH 1/2] Drop support for end-of-life Python 3.7 --- .github/workflows/tests.yml | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8f577c4b92..f370fbbb98 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/setup.py b/setup.py index 361b709766..ac37346683 100755 --- a/setup.py +++ b/setup.py @@ -73,7 +73,7 @@ def _data_files(): # 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)", From d50a77ed0f88447aa7791a81f28d5168d30429a5 Mon Sep 17 00:00:00 2001 From: Matthias Hagmann <16444067+MattHag@users.noreply.github.com> Date: Fri, 10 May 2024 11:42:38 +0200 Subject: [PATCH 2/2] Remove handling of code for Python 3.7 and older --- lib/hid_parser/__init__.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/hid_parser/__init__.py b/lib/hid_parser/__init__.py index f5683b3468..d09e5eaa50 100644 --- a/lib/hid_parser/__init__.py +++ b/lib/hid_parser/__init__.py @@ -14,17 +14,13 @@ 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"