Drop Python 3.8 support

This commit is contained in:
grossmj
2026-01-24 18:52:09 +08:00
parent 5b2a102ef4
commit 8593357ab0
3 changed files with 7 additions and 9 deletions

View File

@@ -184,9 +184,9 @@ def main():
# catch exceptions to write them in a file
sys.excepthook = exceptionHook
# we only support Python 3 version >= 3.8
if sys.version_info < (3, 8):
raise SystemExit("Python 3.8 or higher is required")
# we only support Python 3 version >= 3.9
if sys.version_info < (3, 9):
raise SystemExit("Python 3.9 or higher is required")
if parse_version(QtCore.QT_VERSION_STR) < parse_version("6.3.1"):
raise SystemExit("Requirement is PyQt6 version 6.3.1 or higher, got version {}".format(QtCore.QT_VERSION_STR))

View File

@@ -181,8 +181,7 @@ class LogQMessageBox(QtWidgets.QMessageBox):
Return a logger in the context of the caller
in order to have the correct information in the log
"""
if sys.version_info < (3, 5):
return logging.getLogger('qt')
try:
caller = inspect.stack()[2]
location = "{}:{}".format(os.path.basename(caller.filename), caller.lineno)

View File

@@ -19,9 +19,9 @@ import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
# we only support Python 3 version >= 3.8
if len(sys.argv) >= 2 and sys.argv[1] == "install" and sys.version_info < (3, 8):
raise SystemExit("Python 3.8 or higher is required")
# we only support Python 3 version >= 3.9
if len(sys.argv) >= 2 and sys.argv[1] == "install" and sys.version_info < (3, 9):
raise SystemExit("Python 3.9 or higher is required")
class PyTest(TestCommand):
@@ -93,7 +93,6 @@ setup(
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",