Skip to content

Commit

Permalink
fix: add version regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjarten committed Nov 11, 2024
1 parent b394ec5 commit 7d16cdc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "early-stopping-pytorch"
version = "1.0.3"
version = "1.0.1"
description = "A PyTorch utility package for Early Stopping"
readme = "README.md"
authors = [
Expand All @@ -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 7d16cdc

Please sign in to comment.