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
1 change: 1 addition & 0 deletions conda_package/LICENSE
3 changes: 0 additions & 3 deletions conda_package/MANIFEST.in

This file was deleted.

1 change: 1 addition & 0 deletions conda_package/README.md
12 changes: 7 additions & 5 deletions conda_package/ci/linux_64_python3.11.____cpython.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
DOCKER_PLATFORM:
- linux/amd64
c_stdlib:
- sysroot
c_stdlib_version:
Expand All @@ -9,17 +11,17 @@ channel_targets:
cxx_compiler:
- gxx
cxx_compiler_version:
- '14'
- '15'
docker_image:
- quay.io/condaforge/linux-anvil-x86_64:alma9
- quay.io/condaforge/linux-anvil-x86_64:alma10
fortran_compiler:
- gfortran
fortran_compiler_version:
- '14'
- '15'
hdf5:
- 1.14.6
- '2'
libnetcdf:
- 4.10.0
- 4.10.1
netcdf_fortran:
- '4.6'
pin_run_as_build:
Expand Down
12 changes: 7 additions & 5 deletions conda_package/ci/linux_64_python3.12.____cpython.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
DOCKER_PLATFORM:
- linux/amd64
c_stdlib:
- sysroot
c_stdlib_version:
Expand All @@ -9,17 +11,17 @@ channel_targets:
cxx_compiler:
- gxx
cxx_compiler_version:
- '14'
- '15'
docker_image:
- quay.io/condaforge/linux-anvil-x86_64:alma9
- quay.io/condaforge/linux-anvil-x86_64:alma10
fortran_compiler:
- gfortran
fortran_compiler_version:
- '14'
- '15'
hdf5:
- 1.14.6
- '2'
libnetcdf:
- 4.10.0
- 4.10.1
netcdf_fortran:
- '4.6'
pin_run_as_build:
Expand Down
12 changes: 7 additions & 5 deletions conda_package/ci/linux_64_python3.13.____cpython.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
DOCKER_PLATFORM:
- linux/amd64
c_stdlib:
- sysroot
c_stdlib_version:
Expand All @@ -9,17 +11,17 @@ channel_targets:
cxx_compiler:
- gxx
cxx_compiler_version:
- '14'
- '15'
docker_image:
- quay.io/condaforge/linux-anvil-x86_64:alma9
- quay.io/condaforge/linux-anvil-x86_64:alma10
fortran_compiler:
- gfortran
fortran_compiler_version:
- '14'
- '15'
hdf5:
- 1.14.6
- '2'
libnetcdf:
- 4.10.0
- 4.10.1
netcdf_fortran:
- '4.6'
pin_run_as_build:
Expand Down
12 changes: 7 additions & 5 deletions conda_package/ci/linux_64_python3.14.____cpython.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
DOCKER_PLATFORM:
- linux/amd64
c_stdlib:
- sysroot
c_stdlib_version:
Expand All @@ -9,17 +11,17 @@ channel_targets:
cxx_compiler:
- gxx
cxx_compiler_version:
- '14'
- '15'
docker_image:
- quay.io/condaforge/linux-anvil-x86_64:alma9
- quay.io/condaforge/linux-anvil-x86_64:alma10
fortran_compiler:
- gfortran
fortran_compiler_version:
- '14'
- '15'
hdf5:
- 1.14.6
- '2'
libnetcdf:
- 4.10.0
- 4.10.1
netcdf_fortran:
- '4.6'
pin_run_as_build:
Expand Down
12 changes: 5 additions & 7 deletions conda_package/ci/osx_64_python3.11.____cpython.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
MACOSX_DEPLOYMENT_TARGET:
- '11.0'
MACOSX_SDK_VERSION:
- '11.0'
c_stdlib:
Expand All @@ -13,17 +11,17 @@ channel_targets:
cxx_compiler:
- clangxx
cxx_compiler_version:
- '19'
- '21'
fortran_compiler:
- gfortran
fortran_compiler_version:
- '14'
- '15'
hdf5:
- 1.14.6
- '2'
libnetcdf:
- 4.10.0
- 4.10.1
llvm_openmp:
- '19'
- '21'
macos_machine:
- x86_64-apple-darwin13.4.0
netcdf_fortran:
Expand Down
12 changes: 5 additions & 7 deletions conda_package/ci/osx_64_python3.12.____cpython.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
MACOSX_DEPLOYMENT_TARGET:
- '11.0'
MACOSX_SDK_VERSION:
- '11.0'
c_stdlib:
Expand All @@ -13,17 +11,17 @@ channel_targets:
cxx_compiler:
- clangxx
cxx_compiler_version:
- '19'
- '21'
fortran_compiler:
- gfortran
fortran_compiler_version:
- '14'
- '15'
hdf5:
- 1.14.6
- '2'
libnetcdf:
- 4.10.0
- 4.10.1
llvm_openmp:
- '19'
- '21'
macos_machine:
- x86_64-apple-darwin13.4.0
netcdf_fortran:
Expand Down
12 changes: 5 additions & 7 deletions conda_package/ci/osx_64_python3.13.____cpython.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
MACOSX_DEPLOYMENT_TARGET:
- '11.0'
MACOSX_SDK_VERSION:
- '11.0'
c_stdlib:
Expand All @@ -13,17 +11,17 @@ channel_targets:
cxx_compiler:
- clangxx
cxx_compiler_version:
- '19'
- '21'
fortran_compiler:
- gfortran
fortran_compiler_version:
- '14'
- '15'
hdf5:
- 1.14.6
- '2'
libnetcdf:
- 4.10.0
- 4.10.1
llvm_openmp:
- '19'
- '21'
macos_machine:
- x86_64-apple-darwin13.4.0
netcdf_fortran:
Expand Down
12 changes: 5 additions & 7 deletions conda_package/ci/osx_64_python3.14.____cpython.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
MACOSX_DEPLOYMENT_TARGET:
- '11.0'
MACOSX_SDK_VERSION:
- '11.0'
c_stdlib:
Expand All @@ -13,17 +11,17 @@ channel_targets:
cxx_compiler:
- clangxx
cxx_compiler_version:
- '19'
- '21'
fortran_compiler:
- gfortran
fortran_compiler_version:
- '14'
- '15'
hdf5:
- 1.14.6
- '2'
libnetcdf:
- 4.10.0
- 4.10.1
llvm_openmp:
- '19'
- '21'
macos_machine:
- x86_64-apple-darwin13.4.0
netcdf_fortran:
Expand Down
2 changes: 1 addition & 1 deletion conda_package/dev-spec.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pre-commit
pytest
pyyaml
ruff
setuptools
setuptools >=77

