Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Commit d64b73f

Browse files
committed
v0.0.14
1 parent 867e357 commit d64b73f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ def get_version():
1010
match = re.search(r'\[(\d+\.\d+\.\d+)\]', first_line)
1111
if match:
1212
version = match.group(1)
13-
13+
1414
# Update version in __init__.py
1515
init_path = os.path.join('simpletool', '__init__.py')
1616
with open(init_path, 'r', encoding='utf-8') as init_file:
1717
init_content = init_file.read()
18-
18+
1919
# Replace version in the header
2020
updated_init_content = re.sub(
2121
r'(version:)\s*',
2222
r'\1 ' + version,
2323
init_content
2424
)
25-
25+
2626
with open(init_path, 'w', encoding='utf-8') as init_file:
2727
init_file.write(updated_init_content)
28-
28+
2929
return version
3030
return '0.0.0' # fallback version if not found
3131

0 commit comments

Comments
 (0)