Skip to content

Commit

Permalink
feat: Update python-semantic-release version to 9.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Oct 28, 2024
1 parent e8f4bed commit 4669038
Show file tree
Hide file tree
Showing 3 changed files with 545 additions and 572 deletions.
76 changes: 61 additions & 15 deletions .copier-template/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ python = ">=3.9,<3.13"
optional = true
[tool.poetry.group.dev.dependencies]
python-semantic-release = "^7.33.1"
python-semantic-release = "^9.12.0"
{% if poe_task_files -%}
[tool.poe]
Expand All @@ -26,19 +26,65 @@ name = "cz_conventional_commits"
tag_format = "v$version"
[tool.semantic_release]
branch = "main"
version_toml = "pyproject.toml:tool.poetry.version"
{% if use_semantic_versioning_for_image -%}
version_pattern = '.docker/docker.version:`{{ docker_image_version_variable_name }}`="{version}"'
{%- endif %}
version_source = "tag"
commit_version_number = true # required for version_source = "tag"
commit_subject = "chore(release): :rocket: {version} [skip ci]"
prerelease_tag = "rc"
# General settings
tag_format = "v{version}"
commit_parser = "angular"
major_on_zero = true
allow_zero_version = true
tag_commit = true
changelog_file = "CHANGELOG.md"
upload_to_repository = false
upload_to_release = false
hvcs = "github" # hosting version control system, gitlab is also supported
build_command = "mkdir -p dist && echo 'No build command configured' > dist/release.txt"
no_git_verify = false
version_source = "tag"
commit_version_number = true
commit_message = "{version}\n\nAutomatically generated by python-semantic-release"
# Version variables
version_toml = ["pyproject.toml:tool.poetry.version"]
{% if use_semantic_versioning_for_image -%}
version_variables = [".docker/docker.version:`{{ docker_image_version_variable_name }}`"]
{%- endif %}
# Remote settings
[tool.semantic_release.remote]
name = "origin"
type = "github"
ignore_token_for_push = false
insecure = false
# Changelog settings
[tool.semantic_release.changelog]
insertion_flag = "<!--next-version-placeholder-->"
mode = "update"

# Commit parser options
[tool.semantic_release.commit_parser_options]
allowed_tags = [
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"style",
"refactor",
"test",
]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
default_bump_level = 0

# Branch settings
[tool.semantic_release.branches.main]
match = "(main|master|release)"
prerelease_token = "rc"
prerelease = false

# Commit author settings
[tool.semantic_release.commit_author]
env = "GIT_COMMIT_AUTHOR"
default = "semantic-release <semantic-release>"

# Publish settings
[tool.semantic_release.publish]
dist_glob_patterns = ["dist/*"]
upload_to_vcs_release = false
Loading

0 comments on commit 4669038

Please sign in to comment.