Skip to content

Commit

Permalink
Merge pull request #17331 from ccordoba12/drop-py36
Browse files Browse the repository at this point in the history
PR: Increase required versions for Python and PyQt/Pyside
  • Loading branch information
ccordoba12 committed Feb 13, 2022
2 parents 8b76f9b + b6c8e01 commit 84eff5c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion spyder/app/tests/spyder-boilerplate/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion spyder/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 84eff5c

Please sign in to comment.