Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
92334bf
llc regional grid binary writing
IvanaEscobar Aug 3, 2021
db9b04c
pioneer metadata
IvanaEscobar Aug 9, 2021
aaf3edd
nesba domain
IvanaEscobar Aug 11, 2021
347c8f6
nesba meta
IvanaEscobar Aug 11, 2021
dbe23b8
single mitgcm face
IvanaEscobar Aug 15, 2022
53d1764
Merge branch 'MITgcm:master' into single-llc-face
IvanaEscobar Aug 15, 2022
0db7582
Merge pull request #2 from IvanaEscobar/single-llc-face
IvanaEscobar Aug 15, 2022
33e99c1
aste1080 metadata; doesnt match aste metadata
IvanaEscobar Aug 15, 2022
57b5681
reduced nesb domain
IvanaEscobar Feb 7, 2023
8cd2da2
update nesb meta
IvanaEscobar Feb 10, 2023
b978dd3
check for single element length vars
IvanaEscobar Feb 28, 2023
f3fb97a
rm custom domain metas
IvanaEscobar Jan 19, 2024
e1b1065
remove old python versions, start fixing CI at python3.10
IvanaEscobar Jul 28, 2025
07a1ed2
rm old ECCO tests and comment out depracated data paths
IvanaEscobar Jul 28, 2025
3fea2aa
migrate to pyproject.toml; temp integration with versioneer
IvanaEscobar Jul 28, 2025
c122dfe
update newbyteorder
IvanaEscobar Jul 28, 2025
6333bf3
update regex, fix _read_xy_chunk for llc grids
IvanaEscobar Jul 28, 2025
12a6d9b
github actions to v4
IvanaEscobar Jul 29, 2025
fed0986
miniconda to v3 GitHub Action
IvanaEscobar Jul 29, 2025
a912777
no more python 3.10
IvanaEscobar Jul 29, 2025
21825e3
update python versions to newer than 3.10
IvanaEscobar Jul 29, 2025
1435441
rm latest xarray from xarray-master Action
IvanaEscobar Jul 29, 2025
a5d59a6
remove versioneer
IvanaEscobar Jul 29, 2025
8ac1c5f
rm versioneer from support files
IvanaEscobar Jul 29, 2025
af00d18
working with 3.11
IvanaEscobar Jul 29, 2025
da25b71
update conda env package versions
IvanaEscobar Jul 30, 2025
0ce35f6
speficy zarr version
IvanaEscobar Jul 30, 2025
3660749
fix issue #343
IvanaEscobar Jul 30, 2025
3ef6e1b
.dims to .dizes; avoids FutureWarnings
IvanaEscobar Jul 30, 2025
3eab80a
make utils testing pass
IvanaEscobar Jul 30, 2025
62a7dc6
revert utils.py
IvanaEscobar Jul 30, 2025
d14bb5e
add arg names
IvanaEscobar Jul 30, 2025
02a54a5
dummy codecov commit
IvanaEscobar Jul 30, 2025
0cc0c85
codecov with token
IvanaEscobar Jul 30, 2025
bf0db34
fix codecov ignores
IvanaEscobar Jul 30, 2025
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: 0 additions & 1 deletion .gitattributes

This file was deleted.

24 changes: 13 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,20 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Cache conda
uses: actions/cache@v2
uses: actions/cache@v4
env:
# Increase this value to reset cache if ci/environment.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/environment.yml') }}
- uses: conda-incubator/setup-miniconda@v2
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
activate-environment: test_env # Defined in ci/environment*.yml
auto-update-conda: false
python-version: ${{ matrix.python-version }}
Expand All @@ -51,29 +52,30 @@ jobs:
run: |
py.test --cov=./ --cov-report=xml
- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false

xarray-master:
name: Build xarray-master
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Cache conda
uses: actions/cache@v2
uses: actions/cache@v4
env:
# Increase this value to reset cache if ci/environment-upstream-dev.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/environment-upstream-dev.yml') }}
- uses: conda-incubator/setup-miniconda@v2
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
activate-environment: test_env # Defined in ci/environment-*.yml
auto-update-conda: false
environment-file: ci/environment-xarraymaster.yml
Expand All @@ -88,10 +90,10 @@ jobs:
run: |
py.test --cov=./ --cov-report=xml
- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false
3 changes: 0 additions & 3 deletions MANIFEST.in

This file was deleted.

