Skip to content

Commit 29ad091

Browse files
committed
Configure bump-my-version
Signed-off-by: Anuraag Agrawal <[email protected]>
1 parent 8613acb commit 29ad091

File tree

3 files changed

+335
-1
lines changed

3 files changed

+335
-1
lines changed

justfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,10 @@ generate: generate-conformance generate-example generate-test format
6969

7070
# Used in CI to verify that `just generate` doesn't produce a diff
7171
checkgenerate: generate
72-
test -z "$(git status --porcelain | tee /dev/stderr)"
72+
test -z "$(git status --porcelain | tee /dev/stderr)"
73+
74+
bump *args:
75+
uv run bump-my-version bump {{args}}
76+
uv lock
77+
cd protoc-gen-connect-python && uv lock
78+
git commit -am "Bump version"

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Issues = "https://github.com/connectrpc/connect-python/issues"
3838
dev = [
3939
"asgiref==3.9.1",
4040
"brotli==1.1.0",
41+
"bump-my-version==1.2.4",
4142
"connect-python-example",
4243
"daphne==4.2.1",
4344
"httpx[http2]==0.28.1",
@@ -233,3 +234,19 @@ members = ["example", "noextras"]
233234
[tool.uv.sources]
234235
connect-python = { workspace = true }
235236
connect-python-example = { workspace = true }
237+
238+
[tool.bumpversion]
239+
current_version = "0.5.0"
240+
files = [
241+
{ filename = "pyproject.toml" },
242+
{ filename = "protoc-gen-connect-python/pyproject.toml" },
243+
]
244+
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
245+
serialize = ["{major}.{minor}.{patch}"]
246+
search = "version = \"{current_version}\""
247+
replace = "version = \"{new_version}\""
248+
regex = false
249+
tag = false
250+
allow_dirty = false
251+
ignore_missing_version = false
252+
commit = false

0 commit comments

Comments
 (0)