Skip to content

Commit

Permalink
python: remove support for python3.6 and add support for python3.10+
Browse files Browse the repository at this point in the history
  • Loading branch information
mishaschwartz committed Sep 6, 2022
1 parent d68aa0d commit 8997995
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/autotest_server/testers/jupyter/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def create_environment(settings_, env_dir, _default_env_dir):
def settings():
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), "settings_schema.json")) as f:
settings_ = json.load(f)
py_versions = [f"3.{x}" for x in range(6, 10) if shutil.which(f"python3.{x}")]
py_versions = [f"3.{x}" for x in range(7, 20) if shutil.which(f"python3.{x}")]
python_versions = settings_["properties"]["env_data"]["properties"]["python_version"]
python_versions["enum"] = py_versions
python_versions["default"] = py_versions[-1]
Expand Down
2 changes: 1 addition & 1 deletion server/autotest_server/testers/py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def create_environment(settings_, env_dir, _default_env_dir):
def settings():
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), "settings_schema.json")) as f:
settings_ = json.load(f)
py_versions = [f"3.{x}" for x in range(6, 10) if shutil.which(f"python3.{x}")]
py_versions = [f"3.{x}" for x in range(7, 20) if shutil.which(f"python3.{x}")]
python_versions = settings_["properties"]["env_data"]["properties"]["python_version"]
python_versions["enum"] = py_versions
python_versions["default"] = py_versions[-1]
Expand Down
2 changes: 1 addition & 1 deletion server/autotest_server/testers/pyta/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def create_environment(settings_, env_dir, _default_env_dir):
def settings():
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), "settings_schema.json")) as f:
settings_ = json.load(f)
py_versions = [f"3.{x}" for x in range(6, 10) if shutil.which(f"python3.{x}")]
py_versions = [f"3.{x}" for x in range(7, 20) if shutil.which(f"python3.{x}")]
python_versions = settings_["properties"]["env_data"]["properties"]["python_version"]
python_versions["enum"] = py_versions
python_versions["default"] = py_versions[-1]
Expand Down

0 comments on commit 8997995

Please sign in to comment.