Skip to content

Commit

Permalink
rename release notes staging file, fix update_version.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Jun 30, 2023
1 parent 4543833 commit 9764869
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions distribution/update_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import argparse
import json
import os
import shutil
import textwrap
from collections import OrderedDict
from datetime import datetime
Expand Down Expand Up @@ -140,7 +139,7 @@ def update_version_txt_and_py(version: Version, timestamp: datetime):
+ f"created using...{os.path.basename(__file__)}\n"
)
f.write("# created on..." + f"{timestamp.strftime('%B %d, %Y %H:%M:%S')}\n")
f.write(f"__version__ = '{version}'")
f.write(f'__version__ = "{version}"\n')
log_update(py_path, version)


Expand Down Expand Up @@ -384,13 +383,10 @@ def test_update_version(version, approved, developmode):
provided, the version number will not be changed. A file lock is held
to synchronize file access. To indicate a version is production-ready
use --approve. This will change the disclaimer and version tag label,
removing 'Release Candidate' from the latter and modifying the former
to reflect approval The IDEVELOPMODE flag is set to 1 for preliminary
versions and 0 for approved versions. The version tag must follow the
removing '(preliminary)' from the latter, and modifying the former to
reflect approval The --releasemode flag controls whether IDEVELOPMODE
is set to 0 instead of the default 1. The version tag must follow the
'<major>.<minor>.<patch>' format conventions for semantic versioning.
If --version is provided, --bump-patch, --bump-minor and --bump-major
may not be provided. Likewise, if any of the latter are provided, the
version number must not be specified.
"""
),
)
Expand Down
2 changes: 1 addition & 1 deletion doc/ReleaseNotes/ReleaseNotes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ \section{Changes Introduced in this Release}
This section describes changes introduced into MODFLOW~6 for the current release. These changes may substantially affect users.

\begin{itemize}
\input{v6.dev4.tex}
\input{develop.tex}
\end{itemize}

% -------------------------------------------------
Expand Down
File renamed without changes.

0 comments on commit 9764869

Please sign in to comment.