Skip to content

Commit

Permalink
bug in bump_version that destroyed __version__
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlib committed Dec 28, 2024
1 parent 5c2dcb2 commit 5e83775
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def update_version(version_file, new_version):
with open(version_file, 'r') as file:
content = file.read()

updated_content = re.sub(r'__version__\s*=\s*".*"', f'version = "{new_version}"', content)
updated_content = re.sub(r'__version__\s*=\s*".*"', f'__version__ = "{new_version}"', content)

with open(version_file, 'w') as file:
file.write(updated_content)
Expand Down
2 changes: 1 addition & 1 deletion pyptv/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.3.0"
__version__ = "0.3.0"
9 changes: 0 additions & 9 deletions pyptv/pyproject.toml

This file was deleted.

0 comments on commit 5e83775

Please sign in to comment.