Skip to content

Commit

Permalink
Update file paths in bump.py
Browse files Browse the repository at this point in the history
  • Loading branch information
onuratakan committed Jan 29, 2024
1 parent d078712 commit 53d542c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bump.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import re

def read_version():
with open('src/__init__.py', 'r') as file:
with open('upsonic_on_prem/__init__.py', 'r') as file:
for line in file:
match = re.search(r"__version__ = '(.*)'", line)
if match:
Expand All @@ -23,7 +23,7 @@ def increment_version(part, version):
return f'{major}.{minor}.{patch}'

def write_version(version):
with open('src/__init__.py', 'r+') as file:
with open('upsonic_on_prem/__init__.py', 'r+') as file:
content = file.read()
content = re.sub(r"__version__ = '.*'", f"__version__ = '{version}'", content)
file.seek(0)
Expand Down

0 comments on commit 53d542c

Please sign in to comment.