Skip to content

Commit

Permalink
Ensure that Python 3.11 and Python 3.12 are available to Python/PyTA/…
Browse files Browse the repository at this point in the history
…Jupyter testers (#470)
  • Loading branch information
david-yz-liu authored Dec 22, 2023
1 parent 9c92f83 commit 2334b2f
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(7, 11) if shutil.which(f"python3.{x}")]
py_versions = [f"3.{x}" for x in range(7, 13) 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(7, 11) if shutil.which(f"python3.{x}")]
py_versions = [f"3.{x}" for x in range(7, 13) 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(7, 11) if shutil.which(f"python3.{x}")]
py_versions = [f"3.{x}" for x in range(7, 13) 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 2334b2f

Please sign in to comment.