Skip to content

Commit

Permalink
ci(release): don't create empty folder structure in advance (#1837)
Browse files Browse the repository at this point in the history
* unneeded since we are removing the list of distribution contents from release notes
* remove mk_folder_struct.py, pixi task in pixi.toml, and steps from release.yml
  • Loading branch information
wpbonelli authored May 21, 2024
1 parent 3ee1283 commit c291c89
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 111 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -447,26 +447,6 @@ jobs:
models="${{ inputs.models }}"
pytest -v -n auto test_scripts.py --init -k "${models//,/ or }"
- name: Create folder structure
if: inputs.full == true
run: |
# Create empty folder structure for the <distname>/docs subdirectory
distname=${{ needs.build.outputs.distname }}
mkdir -p "$distname/doc"
mkdir "$distname/make"
mkdir "$distname/msvs"
mkdir "$distname/srcbmi"
cp modflow6/code.json "$distname/code.json"
cp modflow6/meson.build "$distname/meson.build"
cp -r modflow6-examples/examples "$distname"
cp -r modflow6/src "$distname"
cp -r modflow6/utils/mf5to6 "$distname/utils/mf5to6"
cp -r modflow6/utils/zonebudget "$distname/utils/zonebudget"
# create LaTeX file describing the folder structure
cd modflow6/doc/ReleaseNotes
python mk_folder_struct.py -dp "${{ github.workspace }}/$distname"
- name: Collect deprecations
working-directory: modflow6/doc/mf6io/mf6ivar
run: |
Expand Down
27 changes: 0 additions & 27 deletions distribution/build_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,33 +303,6 @@ def test_build_mf6io_tex_from_dfn(overwrite):
os.system(f"git restore {p}")


def build_tex_folder_structure(overwrite: bool = False):
path = _release_notes_path / "folder_struct.tex"

if overwrite:
path.unlink(missing_ok=True)
elif path.is_file():
print(f"Folder structure file already exists: {path}")
return

with set_dir(_release_notes_path):
out, err, ret = run_cmd(
sys.executable, "mk_folder_struct.py", "-dp", _project_root_path
)
assert not ret, out + err

assert path.is_file(), f"Failed to create {path}"


@no_parallel
def test_build_tex_folder_structure():
path = _project_root_path / "doc" / "ReleaseNotes" / "folder_struct.tex"
try:
build_tex_folder_structure()
finally:
os.system(f"git restore {path}")


def build_mf6io_tex_example(
workspace_path: PathLike, bin_path: PathLike, example_model_path: PathLike
):
Expand Down
63 changes: 0 additions & 63 deletions doc/ReleaseNotes/mk_folder_struct.py

This file was deleted.

1 change: 0 additions & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,5 @@ build-dist = { cmd = "python build_dist.py", cwd = "distribution" }
build-makefiles = { cmd = "python build_makefiles.py", cwd = "distribution" }
test-dist-scripts = { cmd = "pytest -v --durations 0", cwd = "distribution" }
update-version = { cmd = "python update_version.py", cwd = "distribution" }
mk-folder-struct = { cmd = "python mk_folder_struct.py", cwd = "doc/ReleaseNotes" }
deprecations = { cmd = "python deprecations.py", cwd = "doc/mf6io/mf6ivar" }
sphinx = { cmd = "make html", cwd = ".build_rtd_docs" }

0 comments on commit c291c89

Please sign in to comment.