Skip to content

Commit

Permalink
More Python version range fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aivarannamaa committed Apr 8, 2023
1 parent c9ef734 commit bd9327b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def recursive_files(directory):
paths.append(os.path.join('..', path, filename))
return paths

if sys.version_info < (3, 6):
raise RuntimeError("Thonny requires Python 3.6 or later")
if sys.version_info < (3, 8):
raise RuntimeError("Thonny requires Python 3.8 or later")

setupdir = os.path.dirname(__file__)

Expand Down Expand Up @@ -55,6 +55,8 @@ def recursive_files(directory):
"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",
"Topic :: Education",
"Topic :: Software Development",
"Topic :: Software Development :: Debuggers",
Expand Down
5 changes: 1 addition & 4 deletions thonny/plugins/cpython_frontend/cp_front.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def _get_interpreters():
# registry
result.update(_get_interpreters_from_windows_registry())

for minor in [7, 8, 9, 10, 11]:
for minor in [8, 9, 10, 11, 12]:
for dir_ in [
"C:\\Python3%d" % minor,
"C:\\Python3%d-32" % minor,
Expand Down Expand Up @@ -471,9 +471,6 @@ def _get_interpreters_from_windows_registry():
result = set()
for key in [winreg.HKEY_LOCAL_MACHINE, winreg.HKEY_CURRENT_USER]:
for version in [
"3.6",
"3.6-32",
"3.6-64",
"3.8",
"3.8-32",
"3.8-64",
Expand Down

0 comments on commit bd9327b

Please sign in to comment.