Skip to content

Commit

Permalink
Some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Aug 5, 2024
1 parent 47e32a4 commit b35a6cd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions new_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 #####################################################################

Expand Down

0 comments on commit b35a6cd

Please sign in to comment.