Skip to content

Commit

Permalink
remove obsolete references
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasht86 committed Oct 31, 2024
1 parent f860691 commit 3225def
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions vespacli/utils/update_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@

import toml
import sys
import re
from pathlib import Path
import argparse

PYPROJECT_TOML_PATH = Path(__file__).parent.parent / "pyproject.toml"
VERSION_FILE_PATH = Path(__file__).parent.parent / "vespacli" / "_version_generated.py"


def update_version(new_version: str):
Expand All @@ -19,14 +17,6 @@ def update_version(new_version: str):
with open("pyproject.toml", "w") as f:
toml.dump(data, f)

# Update version in vespacli/_version_generated.py
with open(VERSION_FILE_PATH, "r") as f:
content = f.read()
new_content = re.sub(
r'vespa_version = ".*"', f'vespa_version = "{new_version}"', content
)
with open("vespacli/_version_generated.py", "w") as f:
f.write(new_content)
print(f"Updated version to {new_version}")


Expand Down

0 comments on commit 3225def

Please sign in to comment.