From b6c8e0106095e88cfdefff9cc61f8e201ceef992 Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Sat, 12 Feb 2022 12:06:59 -0500 Subject: [PATCH] Increase required versions for Python and PyQt/Pyside - The minimal Python version is now 3.7 - For PyQt we require 5.9 and for PySide 5.12 --- README.md | 6 +++--- setup.py | 7 +++---- spyder/app/tests/spyder-boilerplate/setup.py | 2 +- spyder/requirements.py | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0c05d816576..211c3743660 100644 --- a/README.md +++ b/README.md @@ -189,14 +189,14 @@ to install them separately in those cases. ### Build dependencies When installing Spyder from its source package, the only requirement is to have -a Python version equal or greater than 3.6. +a Python version equal or greater than 3.7. ### Runtime dependencies The basic dependencies to run Spyder are: -* **Python** 3.6+: The core language Spyder is written in and for. -* **PyQt5** 5.6+: Python bindings for Qt, used for Spyder's GUI. +* **Python** 3.7+: The core language Spyder is written in and for. +* **PyQt5** 5.9+: Python bindings for Qt, used for Spyder's GUI. The rest our dependencies (both required and optional) are declared in [this file](https://github.com/spyder-ide/spyder/blob/master/spyder/dependencies.py). diff --git a/setup.py b/setup.py index 7c4292e0586..de8017dc97c 100644 --- a/setup.py +++ b/setup.py @@ -39,8 +39,8 @@ # Taken from the notebook setup.py -- Modified BSD License # ============================================================================= v = sys.version_info -if v[0] >= 3 and v[:2] < (3, 6): - error = "ERROR: Spyder requires Python version 3.6 and above." +if v[0] >= 3 and v[:2] < (3, 7): + error = "ERROR: Spyder requires Python version 3.7 and above." print(error, file=sys.stderr) sys.exit(1) @@ -178,14 +178,13 @@ def run(self): package_data={LIBNAME: get_package_data(LIBNAME, EXTLIST)}, scripts=[osp.join('scripts', fname) for fname in SCRIPTS], data_files=get_data_files(), - python_requires='>=3.6', + python_requires='>=3.7', classifiers=[ 'License :: OSI Approved :: MIT License', 'Operating System :: MacOS', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', diff --git a/spyder/app/tests/spyder-boilerplate/setup.py b/spyder/app/tests/spyder-boilerplate/setup.py index 15f3004ae77..58adb5fdeb2 100644 --- a/spyder/app/tests/spyder-boilerplate/setup.py +++ b/spyder/app/tests/spyder-boilerplate/setup.py @@ -19,7 +19,7 @@ author_email="spyder.python@gmail.com", description="Plugin that registers a programmatic custom layout", license="MIT license", - python_requires='>= 3.6', + python_requires='>= 3.7', install_requires=[ "qtpy", "qtawesome", diff --git a/spyder/requirements.py b/spyder/requirements.py index 9aa7b26212f..7d27d32cb37 100644 --- a/spyder/requirements.py +++ b/spyder/requirements.py @@ -39,7 +39,7 @@ def check_path(): def check_qt(): """Check Qt binding requirements""" - qt_infos = dict(pyqt5=("PyQt5", "5.6"), pyside2=("PySide2", "5.6")) + qt_infos = dict(pyqt5=("PyQt5", "5.9"), pyside2=("PySide2", "5.12")) try: import qtpy package_name, required_ver = qt_infos[qtpy.API]