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
This commit is contained in:
MattHag 2024-05-11 17:48:32 +02:00 committed by GitHub
parent ea77335ecf
commit b321167304
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 8 deletions

View File

@ -8,7 +8,7 @@ jobs:
strategy: strategy:
matrix: matrix:
python-version: [3.7, 3.12] python-version: [3.8, 3.12]
steps: steps:
- name: Checkout - name: Checkout
@ -36,7 +36,7 @@ jobs:
# #
# strategy: # strategy:
# matrix: # matrix:
# python-version: [3.7, 3.12] # python-version: [3.8, 3.12]
# #
# steps: # steps:
# - name: Checkout # - name: Checkout

View File

@ -14,17 +14,13 @@ from typing import Dict
from typing import Iterable from typing import Iterable
from typing import Iterator from typing import Iterator
from typing import List from typing import List
from typing import Literal
from typing import Optional from typing import Optional
from typing import Sequence from typing import Sequence
from typing import TextIO from typing import TextIO
from typing import Tuple from typing import Tuple
from typing import Union 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 import hid_parser.data
__version__ = "0.0.3" __version__ = "0.0.3"

View File

@ -73,7 +73,7 @@ For instructions on installing Solaar see https://pwr-solaar.github.io/Solaar/in
# sudo apt install python-gi python3-gi \ # sudo apt install python-gi python3-gi \
# gir1.2-gtk-3.0 gir1.2-notify-0.7 gir1.2-ayatanaappindicator3-0.1 # 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)'], # os_requires=['gi.repository.GObject (>= 2.0)', 'gi.repository.Gtk (>= 3.0)'],
python_requires=">=3.7", python_requires=">=3.8",
install_requires=[ install_requires=[
'evdev (>= 1.1.2) ; platform_system=="Linux"', 'evdev (>= 1.1.2) ; platform_system=="Linux"',
"pyudev (>= 0.13)", "pyudev (>= 0.13)",