From a3a82b2f11a82caa13c50c5e07086cd2e74699b1 Mon Sep 17 00:00:00 2001 From: Bjarte Mehus Sunde Date: Mon, 11 Nov 2024 08:41:48 +0100 Subject: [PATCH] fix: correct version regex in semantic release config for version updates (#37) --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 705a0fc..185ee6a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"