Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/build_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ on:
env:
CANCEL_OTHERS: false
PATHS_IGNORE: '["**/README.md", "**/docs/**"]'
# mpich >=5 is built as ch4:ucx,ofi, so UCX is the default netmod. Azure-hosted
# GitHub runners expose a MANA RDMA device that UCX tries (and fails) to open,
# so MPI_Init() aborts inside ESMF_RegridWeightGen. Restrict UCX to transports
# that actually work on the runners.
UCX_TLS: "tcp,self,sm"

jobs:
build:
Expand All @@ -25,9 +30,6 @@ jobs:
strategy:
matrix:
include:
- python-version: "3.10"
pixi-environment: py310
variant-file: ci/python3.10.yaml
- python-version: "3.11"
pixi-environment: py311
variant-file: ci/python3.11.yaml
Expand Down Expand Up @@ -83,9 +85,6 @@ jobs:
strategy:
matrix:
include:
- python-version: "3.10"
pixi-environment: py310
variant-file: ci/python3.10.yaml
- python-version: "3.11"
pixi-environment: py311
variant-file: ci/python3.11.yaml
Expand Down
8 changes: 0 additions & 8 deletions ci/python3.10.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions ci/recipe/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ schema_version: 1
context:
name: MPAS-Analysis
version: "1.15.0"
python_min: "3.10"
python_min: "3.11"

package:
name: ${{ name|lower }}
Expand Down Expand Up @@ -39,7 +39,7 @@ requirements:
- lxml
- mache >=1.11.0
- matplotlib-base >=3.9.0
- mpas_tools >=1.3.0,<2.0.0
- mpas_tools >=2.0.0,<3.0.0
- nco >=4.8.1,!=5.2.6,!=5.3.7
- netcdf4
- numpy >=2.0,<3.0
Expand Down
7 changes: 3 additions & 4 deletions dev-spec.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# $ conda create --name <env> --file <this file>

# Base
python >=3.10
python >=3.11
cartopy >=0.18.0
cartopy_offlinedata
cmocean
Expand All @@ -15,7 +15,7 @@ gsw
lxml
mache >=1.11.0
matplotlib-base >=3.9.0
mpas_tools >=1.3.0,<2.0.0
mpas_tools >=2.0.0,<3.0.0
nco >=4.8.1,!=5.2.6,!=5.3.7
netcdf4
numpy >=2.0,<3.0
Expand All @@ -38,8 +38,7 @@ setuptools >=60

# Documentation
mock
m2r2 >=0.3.3
mistune <2
sphinx
sphinx-mdinclude >=0.6.2
sphinx_rtd_theme
tabulate
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# serve to show the default.

import os
import m2r2
from sphinx_mdinclude import convert
from glob import glob
import mpas_analysis.version
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
Expand Down Expand Up @@ -209,7 +209,8 @@
for mdFileName in glob('design_docs/*.md'):
if os.path.basename(mdFileName) == 'template.md':
continue
output = m2r2.parse_from_file(mdFileName)
with open(mdFileName, 'r') as inFile:
output = convert(inFile.read())
rstFileName = os.path.splitext(mdFileName)[0]+'.rst'
with open(rstFileName, 'w') as outFile:
outFile.write(output)
Expand Down
2 changes: 1 addition & 1 deletion mpas_analysis/docs/parse_quick_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
in the documentation
"""

from m2r2 import convert
from sphinx_mdinclude import convert


def build_quick_start():
Expand Down
11 changes: 3 additions & 8 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name = "mpas-analysis"
platforms = ["linux-64"]

[dependencies]
python = ">=3.10"
python = ">=3.11"
cartopy = ">=0.18.0"
cartopy_offlinedata = "*"
cmocean = "*"
Expand All @@ -16,7 +16,7 @@ gsw = "*"
lxml = "*"
mache = ">=1.11.0"
matplotlib-base = ">=3.9.0"
mpas_tools = ">=1.3.0,<2.0.0"
mpas_tools = ">=2.0.0,<3.0.0"
nco = ">=4.8.1,!=5.2.6,!=5.3.7"
netcdf4 = "*"
numpy = ">=2.0,<3.0"
Expand All @@ -41,19 +41,15 @@ pytest = "*"
setuptools = ">=60"

[feature.docs.dependencies]
m2r2 = ">=0.3.3"
mistune = "<2"
mock = "*"
sphinx = "*"
sphinx-mdinclude = ">=0.6.2"
sphinx_rtd_theme = "*"
tabulate = "*"

[feature.build.dependencies]
rattler-build = "*"

[feature.py310.dependencies]
python = "3.10.*"

[feature.py311.dependencies]
python = "3.11.*"

Expand All @@ -68,7 +64,6 @@ python = "3.14.*"

[environments]
default = ["dev", "docs", "build"]
py310 = ["py310", "dev", "docs", "build"]
py311 = ["py311", "dev", "docs", "build"]
py312 = ["py312", "dev", "docs", "build"]
py313 = ["py313", "dev", "docs", "build"]
Expand Down
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ description = """\
"""
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.10"
requires-python = ">=3.11"
classifiers = [
# these are only for searching/browsing projects on PyPI
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
Expand Down Expand Up @@ -69,9 +68,8 @@ dependencies = [
docs = [
# building documentation
"mock",
"m2r2>=0.3.3",
"mistune<2",
"sphinx",
"sphinx-mdinclude>=0.6.2",
"sphinx_rtd_theme",
"tabulate",
]
Expand Down
5 changes: 3 additions & 2 deletions suite/run_suite.bash
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ conda build ci/recipe
for py in "${main_py}" "${alt_py}"; do
env="test_mpas_analysis_py${py}"
conda create -y -n "${env}" --use-local python="${py}" mpas-analysis \
sphinx mock sphinx_rtd_theme "tabulate>=0.8.2" "m2r2>=0.3.3" \
"mistune<2" pytest "mache>=1.11.0" "esmf=*=mpi_mpich_*" jinja2
sphinx mock sphinx_rtd_theme "tabulate>=0.8.2" \
"sphinx-mdinclude>=0.6.2" pytest "mache>=1.11.0" \
"esmf=*=mpi_mpich_*" jinja2
conda activate "${env}"
pytest
conda deactivate
Expand Down