Skip to content

Commit

Permalink
fix: correct version regex in semantic release config for version upd…
Browse files Browse the repository at this point in the history
…ates (#37)
  • Loading branch information
Bjarten authored Nov 11, 2024
1 parent b394ec5 commit a3a82b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ dependencies = [
]

[tool.semantic_release]
version_variable = ["early_stopping_pytorch/__init__.py:__version__ = \"{version}\""]
version_toml = ["pyproject.toml:project.version"]
version_variable = ["early_stopping_pytorch/__init__.py:^__version__ = \"(.*)\""]
version_toml = ["pyproject.toml:project.version"] # Add this line
branch = "main"
upload_to_pypi = false
build_command = "pip install build && python -m build"
Expand Down

0 comments on commit a3a82b2

Please sign in to comment.