diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f4ca98b..95c8087 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,8 +34,9 @@ jobs: id: release uses: python-semantic-release/python-semantic-release@v8.7.2 with: + force: "patch" github_token: ${{ secrets.GITHUB_TOKEN }} - root_options: "-vv --noop" + root_options: "-v --noop" # python-semantic-release displays what it would have # committed if commit is true and noop is set commit: "true" @@ -64,8 +65,9 @@ jobs: uses: python-semantic-release/python-semantic-release@v8.7.2 if: steps.release.outputs.released == 'true' with: + force: "patch" github_token: ${{ secrets.GITHUB_TOKEN }} - root_options: "-vv" + root_options: "-v" - name: Create PR uses: peter-evans/create-pull-request@v4.0.2 diff --git a/pyproject.toml b/pyproject.toml index 26ac8e6..56c9d61 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -105,18 +105,15 @@ memprofile = [ "scipy>=1.12.0", ] -[tool.pdm.version] -source = "file" -path = "src/hyperscan/_version.py" - -[tool.setuptools.dynamic] -version = { attr = "hyperscan._version.__version__" } - [tool.semantic_release] commit_parser = "emoji" +tag_format = "v{version}" version_variables = [ "src/hyperscan/_version.py:__version__", ] +version_toml = [ + "pyproject.toml:project.version", +] [tool.semantic_release.branches.release] match = '(main|create-pull-request/patch|release/v?[\\d\\.\\-]+)' @@ -154,7 +151,7 @@ dist_glob_patterns = ["dist/*", "wheelhouse/*"] [project] name = "hyperscan" -dynamic = ["version"] +version = "0.7.0" description = "Python bindings for Hyperscan." authors = [{ name = "David Gidwani", email = "david.gidwani@gmail.com" }] requires-python = ">=3.9,<4.0"