From 2ec2e37dea5fc6adf50b09ba4c240d057a9a321b Mon Sep 17 00:00:00 2001 From: Adrien Vannson Date: Thu, 25 Sep 2025 22:05:02 +0200 Subject: [PATCH] Bump to 0.9.0 --- betterproto2/pyproject.toml | 2 +- betterproto2/uv.lock | 2 +- betterproto2_compiler/pyproject.toml | 2 +- .../src/betterproto2_compiler/lib/__init__.py | 2 +- .../betterproto2_compiler/lib/google/protobuf/__init__.py | 8 +++++--- .../lib/google/protobuf/compiler/__init__.py | 2 +- betterproto2_compiler/uv.lock | 4 ++-- 7 files changed, 12 insertions(+), 10 deletions(-) diff --git a/betterproto2/pyproject.toml b/betterproto2/pyproject.toml index f322a3a..e585263 100644 --- a/betterproto2/pyproject.toml +++ b/betterproto2/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "betterproto2" -version = "0.8.0" +version = "0.9.0" description = "A better Protobuf / gRPC generator & library" authors = [ {name = "Adrien Vannson", email = "adrien.vannson@protonmail.com"}, diff --git a/betterproto2/uv.lock b/betterproto2/uv.lock index 3e500f8..39c0ab5 100644 --- a/betterproto2/uv.lock +++ b/betterproto2/uv.lock @@ -57,7 +57,7 @@ wheels = [ [[package]] name = "betterproto2" -version = "0.8.0" +version = "0.9.0" source = { editable = "." } dependencies = [ { name = "python-dateutil" }, diff --git a/betterproto2_compiler/pyproject.toml b/betterproto2_compiler/pyproject.toml index 2acfec9..4ee0af5 100644 --- a/betterproto2_compiler/pyproject.toml +++ b/betterproto2_compiler/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "betterproto2_compiler" -version = "0.8.0" +version = "0.9.0" description = "Compiler for betterproto2" authors = [ { name = "Adrien Vannson", email = "adrien.vannson@protonmail.com" }, diff --git a/betterproto2_compiler/src/betterproto2_compiler/lib/__init__.py b/betterproto2_compiler/src/betterproto2_compiler/lib/__init__.py index 2e644a1..4b74c7a 100644 --- a/betterproto2_compiler/src/betterproto2_compiler/lib/__init__.py +++ b/betterproto2_compiler/src/betterproto2_compiler/lib/__init__.py @@ -8,5 +8,5 @@ import betterproto2 -_COMPILER_VERSION = "0.8.0" +_COMPILER_VERSION = "0.9.0" betterproto2.check_compiler_version(_COMPILER_VERSION) diff --git a/betterproto2_compiler/src/betterproto2_compiler/lib/google/protobuf/__init__.py b/betterproto2_compiler/src/betterproto2_compiler/lib/google/protobuf/__init__.py index f0ec337..bb21770 100644 --- a/betterproto2_compiler/src/betterproto2_compiler/lib/google/protobuf/__init__.py +++ b/betterproto2_compiler/src/betterproto2_compiler/lib/google/protobuf/__init__.py @@ -97,7 +97,7 @@ from ...message_pool import default_message_pool -_COMPILER_VERSION = "0.8.0" +_COMPILER_VERSION = "0.9.0" betterproto2.check_compiler_version(_COMPILER_VERSION) @@ -2965,13 +2965,15 @@ class MethodDescriptorProto(betterproto2.Message): @dataclass(eq=False, repr=False) class MethodOptions(betterproto2.Message): - deprecated: "bool" = betterproto2.field(33, betterproto2.TYPE_BOOL) """ Note: Field numbers 1 through 32 are reserved for Google's internal RPC framework. We apologize for hoarding these numbers to ourselves, but we were already using them long before we decided to release Protocol Buffers. + """ + deprecated: "bool" = betterproto2.field(33, betterproto2.TYPE_BOOL) + """ Is this method deprecated? Depending on the target platform, this can emit Deprecated annotations for the method, or it will be completely ignored; in the very least, @@ -3445,7 +3447,7 @@ def from_dict(cls, value, *, ignore_unknown_fields: bool = False): for key, val in value.items(): fields[key] = Value.from_dict(val) - return cls(fields=fields) + return cls(fields=fields) # type: ignore[reportArgumentType] def to_dict( self, diff --git a/betterproto2_compiler/src/betterproto2_compiler/lib/google/protobuf/compiler/__init__.py b/betterproto2_compiler/src/betterproto2_compiler/lib/google/protobuf/compiler/__init__.py index 47320b4..e48e0bf 100644 --- a/betterproto2_compiler/src/betterproto2_compiler/lib/google/protobuf/compiler/__init__.py +++ b/betterproto2_compiler/src/betterproto2_compiler/lib/google/protobuf/compiler/__init__.py @@ -17,7 +17,7 @@ from ....message_pool import default_message_pool -_COMPILER_VERSION = "0.8.0" +_COMPILER_VERSION = "0.9.0" betterproto2.check_compiler_version(_COMPILER_VERSION) diff --git a/betterproto2_compiler/uv.lock b/betterproto2_compiler/uv.lock index 133be21..67a7722 100644 --- a/betterproto2_compiler/uv.lock +++ b/betterproto2_compiler/uv.lock @@ -26,7 +26,7 @@ wheels = [ [[package]] name = "betterproto2" -version = "0.8.0" +version = "0.9.0" source = { directory = "../betterproto2" } dependencies = [ { name = "python-dateutil" }, @@ -69,7 +69,7 @@ test = [ [[package]] name = "betterproto2-compiler" -version = "0.8.0" +version = "0.9.0" source = { editable = "." } dependencies = [ { name = "betterproto2" },