From b7ae3335b7747686a68cbb496dec53eab2dfe5ef Mon Sep 17 00:00:00 2001 From: Bjarten Date: Mon, 11 Nov 2024 08:08:33 +0100 Subject: [PATCH] fix: versioning bug --- .github/workflows/release.yml | 2 +- pyproject.toml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 628c69d..d92d584 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,4 +27,4 @@ jobs: commit: true push: true tag: true - version: true \ No newline at end of file + version: true \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index e928879..e01cf17 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "early-stopping-pytorch" -version = "1.0.2" +version = "1.0.1" description = "A PyTorch utility package for Early Stopping" readme = "README.md" authors = [ @@ -17,8 +17,8 @@ dependencies = [ ] [tool.semantic_release] -version_variable = ["early_stopping_pytorch/__init__.py:__version__"] -version_toml = ["pyproject.toml:project.version"] # Add this line +version_variable = ["early_stopping_pytorch/__init__.py:__version__ = \"{version}\""] +version_toml = ["pyproject.toml:project.version"] branch = "main" upload_to_pypi = false build_command = "pip install build && python -m build"