Skip to content

Commit

Permalink
Replace CIME branch with official tag, and now require python 3.8 or …
Browse files Browse the repository at this point in the history
…greater.
  • Loading branch information
nusbaume committed Oct 18, 2023
1 parent 152d0e0 commit ea026aa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
matrix:
#All of these python versions will be used to run tests:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
fail-fast: false
steps:
# Acquire github action routines:
Expand Down
5 changes: 2 additions & 3 deletions Externals.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ local_path = libraries/parallelio
required = True

[cime]
#tag = cime6.0.156
branch = paramgen_py12
tag = cime6.0.175
protocol = git
repo_url = https://github.com/nusbaume/cime
repo_url = https://github.com/ESMCI/cime
local_path = cime
required = True

Expand Down
7 changes: 3 additions & 4 deletions cime_config/cam_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,9 @@ def __init__(self, case, case_log):
and associated dictionary.
"""

# Check if using python 3.7 or later. If not,
# then end build here:
if sys.version_info[0] < 3 or (sys.version_info[0] == 3 and sys.version_info[1] < 7):
emsg = "CAM requires python 3.7 or later, currently using python version"
# Check if using python 3.8 or later. If not, then end build here:
if sys.version_info[0] < 3 or (sys.version_info[0] == 3 and sys.version_info[1] < 8):
emsg = "SIMA requires python 3.8 or later, currently using python version"
emsg += f" {sys.version_info[0]}.{sys.version_info[1]}"
raise SystemError(emsg)
#End if
Expand Down

0 comments on commit ea026aa

Please sign in to comment.