From 463ee91b63b3ab705d21f623b9382fb7b54b9ac0 Mon Sep 17 00:00:00 2001 From: Bjarten Date: Mon, 11 Nov 2024 08:58:30 +0100 Subject: [PATCH] fix: versioning --- .github/workflows/release.yml | 7 +------ pyproject.toml | 10 ++++------ 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d92d584..cbb18c2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,9 +9,6 @@ jobs: runs-on: ubuntu-latest permissions: contents: write - issues: write - pull-requests: write - actions: write steps: - name: Checkout code @@ -23,8 +20,6 @@ jobs: uses: python-semantic-release/python-semantic-release@v9.12.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} - tag_format: "v{version}" commit: true push: true - tag: true - version: true \ No newline at end of file + tag: true \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 7cad582..5f4a541 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,11 +17,9 @@ 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__" +tag_format = "v{version}" +version_toml = ["pyproject.toml:project.version"] branch = "main" upload_to_pypi = false -build_command = "pip install build && python -m build" - -[tool.semantic_release.git] -tag_format = "v{version}" \ No newline at end of file +build_command = "pip install build && python -m build" \ No newline at end of file