Skip to content

Commit c5260ba

Browse files
committed
fix(ci): update version in uv.lock on semantic-release
+ added build_command that updating version in uv.lock on semantic-release execution + added package = false for uv
1 parent b6138c3 commit c5260ba

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,19 @@ dev = [
3131
"websockets>=15.0.1",
3232
]
3333

34+
[project.optional-dependencies]
35+
build = ["uv ~= 0.9.10"]
36+
37+
[tool.uv]
38+
package = false
39+
3440
[tool.semantic_release]
3541
version_toml = ["pyproject.toml:project.version"]
42+
build_command = """
43+
python -m pip install -e '.[build]'
44+
uv lock --upgrade-package "$PACKAGE_NAME"
45+
git add uv.lock
46+
"""
3647
commit_parser = "conventional"
3748
commit_message = "chore(release): {version}\n\nAutomatically generated by python-semantic-release"
3849
major_on_zero = true

0 commit comments

Comments
 (0)