Skip to content

Commit fb56744

Browse files
authored
Merge pull request #222 from modflowpy/v1.4.0
Release 1.4.0
2 parents b19d878 + bc8f184 commit fb56744

27 files changed

+212
-109
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- {os: macos-latest, FC: gcc, FC_V: 13, shell: bash}
3232
- {os: windows-latest, FC: gcc, FC_V: 13, shell: pwsh}
3333
# test latest python and intel-classic
34-
- {os: ubuntu-latest, FC: intel-classic, FC_V: 2021.7, shell: bash}
34+
- {os: ubuntu-22.04, FC: intel-classic, FC_V: 2021.7, shell: bash}
3535
- {os: macos-13, FC: intel-classic, FC_V: 2021.7, shell: bash}
3636
- {os: windows-2019, FC: intel-classic, FC_V: 2021.7, shell: pwsh}
3737
# test latest python and previous gcc
@@ -55,7 +55,7 @@ jobs:
5555
uses: ts-graphviz/setup-graphviz@v2
5656

5757
- name: Setup pixi
58-
uses: prefix-dev/[email protected].1
58+
uses: prefix-dev/[email protected].2
5959
with:
6060
pixi-version: v0.34.0
6161
manifest-path: "pixi.toml"
@@ -66,7 +66,7 @@ jobs:
6666
pixi run postinstall
6767
6868
- name: Setup ${{ matrix.FC }} ${{ matrix.FC_V }} on ${{ matrix.os }}
69-
uses: fortran-lang/setup-fortran@main
69+
uses: fortran-lang/setup-fortran@v1
7070
with:
7171
compiler: ${{ matrix.FC }}
7272
version: ${{ matrix.FC_V }}
@@ -125,7 +125,7 @@ jobs:
125125
- {os: macos-latest, FC: gcc, FC_V: 13, shell: bash}
126126
- {os: windows-latest, FC: gcc, FC_V: 13, shell: pwsh}
127127
# test latest python and intel
128-
- {os: ubuntu-latest, FC: intel-classic, FC_V: 2021.7, shell: bash}
128+
- {os: ubuntu-22.04, FC: intel-classic, FC_V: 2021.7, shell: bash}
129129
- {os: macos-13, FC: intel-classic, FC_V: 2021.7, shell: bash}
130130
- {os: windows-2019, FC: intel-classic, FC_V: 2021.7, shell: pwsh}
131131
defaults:
@@ -146,7 +146,7 @@ jobs:
146146
uses: ts-graphviz/setup-graphviz@v2
147147

148148
- name: Setup pixi
149-
uses: prefix-dev/[email protected].1
149+
uses: prefix-dev/[email protected].2
150150
with:
151151
pixi-version: v0.34.0
152152
manifest-path: "pixi.toml"
@@ -157,7 +157,7 @@ jobs:
157157
pixi run postinstall
158158
159159
- name: Setup ${{ matrix.FC }} ${{ matrix.FC_V }} on ${{ matrix.os }}
160-
uses: fortran-lang/setup-fortran@main
160+
uses: fortran-lang/setup-fortran@v1
161161
with:
162162
compiler: ${{ matrix.FC }}
163163
version: ${{ matrix.FC_V }}

.github/workflows/pymake-linting-install.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: actions/checkout@v4
2525

2626
- name: Setup pixi
27-
uses: prefix-dev/[email protected].1
27+
uses: prefix-dev/[email protected].2
2828
with:
2929
pixi-version: v0.34.0
3030
manifest-path: "pixi.toml"
@@ -35,6 +35,9 @@ jobs:
3535
- name: Check format
3636
run: pixi run check-format
3737

38+
- name: Check spelling
39+
run: pixi run check-spelling
40+
3841
pymake_setup:
3942
name: standard installation
4043
runs-on: ubuntu-latest

.github/workflows/pymake-requests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
uses: actions/checkout@v4
3232

3333
- name: Setup pixi
34-
uses: prefix-dev/[email protected].1
34+
uses: prefix-dev/[email protected].2
3535
with:
3636
pixi-version: v0.34.0
3737
manifest-path: "pixi.toml"

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
command: make-code-json
4848

