From ac7acff926b0a5d58f570a3531072273840ea954 Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Thu, 19 Oct 2023 09:57:29 -0500 Subject: [PATCH] Drop support for Python 3.7 because it reached end-of-life --- .github/workflows/linux-tests.yml | 2 +- .github/workflows/macos-tests.yml | 2 +- .github/workflows/windows-tests.yml | 2 +- setup.py | 12 ++++++------ 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/linux-tests.yml b/.github/workflows/linux-tests.yml index 3bea1cea..52495749 100644 --- a/.github/workflows/linux-tests.yml +++ b/.github/workflows/linux-tests.yml @@ -26,7 +26,7 @@ jobs: strategy: fail-fast: false matrix: - PYTHON_VERSION: ['3.7', '3.8', '3.9', '3.10'] + PYTHON_VERSION: ['3.8', '3.9', '3.10', '3.11'] INSTALL_TYPE: ['conda', 'pip'] QT_LIB: ['pyqt5', 'pyqt6'] exclude: diff --git a/.github/workflows/macos-tests.yml b/.github/workflows/macos-tests.yml index 38bea791..4042616a 100644 --- a/.github/workflows/macos-tests.yml +++ b/.github/workflows/macos-tests.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - PYTHON_VERSION: ['3.7', '3.8', '3.9', '3.10'] + PYTHON_VERSION: ['3.8', '3.9', '3.10', '3.11'] timeout-minutes: 15 steps: - name: Checkout branch diff --git a/.github/workflows/windows-tests.yml b/.github/workflows/windows-tests.yml index 2c3f7bac..3db1c7ff 100644 --- a/.github/workflows/windows-tests.yml +++ b/.github/workflows/windows-tests.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - PYTHON_VERSION: ['3.7', '3.8', '3.9', '3.10'] + PYTHON_VERSION: ['3.8', '3.9', '3.10', '3.11'] timeout-minutes: 15 steps: - name: Checkout branch diff --git a/setup.py b/setup.py index 59f5f0db..a5968e6d 100644 --- a/setup.py +++ b/setup.py @@ -13,12 +13,11 @@ import sys v = sys.version_info -if v[0] >= 3 and v[:2] < (3, 6): - error = "ERROR: %s requires Python version 3.7 or above." % name +if v[0] >= 3 and v[:2] < (3, 7): + error = "ERROR: %s requires Python version 3.8 or above." % name print(error, file=sys.stderr) sys.exit(1) -PY3 = (sys.version_info[0] >= 3) #----------------------------------------------------------------------------- # get on with it @@ -35,7 +34,7 @@ packages = [] for d, _, _ in os.walk(pjoin(here, name)): if os.path.exists(pjoin(d, '__init__.py')): - packages.append(d[len(here)+1:].replace(os.path.sep, '.')) + packages.append(d[len(here) + 1:].replace(os.path.sep, '.')) package_data = { 'qtconsole' : ['resources/icon/*.svg'], @@ -64,7 +63,7 @@ license = 'BSD', platforms = "Linux, Mac OS X, Windows", keywords = ['Interactive', 'Interpreter', 'Shell'], - python_requires = '>= 3.7', + python_requires = '>= 3.8', install_requires = [ 'traitlets!=5.2.1,!=5.2.2', 'jupyter_core', @@ -91,10 +90,11 @@ 'License :: OSI Approved :: BSD License', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', ], )