Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchin committed Jan 9, 2024
1 parent 87ecce1 commit 0ff9de2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/create-tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
# 3. a github workflow will pick up the new tag and create a new release

lines = []
with open(f"{this_file_path}/../src/gplates-ws-proxy/__init__.py", "r") as f:
with open(f"{this_file_path}/../src/gplates_ws_proxy/__init__.py", "r") as f:
for line in f:
if line.startswith("__version__"):
lines.append(f'__version__ = "{new_version}"\n')
else:
lines.append(line)

with open(f"{this_file_path}/../src/gplates-ws-proxy/__init__.py", "w") as of:
with open(f"{this_file_path}/../src/gplates_ws_proxy/__init__.py", "w") as of:
of.writelines(lines)

subprocess.call(["git", "add", f"{this_file_path}/../src/gplates-ws-proxy/__init__.py"])
subprocess.call(["git", "add", f"{this_file_path}/../src/gplates_ws_proxy/__init__.py"])
subprocess.call(["git", "commit", "-m", f"update version to {new_version}"])
subprocess.call(["git", "push"])

Expand Down

0 comments on commit 0ff9de2

Please sign in to comment.