diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 25963cb..71028c6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,12 +30,6 @@ jobs: - name: Checkout repo uses: actions/checkout@v5 - - name: Checkout modflow6 - uses: actions/checkout@v5 - with: - repository: MODFLOW-ORG/modflow6 - path: modflow6 - - name: Setup ${{ contains(fromJSON('["macOS"]'), runner.os) && 'gcc' || 'intel-classic' }} ${{ contains(fromJSON('["macOS"]'), runner.os) && env.GCC_V || env.INTEL_V }} uses: fortran-lang/setup-fortran@v1 with: @@ -76,20 +70,18 @@ jobs: echo "${{ github.repository }} version ${{ steps.tag.outputs.tag }}" echo "RELEASE_VERSION=${{ steps.tag.outputs.tag }}" >> $GITHUB_ENV - - name: Setup pixi - uses: prefix-dev/setup-pixi@v0.9.1 + - name: Setup Python + uses: actions/setup-python@v6 with: - pixi-version: v0.82.1 - manifest-path: modflow6/pixi.toml + python-version: "3.13" - - name: Custom pixi install - working-directory: modflow6 - run: pixi run install + - name: Install pymake and modflow-devtools + run: pip install --disable-pip-version-check git+https://github.com/modflowpy/pymake.git modflow-devtools - name: Get OS tag id: ostag run: | - ostag=$(pixi run --manifest-path modflow6/pixi.toml python -c "from modflow_devtools.ostags import get_ostag; print(get_ostag())") + ostag=$(python -c "from modflow_devtools.ostags import get_ostag; print(get_ostag())") echo "ostag=$ostag" >> $GITHUB_OUTPUT # interactive debugging @@ -100,7 +92,7 @@ jobs: run: | ostag="${{ steps.ostag.outputs.ostag }}" mkdir $ostag - pixi run --manifest-path modflow6/pixi.toml python scripts/fetch_releases.py --manifest releases.json --ostag $ostag --outdir $ostag --zip $ostag.zip + python scripts/fetch_releases.py --manifest releases.json --ostag $ostag --outdir $ostag --zip $ostag.zip - name: Build programs uses: nick-fields/retry@v3 @@ -110,15 +102,15 @@ jobs: command: | set -euo pipefail ostag="${{ steps.ostag.outputs.ostag }}" - fetched=$(pixi run --manifest-path modflow6/pixi.toml python scripts/fetch_releases.py --manifest releases.json --list) - pixi run --manifest-path modflow6/pixi.toml make-program : --appdir $ostag --exclude "$fetched" --keep --zip $ostag.zip --verbose - pixi run --manifest-path modflow6/pixi.toml make-program mf2005,mfnwt,mflgr --appdir $ostag --double --keep --zip $ostag.zip --verbose - pixi run --manifest-path modflow6/pixi.toml make-code-json --appdir $ostag --verbose + fetched=$(python scripts/fetch_releases.py --manifest releases.json --list) + make-program : --appdir $ostag --exclude "$fetched" --keep --zip $ostag.zip --verbose + make-program mf2005,mfnwt,mflgr --appdir $ostag --double --keep --zip $ostag.zip --verbose + make-code-json --appdir $ostag --verbose - name: Patch code.json and code.md with fetched program versions, add code.json to zip run: | ostag="${{ steps.ostag.outputs.ostag }}" - pixi run --manifest-path modflow6/pixi.toml python scripts/patch_code_json.py \ + python scripts/patch_code_json.py \ --manifest releases.json \ --ostag $ostag \ --zip $ostag.zip diff --git a/DEVELOPER.md b/DEVELOPER.md index e7be825..8bacac3 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -45,40 +45,12 @@ If the triggering event is `workflow_dispatch`: ## Program sources -The distribution includes programs from across the MODFLOW ecosystem. Each program's source code and/or pre-built binaries come from one of three places: a MODFLOW-ORG GitHub repository with platform binaries, a MODFLOW-ORG repository with source-only releases, or a USGS server. This table tracks the current state as of January 2026. - -### Fetched from pre-built GitHub releases - -These programs are downloaded as pre-built binaries via `releases.json`. Their repositories publish platform-specific archives (linux.zip, mac.zip, macarm.zip, win64.zip) as release assets. - -| Program(s) | Repository | Release tag | -|------------|-----------|-------------| -| mf6, zbud6, mf5to6, libmf6 | [MODFLOW-ORG/modflow6](https://github.com/MODFLOW-ORG/modflow6) | 6.7.0 | -| triangle | [MODFLOW-ORG/triangle](https://github.com/MODFLOW-ORG/triangle) | v1.6 | -| gridgen | [MODFLOW-ORG/gridgen](https://github.com/MODFLOW-ORG/gridgen) | v1.0.02 | -| zonbud | [MODFLOW-ORG/zonbud](https://github.com/MODFLOW-ORG/zonbud) | v3.01 | -| zonbudusg | [MODFLOW-ORG/zonbudusg](https://github.com/MODFLOW-ORG/zonbudusg) | v1.01 | -| mfnwt, mfnwtdbl | [MODFLOW-ORG/mfnwt](https://github.com/MODFLOW-ORG/mfnwt) | v1.3.0 | -| swtv4 | [MODFLOW-ORG/swtv4](https://github.com/MODFLOW-ORG/swtv4) | v4.00.05 | -| mp6 | [MODFLOW-ORG/modpath6](https://github.com/MODFLOW-ORG/modpath6) | v6.0.1 | -| vs2dt | [MODFLOW-ORG/vs2dt](https://github.com/MODFLOW-ORG/vs2dt) | v3.3 | -| mflgr, mflgrdbl | [MODFLOW-ORG/mflgr](https://github.com/MODFLOW-ORG/mflgr) | v2.0.0 | -| mf2000 | [MODFLOW-ORG/mf2000](https://github.com/MODFLOW-ORG/mf2000) | v1.19.01 | - -### Built from source by pymake - -These programs are compiled by pymake. - -| Program(s) | Source | -|------------|--------| -| mf2005, mf2005dbl | [MODFLOW-ORG/mf2005](https://github.com/MODFLOW-ORG/mf2005) | -| mfusg, mfusgdbl | [MODFLOW-ORG/mfusg](https://github.com/MODFLOW-ORG/mfusg) | -| mfusg_gsi | [MODFLOW-ORG/mfusgt](https://github.com/MODFLOW-ORG/mfusgt) | -| mt3dms | [MODFLOW-ORG/mt3dms](https://github.com/MODFLOW-ORG/mt3dms) | -| mt3dusgs | [MODFLOW-ORG/mt3d-usgs](https://github.com/MODFLOW-ORG/mt3d-usgs) | -| mp7 | [USGS](https://water.usgs.gov/water-resources/software/MODPATH/) | -| crt | [USGS](https://water.usgs.gov/ogw/CRT/) | -| sutra | [USGS](https://water.usgs.gov/water-resources/software/sutra/) | +The distribution includes programs from across the MODFLOW ecosystem. Each program is either fetched as a pre-built binary or compiled from source: + +- **Fetched from GitHub releases**: programs listed in [`releases.json`](releases.json) are downloaded from platform-specific archives (e.g. linux.zip, macarm.zip, win64.zip) published as release assets by their repositories. The manifest records each program's repository and release tag. +- **Built from source by pymake**: all other programs are compiled by pymake, which downloads their source from the locations in its program catalog. + +See the table in the [README](README.md) for the full list of programs and versions in the latest release. It is generated from `code.json` at release time. To move a program from "built by pymake" to "fetched from releases", its repository needs to start publishing platform-specific binary archives as GitHub release assets, then an entry can be added to `releases.json` (see [Adding a program](#adding-a-program)). @@ -99,7 +71,7 @@ During a release build, the workflow: The top-level `code.json` and `code.md` are uploaded with the build artifacts. The release job uses `code.md` for the release notes and for the program table in `README.md`. -The fetch script handles platform-specific file extensions (`.exe`, `.dll`, `.dylib`, `.so`) and supports renaming programs when the archive filename differs from the distribution name (e.g., `mfusgt` in the archive becomes `mfusg_gsi` in the distribution). +The fetch script handles platform-specific file extensions (`.exe`, `.dll`, `.dylib`, `.so`) and supports renaming programs when the archive filename differs from the distribution name. ### Adding a program diff --git a/releases.json b/releases.json index 5fbced9..95ffb42 100644 --- a/releases.json +++ b/releases.json @@ -28,7 +28,7 @@ }, { "repo": "MODFLOW-ORG/gridgen", - "tag": "v1.0.03", + "tag": "v1.1.00", "assets": { "linux": "linux.zip", "macarm": "macarm.zip", @@ -50,5 +50,53 @@ "mfusg": "mfusg", "mfusgdbl": "mfusgdbl" } + }, + { + "repo": "MODFLOW-ORG/mfusgt", + "tag": "v2.8.1", + "assets": { + "linux": "linux.zip", + "macarm": "macarm.zip", + "win64": "win64.zip" + }, + "programs": { + "mfusgt": "mfusgt" + } + }, + { + "repo": "MODFLOW-ORG/mt3d-usgs", + "tag": "v1.1.1", + "assets": { + "linux": "linux.zip", + "macarm": "macarm.zip", + "win64": "win64.zip" + }, + "programs": { + "mt3dusgs": "mt3dusgs" + } + }, + { + "repo": "MODFLOW-ORG/zonbud", + "tag": "v3.01", + "assets": { + "linux": "linux.zip", + "macarm": "macarm.zip", + "win64": "win64.zip" + }, + "programs": { + "zonbud": "zonbud" + } + }, + { + "repo": "MODFLOW-ORG/zonbudusg", + "tag": "v1.01", + "assets": { + "linux": "linux.zip", + "macarm": "macarm.zip", + "win64": "win64.zip" + }, + "programs": { + "zonbudusg": "zonbudusg" + } } ]