4949
- name: Upload code.md
50-
uses: actions/upload-artifact@v3
50+
uses: actions/upload-artifact@v4
5151
with:
5252
name: code.md
5353
path: code.md
@@ -120,7 +120,7 @@ jobs:
120120
pip install ".[test]"
121121
122122
- name: Download artifacts
123-
uses: dawidd6/action-download-artifact@v7
123+
uses: dawidd6/action-download-artifact@v8
124124

125125
- name: Draft release
126126
env:

MANIFEST.in

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Python package for building MODFLOW-based programs from source files.
44

5-
### Version 1.3.0
5+
### Version 1.4.0
66

77
[![PyPI Version](https://img.shields.io/pypi/v/mfpymake.png)](https://pypi.python.org/pypi/mfpymake)
88
[![Anaconda Version](https://anaconda.org/conda-forge/mfpymake/badges/version.svg)](https://anaconda.org/conda-forge/mfpymake)
@@ -101,7 +101,7 @@ options:
101101
List of extra source files to exclude from the compilation. excludefiles can be either a list of files or the name of a text file that contains a list of files. (default is None)
102102
-so, --sharedobject Create shared object or dll on Windows. (default is False)
103103
-ad APPDIR, --appdir APPDIR
104-
Target path that overides path defined target path (default is None)
104+
Target path that overrides path defined target path (default is None)
105105
-v, --verbose Verbose output to terminal. (default is False)
106106
--keep Keep existing executable. (default is False)
107107
--zip ZIP Zip built executable. (default is None)

autotest/test_build.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ def test_build(function_tmpdir, target: str) -> None:
6060
pm.target = target
6161
pm.inplace = True
6262
fc = os.environ.get("FC", "gfortran")
63-
assert (
64-
pymake.build_apps(target, pm, verbose=True, clean=False) == 0
65-
), f"could not compile {target}"
63+
assert pymake.build_apps(target, pm, verbose=True, clean=False) == 0, (
64+
f"could not compile {target}"
65+
)
6666

6767

6868
@pytest.mark.base
@@ -73,9 +73,9 @@ def test_meson_build(function_tmpdir, target: str) -> None:
7373
cc = os.environ.get("CC", "gcc")
7474
pymake.linker_update_environment(cc=cc, fc=fc)
7575
with set_dir(function_tmpdir):
76-
assert (
77-
pymake.build_apps(target, verbose=True, clean=False, meson=True) == 0
78-
), f"could not compile {target}"
76+
assert pymake.build_apps(target, verbose=True, clean=False, meson=True) == 0, (
77+
f"could not compile {target}"
78+
)
7979

8080

8181
@pytest.mark.base

autotest/test_cli_cmds.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def run_cli_cmd(cmd: list) -> None:
3636
stderr = stderr.decode()
3737
print(stderr)
3838

39-
assert (
40-
process.returncode == 0
41-
), f"'{' '.join(cmd)}' failed\n\tstatus code {process.returncode}\n"
39+
assert process.returncode == 0, (
40+
f"'{' '.join(cmd)}' failed\n\tstatus code {process.returncode}\n"
41+
)
4242
return
4343

4444

autotest/test_gridgen.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ def test_compile(pm, target):
9191
],
9292
)
9393
def test_gridgen(cmd, workspace, target):
94-
assert run_gridgen(
95-
cmd, workspace / "examples" / "biscayne", target
96-
), f"could not run {cmd}"
94+
assert run_gridgen(cmd, workspace / "examples" / "biscayne", target), (
95+
f"could not run {cmd}"
96+
)

autotest/test_mf6_existing_meson.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ def test_build_with_existing_meson(pm, module_tmpdir, workspace, targets):
9090

9191
# make modflow 6 with existing meson.build file
9292
returncode = pymake.meson_build(workspace, fc, cc, appdir=pm.appdir)
93-
assert (
94-
returncode == 0
95-
), "could not build modflow 6 applications using existing meson.build file"
93+
assert returncode == 0, (
94+
"could not build modflow 6 applications using existing meson.build file"
95+
)
9696

9797
# check that all of the executables exist
9898
for executable in targets:

0 commit comments

Comments
 (0)