diff --git a/new_version.py b/new_version.py index 9583eb9f9d..59f2e4e49d 100755 --- a/new_version.py +++ b/new_version.py @@ -44,6 +44,9 @@ print() print(f"Your new version is: {VERSION_STR_SUFFIX}") +# Recover the old version from the Readme. +# Do not use CMakeLists.txt as it might already contain the upcoming version +# code. with open(str(REPO_DIR.joinpath("README.md")), encoding="utf-8") as f: for line in f: match = re.search(r"find_package.*openPMD *([^ ]*) *CONFIG\).*", line) @@ -64,11 +67,7 @@ # Ask for new ################################################################# -print( - """We will now run a few sed commands on your source directory. -Please answer the following questions about the version number -you want to require from AMReX:\n""" -) +print("""We will now run a few sed commands on your source directory.\n""") # Updates #####################################################################