# Documentation
sphinx
Expand Down
2 changes: 1 addition & 1 deletion conda_package/pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pre-commit = "*"
pytest = "*"
pyyaml = "*"
ruff = "*"
setuptools = "*"
setuptools = ">=77"
rattler-build = "*"
sphinx = "*"
mock = "*"
Expand Down
20 changes: 14 additions & 6 deletions conda_package/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ authors = [
{ name="Riley Brady" },
]
description = """\
A set of tools for creating and manipulating meshes for the climate
components based on the Model for Prediction Across Scales (MPAS) framework
A set of tools for creating and manipulating meshes for the climate \
components based on the Model for Prediction Across Scales (MPAS) \
framework\
"""
license = { file = "LICENSE" }
license = "BSD-3-Clause"
license-files = ["LICENSE"]
readme = "README.md"
requires-python = ">=3.11"
classifiers = [
Expand All @@ -45,7 +47,6 @@ classifiers = [
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
Expand Down Expand Up @@ -121,11 +122,18 @@ max-complexity = 18
convention = "numpy"

[build-system]
requires = ["setuptools>=60"]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
exclude = ["ci*", "docs*", "recipe*"]
# an allow-list so that only mpas_tools ends up in site-packages (not tests,
# docs or stray directories picked up as namespace packages)
include = ["mpas_tools", "mpas_tools.*"]

[tool.setuptools.package-data]
# tests/test_packaging.py checks that these patterns match every non-Python
# file under mpas_tools that git tracks
mpas_tools = ["**/*.bib", "**/*.cmake", "**/*.xml", "**/*.yaml"]

[tool.setuptools.dynamic]
version = { attr = "mpas_tools.__init__.__version__" }
Expand Down
8 changes: 4 additions & 4 deletions conda_package/recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ${PYTHON} -m pip install . --no-deps --no-build-isolation -vv
cd ${SRC_DIR}/ocean/smooth_topo
mkdir build
cd build
cmake \
cmake ${CMAKE_ARGS} \
-D CMAKE_INSTALL_PREFIX=${PREFIX} \
-D CMAKE_BUILD_TYPE=Release \
..
Expand All @@ -21,7 +21,7 @@ cmake --install .
cd ${SRC_DIR}/mesh_tools/seaice_grid_tools
mkdir build
cd build
cmake \
cmake ${CMAKE_ARGS} \
-D CMAKE_INSTALL_PREFIX=${PREFIX} \
-D CMAKE_BUILD_TYPE=Release \
..
Expand All @@ -32,7 +32,7 @@ cmake --install .
cd ${SRC_DIR}/mesh_tools/mesh_conversion_tools
mkdir build
cd build
cmake \
cmake ${CMAKE_ARGS} \
-D CMAKE_INSTALL_PREFIX=${PREFIX} \
-D CMAKE_BUILD_TYPE=Release \
..
Expand All @@ -43,7 +43,7 @@ cp MpasMaskCreator.x ${PREFIX}/bin
cd ${SRC_DIR}/mesh_tools/mesh_conversion_tools_netcdf_c
mkdir build
cd build
cmake \
cmake ${CMAKE_ARGS} \
-D CMAKE_INSTALL_PREFIX=${PREFIX} \
-D CMAKE_BUILD_TYPE=Release \
..
Expand Down
3 changes: 1 addition & 2 deletions conda_package/recipe/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ requirements:
- libnetcdf * nompi_*
- netcdf-fortran
- netcdf-fortran * nompi_*
- setuptools
- setuptools >=77
- pip
- netcdf4
- if: osx
then: llvm-openmp
run:
Expand Down
1 change: 1 addition & 0 deletions conda_package/tests/test_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

# conda-forge package names that differ from their PyPI equivalents
CONDA_TO_PYPI = {
'dask-core': 'dask',
'matplotlib-base': 'matplotlib',
'python-igraph': 'igraph',
}
Expand Down
Loading
Loading