Skip to content

Commit 573e935

Browse files
authored
Merge pull request #1115 from xylar/drop-python-3.9-and-clean-up
Drop python 3.9 and clean up
2 parents 540ed7c + d3e20b3 commit 573e935

8 files changed

Lines changed: 40 additions & 43 deletions

File tree

.github/workflows/build_workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
shell: bash -l {0}
2828
strategy:
2929
matrix:
30-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
30+
python-version: ["3.10", "3.11", "3.12", "3.13"]
3131
fail-fast: false
3232
steps:
3333
- id: skip_check

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,6 @@ ENV/
9999
/chrysalis_test_suite/
100100
/cori_test_suite/
101101
/compy_test_suite/
102+
103+
# vscode settings
104+
.vscode/

ci/python3.9.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

ci/recipe/meta.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{% set name = "MPAS-Analysis" %}
22
{% set version = "1.13.0" %}
3+
{% set python_min = "3.10" %}
34

45
package:
56
name: {{ name|lower }}
@@ -9,23 +10,25 @@ source:
910
path: ../..
1011

1112
build:
12-
number: 0
13-
script: {{ PYTHON }} -m pip install --no-deps --no-build-isolation -vv .
14-
noarch: python
13+
number: 0
14+
script: {{ PYTHON }} -m pip install . --no-deps --no-build-isolation -vv
15+
noarch: python
16+
entry_points:
17+
- mpas_analysis = mpas_analysis.__main__:main
18+
- download_analysis_data = mpas_analysis.download_data:download_analysis_data
1519

1620
requirements:
1721
host:
18-
- python >=3.9
22+
- python {{ python_min }}
1923
- pip
20-
- setuptools
24+
- setuptools >=60
2125
run:
22-
- python >=3.9
26+
- python >={{ python_min }},<3.13
2327
- cartopy >=0.18.0
2428
- cartopy_offlinedata
2529
- cmocean
2630
- dask
2731
- esmf >=8.4.2,<9.0.0
28-
- esmf=*=mpi_mpich_*
2932
- f90nml
3033
- geometric_features >=1.6.1
3134
- gsw
@@ -44,14 +47,14 @@ requirements:
4447
- python-dateutil
4548
- requests
4649
- scipy >=1.7.0
47-
- setuptools
4850
- shapely >=2.0,<3.0
4951
- xarray >=0.14.1
5052

5153
test:
5254
requires:
5355
- pytest
5456
- pip
57+
- python {{ python_min }}
5558
imports:
5659
- mpas_analysis
5760
- pytest
@@ -78,5 +81,7 @@ about:
7881

7982
extra:
8083
recipe-maintainers:
84+
- andrewdnolan
85+
- altheaden
8186
- xylar
82-
- jhkennedy
87+
- jhkennedy

dev-spec.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
# $ conda create --name <env> --file <this file>
33

44
# Base
5-
python>=3.9
5+
python >=3.10
66
cartopy >=0.18.0
77
cartopy_offlinedata
88
cmocean
99
dask
1010
esmf >=8.4.2,<9.0.0
1111
esmf=*=mpi_mpich_*
1212
f90nml
13-
geometric_features>=1.6.1
13+
geometric_features >=1.6.1
1414
gsw
1515
lxml
1616
mache >=1.11.0
17-
matplotlib-base>=3.9.0
17+
matplotlib-base >=3.9.0
1818
mpas_tools >=1.3.0,<2.0.0
19-
nco>=4.8.1,!=5.2.6
19+
nco >=4.8.1,!=5.2.6
2020
netcdf4
21-
numpy>=2.0,<3.0
21+
numpy >=2.0,<3.0
2222
pandas
2323
pillow >=10.0.0,<11.0.0
2424
progressbar2
@@ -27,18 +27,18 @@ pyremap >=2.0.0,<3.0.0
2727
python-dateutil
2828
requests
2929
scipy >=1.7.0
30-
setuptools
31-
shapely>=2.0,<3.0
32-
xarray>=0.14.1
30+
shapely >=2.0,<3.0
31+
xarray >=0.14.1
3332

