Skip to content

Commit

Permalink
ci: 🎡 update python-semantic-release configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
darvid committed Mar 9, 2024
1 parent 8c15651 commit 7ab3e8b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ jobs:
id: release
uses: python-semantic-release/[email protected]
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"
Expand Down Expand Up @@ -64,8 +65,9 @@ jobs:
uses: python-semantic-release/[email protected]
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/[email protected]
Expand Down
13 changes: 5 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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\\.\\-]+)'
Expand Down Expand Up @@ -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 = "[email protected]" }]
requires-python = ">=3.9,<4.0"
Expand Down

0 comments on commit 7ab3e8b

Please sign in to comment.