2 changes: 1 addition & 1 deletion ci/environment-py3.9.yml → ci/environment-py3.11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: test_env
channels:
- conda-forge
dependencies:
- python=3.9
- python=3.11
- xarray
- dask
- numpy
Expand Down
7 changes: 5 additions & 2 deletions ci/environment-py3.10.yml → ci/environment-py3.12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@ name: test_env
channels:
- conda-forge
dependencies:
- python=3.10
- python=3.12
- xarray
- dask
- numpy
- pytest
- future
- zarr
- zarr >=2.15
- cftime
- aiohttp
- pytest-cov
- codecov
- fsspec
- cachetools
- setuptools >=68
- wheel
- pip >=24
7 changes: 5 additions & 2 deletions ci/environment-py3.8.yml → ci/environment-py3.13.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@ name: test_env
channels:
- conda-forge
dependencies:
- python=3.8
- python=3.13
- xarray
- dask
- numpy
- pytest
- future
- zarr
- zarr >=2.15
- cftime
- aiohttp
- pytest-cov
- codecov
- fsspec
- cachetools
- setuptools >=68
- wheel
- pip >=24
8 changes: 5 additions & 3 deletions ci/environment-xarraymaster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,21 @@ name: test_env
channels:
- conda-forge
dependencies:
- python=3.9
- python=3.12
- dask
- numpy
- pytest
- future
- zarr
- zarr >=2.15
- cftime
- aiohttp
- pytest-cov
- codecov
- fsspec
- cachetools
- git
- pip
- setuptools >=68
- wheel
- pip >=24
- pip:
- git+https://github.com/pydata/xarray.git
33 changes: 14 additions & 19 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
codecov:
require_ci_to_pass: no
max_report_age: off

comment: false
config: codecov.yml
require_ci_to_pass: false

coverage:
precision: 2
round: down
status:
project:
default:
target: 95
informational: true
patch: off
changes: off

ignore:
- "xmitgcm/test/*"
- "xmitgcm/__init__.py"
- "xmitgcm/_version.py"
precision: 2
round: down
status:
project:
default:
target: 90%
informational: true
ignore:
- "xmitgcm/test/test_llcreader.py"
- "setup.py"
- "versioneer.py"
- "xmitgcm/llcreader/*"

comment: false
47 changes: 47 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# TODO fully switch to PEP 621: get rid of versioneer
[project]
authors = [{ name = "xmitgcm Developers", email = "[email protected]" }]
name = "xmitgcm"
requires-python = ">=3.11"
description = "Read MITgcm MDS binary files using xarray"
license = { text = "Apache-2.0" }
dependencies = [
"xarray >= 0.14.1",
"dask >= 1.0",
"cachetools"
]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dynamic = ['version']

#[project.optional-dependencies]
#...

[project.urls]
Homepage = "https://github.com/MITgcm/xmitgcm"
Documentation = "https://xmitgcm.readthedocs.io/"

[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=42", "setuptools-scm", "wheel"]

[tool.setuptools]
packages = ["xmitgcm"]

[tool.pytest.ini_options]
minversion= "6.0"
testpaths = [
"xmitgcm/test",
]
markers = [
"slow: slow tests"
]
10 changes: 0 additions & 10 deletions setup.cfg

This file was deleted.

55 changes: 5 additions & 50 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,51 +1,6 @@
#!/usr/bin/env python
import os
import re
import sys
import warnings
import versioneer
#!/usr/bin/env python
from setuptools import setup

from setuptools import setup, find_packages

DISTNAME = 'xmitgcm'
LICENSE = 'Apache'
AUTHOR = 'Ryan Abernathey'
AUTHOR_EMAIL = '[email protected]'
URL = 'https://github.com/MITgcm/xmitgcm'
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Scientific/Engineering',
]

INSTALL_REQUIRES = ['xarray >= 0.14.1', 'dask >= 1.0', 'cachetools']
SETUP_REQUIRES = ['pytest-runner']
TESTS_REQUIRE = ['pytest >= 4.0', 'coverage']

DESCRIPTION = "Read MITgcm mds binary files into xarray"
def readme():
with open('README.rst') as f:
return f.read()

setup(name=DISTNAME,
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
license=LICENSE,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
classifiers=CLASSIFIERS,
description=DESCRIPTION,
long_description=readme(),
install_requires=INSTALL_REQUIRES,
setup_requires=SETUP_REQUIRES,
tests_require=TESTS_REQUIRE,
url=URL,
packages=find_packages(),
python_requires='>=3.7')
setup(
use_scm_version={"fallback_version": "9999"},
)
Loading
Loading