Skip to content

Commit bf122b9

Browse files
committed
chore: update release config in pyproject
1 parent 9ffead8 commit bf122b9

1 file changed

Lines changed: 45 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ plugin_widgets_update = "bec_testing_plugin.bec_widgets.auto_updates"
5252
[project.entry-points."bec.widgets.user_widgets"]
5353
plugin_widgets = "bec_testing_plugin.bec_widgets.widgets"
5454

55-
[tool.hatch.build.targets.wheel]
56-
include = ["*"]
57-
5855
[tool.isort]
5956
profile = "black"
6057
line_length = 100
@@ -76,3 +73,48 @@ good-names-rgxs = [
7673
".*_2D.*",
7774
".*_1D.*",
7875
]
76+
77+
[tool.hatch.build.targets.wheel]
78+
include = ["*"]
79+
exclude = ["docs/**", "tests/**"]
80+
81+
[tool.hatch.build.targets.sdist]
82+
include = ["*"]
83+
exclude = ["docs/**", "tests/**"]
84+
85+
[tool.semantic_release]
86+
build_command = "pip install build wheel && python -m build"
87+
version_toml = ["pyproject.toml:project.version"]
88+
89+
[tool.semantic_release.commit_author]
90+
env = "GIT_COMMIT_AUTHOR"
91+
default = "semantic-release <semantic-release>"
92+
93+
[tool.semantic_release.commit_parser_options]
94+
allowed_tags = [
95+
"build",
96+
"chore",
97+
"ci",
98+
"docs",
99+
"feat",
100+
"fix",
101+
"perf",
102+
"style",
103+
"refactor",
104+
"test",
105+
]
106+
minor_tags = ["feat"]
107+
patch_tags = ["fix", "perf"]
108+
default_bump_level = 0
109+
110+
[tool.semantic_release.remote]
111+
name = "origin"
112+
type = "github"
113+
ignore_token_for_push = true
114+
115+
[tool.semantic_release.remote.token]
116+
env = "GH_TOKEN"
117+
118+
[tool.semantic_release.publish]
119+
dist_glob_patterns = ["dist/*"]
120+
upload_to_vcs_release = true

0 commit comments

Comments
 (0)