Skip to content

Commit e056690

Browse files
authored
Merge pull request #856 from altheaden/update-supported-python-versions
Update supported python versions
2 parents 4203ebc + 6aa959c commit e056690

12 files changed

+18
-19
lines changed

.github/workflows/build_workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
shell: bash -l {0}
5858
strategy:
5959
matrix:
60-
python-version: ["3.9", "3.10", "3.11"]
60+
python-version: ["3.9", "3.10", "3.11", "3.12"]
6161
steps:
6262
- id: skip_check
6363
uses: fkirc/skip-duplicate-actions@master

ci/generate.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22

33
from jinja2 import Template
44

5-
65
for os in ['linux', 'osx']:
76
with open(f'template_{os}.yaml') as f:
87
template_test = f.read()
98

109
template = Template(template_test)
11-
for python in ['3.8', '3.9', '3.10', '3.11']:
10+
for python in ['3.9', '3.10', '3.11', '3.12']:
1211
for mpi in ['nompi', 'mpich', 'openmpi']:
1312
script = template.render(python=python, mpi=mpi)
1413
filename = f'{os}_mpi_{mpi}_python{python}.yaml'

ci/linux_mpi_mpich_python3.8.yaml renamed to ci/linux_mpi_mpich_python3.12.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ pin_run_as_build:
2727
min_pin: x.x
2828
max_pin: x.x
2929
python:
30-
- 3.8.* *_cpython
30+
- 3.12.* *_cpython
3131
zip_keys:
3232
- - c_compiler_version
3333
- cxx_compiler_version
34-
- fortran_compiler_version
34+
- fortran_compiler_version

ci/linux_mpi_nompi_python3.8.yaml renamed to ci/linux_mpi_nompi_python3.12.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ pin_run_as_build:
2727
min_pin: x.x
2828
max_pin: x.x
2929
python:
30-
- 3.8.* *_cpython
30+
- 3.12.* *_cpython
3131
zip_keys:
3232
- - c_compiler_version
3333
- cxx_compiler_version
34-
- fortran_compiler_version
34+
- fortran_compiler_version

ci/linux_mpi_openmpi_python3.8.yaml renamed to ci/linux_mpi_openmpi_python3.12.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ pin_run_as_build:
2727
min_pin: x.x
2828
max_pin: x.x
2929
python:
30-
- 3.8.* *_cpython
30+
- 3.12.* *_cpython
3131
zip_keys:
3232
- - c_compiler_version
3333
- cxx_compiler_version
34-
- fortran_compiler_version
34+
- fortran_compiler_version

ci/osx_mpi_mpich_python3.8.yaml renamed to ci/osx_mpi_mpich_python3.12.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ pin_run_as_build:
3333
min_pin: x.x
3434
max_pin: x.x
3535
python:
36-
- 3.8.* *_cpython
36+
- 3.12.* *_cpython
3737
zip_keys:
3838
- - c_compiler_version
3939
- cxx_compiler_version
40-
- fortran_compiler_version
40+
- fortran_compiler_version

ci/osx_mpi_nompi_python3.8.yaml renamed to ci/osx_mpi_nompi_python3.12.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ pin_run_as_build:
3333
min_pin: x.x
3434
max_pin: x.x
3535
python:
36-
- 3.8.* *_cpython
36+
- 3.12.* *_cpython
3737
zip_keys:
3838
- - c_compiler_version
3939
- cxx_compiler_version
40-
- fortran_compiler_version
40+
- fortran_compiler_version

ci/osx_mpi_openmpi_python3.8.yaml renamed to ci/osx_mpi_openmpi_python3.12.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ pin_run_as_build:
3333
min_pin: x.x
3434
max_pin: x.x
3535
python:
36-
- 3.8.* *_cpython
36+
- 3.12.* *_cpython
3737
zip_keys:
3838
- - c_compiler_version
3939
- cxx_compiler_version
40-
- fortran_compiler_version
40+
- fortran_compiler_version

conda/compass_env/spec-file.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# $ conda create --name <env> --file <this file>
33

44
# Base
5-
python>=3.8
5+
python>=3.9
66
cartopy
77
cartopy_offlinedata
88
cmocean

conda/default.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ recreate = False
1414
suffix =
1515

1616
# the python version
17-
python = 3.11
17+
python = 3.12
1818

1919
# the MPI version (nompi, mpich or openmpi)
2020
mpi = nompi

docs/developers_guide/quick_start.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ Optional flags
217217
Check to make sure expected commands are present
218218

219219
``--python``
220-
Select a particular python version (the default is currently 3.8)
220+
Select a particular python version (the default is currently 3.12)
221221

222222
``--env_name``
223223
Set the name of the environment (and the prefix for the activation script)

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ def package_files(directory, prefixes, extensions):
7373
'Intended Audience :: Science/Research',
7474
'Programming Language :: Python',
7575
'Programming Language :: Python :: 3',
76-
'Programming Language :: Python :: 3.8',
7776
'Programming Language :: Python :: 3.9',
7877
'Programming Language :: Python :: 3.10',
7978
'Programming Language :: Python :: 3.11',
79+
'Programming Language :: Python :: 3.12',
8080
'Topic :: Scientific/Engineering',
8181
],
8282
packages=find_packages(include=['compass', 'compass.*']),

0 commit comments

Comments
 (0)