Skip to content

Commit 90e53e9

Browse files
Switch buf dep to use pypi buf-bin
Seems like the `go run` version isn't caching build artifacts...? Signed-off-by: Stefan VanBuren <svanburen@buf.build>
1 parent aea6258 commit 90e53e9

3 files changed

Lines changed: 27 additions & 10 deletions

File tree

poe_tasks.toml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#:schema https://json.schemastore.org/partial-poe.json
22

3-
[env]
4-
BUF_VERSION = "v1.67.0"
5-
63
[tasks.bump]
74
help = "Bump the project version"
85
sequence = [
@@ -65,23 +62,23 @@ sequence = [
6562
[tasks.generate-conformance]
6663
help = "Generate conformance files"
6764
sequence = [
68-
{ cmd = "go run github.com/bufbuild/buf/cmd/buf@${BUF_VERSION} generate" },
65+
{ cmd = "buf generate" },
6966
{ shell = "find test/gen -type f -exec sed -i '' 's/from connectrpc.conformance.v1/from gen.connectrpc.conformance.v1/' {} +", env = { "LC_ALL" = "c" } },
7067
]
7168
cwd = "conformance"
7269

7370
[tasks.generate-example]
7471
help = "Generate example files"
75-
cmd = "go run github.com/bufbuild/buf/cmd/buf@${BUF_VERSION} generate"
72+
cmd = "buf generate"
7673
cwd = "example"
7774

7875
[tasks.generate-status]
7976
help = "Generate gRPC status"
80-
cmd = "go run github.com/bufbuild/buf/cmd/buf@${BUF_VERSION} generate"
77+
cmd = "buf generate"
8178

8279
[tasks.generate-test]
8380
help = "Generate test files"
84-
cmd = "go run github.com/bufbuild/buf/cmd/buf@${BUF_VERSION} generate"
81+
cmd = "buf generate"
8582
cwd = "test"
8683

8784
[tasks.lint]

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Repository = "https://github.com/connectrpc/connect-python"
4040
dev = [
4141
# Needed to enable HTTP/2 in daphne
4242
"Twisted[tls,http2]==25.5.0",
43+
"buf-bin==1.68.3",
4344
"asgiref==3.11.1",
4445
"brotli==1.2.0",
4546
"connect-python-example",

uv.lock

Lines changed: 22 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)