Skip to content

Commit

Permalink
revert changes of previous commits since not working
Browse files Browse the repository at this point in the history
  • Loading branch information
tapishr committed Sep 16, 2023
1 parent 2c47865 commit b4100a0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions scripts/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,7 @@
new_version = f"{version_parts[0]}.{version_parts[1]}.{new_patch}"

# Update the Cargo.toml file with the new version number
in_package_section = False
for line in fileinput.input("devprofiler/Cargo.toml", inplace=True):
if line.strip() == "[package]":
in_package_section = True
elif line.strip().startswith("["):
in_package_section = False

if in_package_section:
line = re.sub(r'^version\s*=\s*".*?"', f'version = "{new_version}"', line.rstrip())
line = re.sub(r'^version\s*=\s*".*?"', f'version = "{new_version}"', line.rstrip())
print(line)

0 comments on commit b4100a0

Please sign in to comment.