Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit a3826ca

Browse files
committed
Update the betterproto dependency
1 parent 14630e3 commit a3826ca

File tree

12 files changed

+3419
-59
lines changed

12 files changed

+3419
-59
lines changed

poetry.lock

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

pyproject.toml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ packages = [
1313

1414
[tool.poetry.dependencies]
1515
python = "^3.10"
16-
betterproto2 = "^0.1.3"
16+
# betterproto2 = "^0.1.3"
17+
betterproto2 = { git = "https://github.com/betterproto/python-betterproto2" }
1718
# The Ruff version is pinned. To update it, also update it in .pre-commit-config.yaml
1819
ruff = "~0.7.4"
1920
grpclib = "^0.4.1"
@@ -139,3 +140,17 @@ help = "Serve the documentation locally"
139140
[build-system]
140141
requires = ["poetry-core>=1.0.0,<2"]
141142
build-backend = "poetry.core.masonry.api"
143+
144+
# python -m grpc.tools.protoc \
145+
# --python_betterproto2_out=src/lib2 \
146+
# google/protobuf/any.proto \
147+
# google/protobuf/api.proto \
148+
# google/protobuf/duration.proto \
149+
# google/protobuf/empty.proto \
150+
# google/protobuf/field_mask.proto \
151+
# google/protobuf/source_context.proto \
152+
# google/protobuf/struct.proto \
153+
# google/protobuf/timestamp.proto \
154+
# google/protobuf/type.proto \
155+
# google/protobuf/wrappers.proto \
156+
# google/protobuf/compiler/plugin.proto

src/betterproto2_compiler/compile/importing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
TYPE_CHECKING,
66
)
77

8-
from betterproto2.lib.google import protobuf as google_protobuf
9-
8+
from betterproto2_compiler.lib.google import protobuf as google_protobuf
109
from betterproto2_compiler.settings import Settings
1110

1211
from ..casing import safe_snake_case

src/betterproto2_compiler/known_types/any.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import betterproto2
2-
from betterproto2.lib.std.google.protobuf import Any as VanillaAny
2+
3+
from betterproto2_compiler.lib.google.protobuf import Any as VanillaAny
34

45
# TODO put back
56
# default_message_pool = betterproto2.MessagePool() # Only for typing purpose

src/betterproto2_compiler/known_types/duration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import datetime
22

3-
from betterproto2.lib.std.google.protobuf import Duration as VanillaDuration
3+
from betterproto2_compiler.lib.google.protobuf import Duration as VanillaDuration
44

55

66
class Duration(VanillaDuration):

src/betterproto2_compiler/known_types/timestamp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import datetime
22

3-
from betterproto2.lib.std.google.protobuf import Timestamp as VanillaTimestamp
3+
from betterproto2_compiler.lib.google.protobuf import Timestamp as VanillaTimestamp
44

55

66
class Timestamp(VanillaTimestamp):

0 commit comments

Comments
 (0)