3433
# Development
3534
pip
3635
pytest
36+
setuptools >=60
3737

3838
# Documentation
3939
mock
40-
m2r2>=0.3.3
41-
mistune<2
40+
m2r2 >=0.3.3
41+
mistune <2
4242
sphinx
4343
sphinx_rtd_theme
4444
tabulate

pyproject.toml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[project]
2-
name = "mpas_analysis"
2+
name = "mpas-analysis"
33
dynamic = ["version"]
44
authors = [
5-
{ name="Xylar Asay-Davis", email="xylar@lanl.gov" },
5+
{ name="Xylar Asay-Davis", email="xylarstorm@gmail.com" },
66
{ name="Carolyn Begeman" },
77
{ name="Phillip J. Wolfram" },
88
{ name="Milena Veneziani" },
@@ -27,10 +27,9 @@ description = """\
2727
"""
2828
license = { file = "LICENSE" }
2929
readme = "README.md"
30-
requires-python = ">=3.9"
30+
requires-python = ">=3.10"
3131
classifiers = [
3232
# these are only for searching/browsing projects on PyPI
33-
"Programming Language :: Python :: 3.9",
3433
"Programming Language :: Python :: 3.10",
3534
"Programming Language :: Python :: 3.11",
3635
"Programming Language :: Python :: 3.12",
@@ -45,7 +44,7 @@ classifiers = [
4544
]
4645

4746
dependencies = [
48-
"cartopy>=0.18.0",
47+
"cartopy >=0.18.0",
4948
"cmocean",
5049
"dask",
5150
"gsw",
@@ -59,11 +58,9 @@ dependencies = [
5958
"pyproj",
6059
"python-dateutil",
6160
"requests",
62-
"scipy>=1.7.0",
63-
"setuptools",
64-
"shapely>=2.0,<3.0",
65-
"six",
66-
"xarray>=0.14.1"
61+
"scipy >=1.7.0",
62+
"shapely >=2.0,<3.0",
63+
"xarray >=0.14.1"
6764
]
6865

6966
[project.optional-dependencies]

suite/run_dev_suite.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ cd ..
1919

2020
machine=$(python -c "from mache import discover_machine; print(discover_machine())")
2121

22-
py=3.11
22+
py=3.13
2323
./suite/setup.py -p ${py} -r main_py${py} -b ${branch} --copy_docs --clean -e ${env_name}
2424
./suite/setup.py -p ${py} -r wc_defaults -b ${branch} --no_polar_regions -e ${env_name}
2525
./suite/setup.py -p ${py} -r moc_am -b ${branch} -e ${env_name}
@@ -33,7 +33,7 @@ py=3.11
3333
# submit the jobs
3434
cd ${machine}_test_suite
3535

36-
main_py=3.11
36+
main_py=3.13
3737
cd main_py${main_py}
3838
echo main_py${main_py}
3939
RES=$(sbatch job_script.bash)

suite/run_suite.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ set -e
55
conda_base=$(dirname $(dirname $CONDA_EXE))
66
source $conda_base/etc/profile.d/conda.sh
77

8-
main_py=3.11
9-
alt_py=3.10
8+
main_py=3.13
9+
alt_py=3.12
1010

1111
export HDF5_USE_FILE_LOCKING=FALSE
1212

@@ -41,7 +41,7 @@ conda deactivate
4141
py=${main_py}
4242
conda activate test_mpas_analysis_py${py}
4343
cd docs
44-
DOCS_VERSION=test make clean versioned-html
44+
DOCS_VERSION=test make clean versioned-html
4545
cd ..
4646

4747
machine=$(python -c "from mache import discover_machine; print(discover_machine())")

0 commit comments

Comments
 (0)