Skip to content

Commit 64251ac

Browse files
chore: setup semantic release settings (#6)
1 parent b759af6 commit 64251ac

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

pyproject.toml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,60 @@ exclude = [
142142
omit = [
143143
"/tmp/*",
144144
]
145+
146+
147+
148+
[tool.semantic_release]
149+
assets = []
150+
commit_message = "{version}\n\nAutomatically generated by python-semantic-release"
151+
commit_parser = "angular"
152+
logging_use_named_masks = false
153+
major_on_zero = false
154+
allow_zero_version = true
155+
tag_format = "v{version}"
156+
version_variables = ["src/dbally/__version__.py:__version__"]
157+
build_command = "pip install build && python -m build"
158+
159+
[tool.semantic_release.branches.main]
160+
match = "(main|master)"
161+
prerelease_token = "rc"
162+
prerelease = false
163+
164+
[tool.semantic_release.changelog]
165+
template_dir = "templates"
166+
changelog_file = "CHANGELOG.md"
167+
exclude_commit_patterns = []
168+
169+
[tool.semantic_release.changelog.environment]
170+
block_start_string = "{%"
171+
block_end_string = "%}"
172+
variable_start_string = "{{"
173+
variable_end_string = "}}"
174+
comment_start_string = "{#"
175+
comment_end_string = "#}"
176+
trim_blocks = false
177+
lstrip_blocks = false
178+
newline_sequence = "\n"
179+
keep_trailing_newline = false
180+
extensions = []
181+
autoescape = true
182+
183+
[tool.semantic_release.commit_author]
184+
env = "GIT_COMMIT_AUTHOR"
185+
default = "semantic-release <semantic-release>"
186+
187+
[tool.semantic_release.commit_parser_options]
188+
allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test"]
189+
minor_tags = ["feat"]
190+
patch_tags = ["fix", "perf"]
191+
default_bump_level = 0
192+
193+
[tool.semantic_release.remote]
194+
name = "origin"
195+
type = "github"
196+
ignore_token_for_push = false
197+
insecure = false
198+
199+
[tool.semantic_release.publish]
200+
dist_glob_patterns = ["dist/*"]
201+
upload_to_vcs_release = true

0 commit comments

Comments
 (0)