Skip to content

Commit c291c89

Browse files
authored
ci(release): don't create empty folder structure in advance (#1837)
* 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
1 parent 3ee1283 commit c291c89

File tree

4 files changed

+0
-111
lines changed

4 files changed

+0
-111
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -447,26 +447,6 @@ jobs:
447447
models="${{ inputs.models }}"
448448
pytest -v -n auto test_scripts.py --init -k "${models//,/ or }"
449449
450-
- name: Create folder structure
451-
if: inputs.full == true
452-
run: |
453-
# Create empty folder structure for the <distname>/docs subdirectory
454-
distname=${{ needs.build.outputs.distname }}
455-
mkdir -p "$distname/doc"
456-
mkdir "$distname/make"
457-
mkdir "$distname/msvs"
458-
mkdir "$distname/srcbmi"
459-
cp modflow6/code.json "$distname/code.json"
460-
cp modflow6/meson.build "$distname/meson.build"
461-
cp -r modflow6-examples/examples "$distname"
462-
cp -r modflow6/src "$distname"
463-
cp -r modflow6/utils/mf5to6 "$distname/utils/mf5to6"
464-
cp -r modflow6/utils/zonebudget "$distname/utils/zonebudget"
465-
466-
# create LaTeX file describing the folder structure
467-
cd modflow6/doc/ReleaseNotes
468-
python mk_folder_struct.py -dp "${{ github.workspace }}/$distname"
469-
470450
- name: Collect deprecations
471451
working-directory: modflow6/doc/mf6io/mf6ivar
472452
run: |

distribution/build_docs.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -303,33 +303,6 @@ def test_build_mf6io_tex_from_dfn(overwrite):
303303
os.system(f"git restore {p}")
304304

305305

306-
def build_tex_folder_structure(overwrite: bool = False):
307-
path = _release_notes_path / "folder_struct.tex"
308-
309-
if overwrite:
310-
path.unlink(missing_ok=True)
311-
elif path.is_file():
312-
print(f"Folder structure file already exists: {path}")
313-
return
314-
315-
with set_dir(_release_notes_path):
316-
out, err, ret = run_cmd(
317-
sys.executable, "mk_folder_struct.py", "-dp", _project_root_path
318-
)
319-
assert not ret, out + err
320-
321-
assert path.is_file(), f"Failed to create {path}"
322-
323-
324-
@no_parallel
325-
def test_build_tex_folder_structure():
326-
path = _project_root_path / "doc" / "ReleaseNotes" / "folder_struct.tex"
327-
try:
328-
build_tex_folder_structure()
329-
finally:
330-
os.system(f"git restore {path}")
331-
332-
333306
def build_mf6io_tex_example(
334307
workspace_path: PathLike, bin_path: PathLike, example_model_path: PathLike
335308
):

doc/ReleaseNotes/mk_folder_struct.py

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

pixi.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,5 @@ build-dist = { cmd = "python build_dist.py", cwd = "distribution" }
6868
build-makefiles = { cmd = "python build_makefiles.py", cwd = "distribution" }
6969
test-dist-scripts = { cmd = "pytest -v --durations 0", cwd = "distribution" }
7070
update-version = { cmd = "python update_version.py", cwd = "distribution" }
71-
mk-folder-struct = { cmd = "python mk_folder_struct.py", cwd = "doc/ReleaseNotes" }
7271
deprecations = { cmd = "python deprecations.py", cwd = "doc/mf6io/mf6ivar" }
7372
sphinx = { cmd = "make html", cwd = ".build_rtd_docs" }

0 commit comments

Comments
 (0)