betterproto2-compiler 0.5.0__tar.gz → 0.5.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/PKG-INFO +2 -2
  2. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/pyproject.toml +2 -2
  3. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/known_types/any.py +1 -1
  4. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/plugin/main.py +1 -2
  5. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/LICENSE.md +0 -0
  6. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/README.md +0 -0
  7. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/__init__.py +0 -0
  8. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/casing.py +0 -0
  9. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/compile/__init__.py +0 -0
  10. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/compile/importing.py +0 -0
  11. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/compile/naming.py +0 -0
  12. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/known_types/__init__.py +0 -0
  13. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/known_types/duration.py +0 -0
  14. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/known_types/google_values.py +0 -0
  15. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/known_types/timestamp.py +0 -0
  16. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/lib/__init__.py +0 -0
  17. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/lib/google/__init__.py +0 -0
  18. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/lib/google/protobuf/__init__.py +0 -0
  19. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/lib/google/protobuf/compiler/__init__.py +0 -0
  20. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/lib/message_pool.py +0 -0
  21. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/plugin/__init__.py +0 -0
  22. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/plugin/__main__.py +0 -0
  23. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/plugin/compiler.py +0 -0
  24. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/plugin/models.py +0 -0
  25. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/plugin/module_validation.py +0 -0
  26. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/plugin/parser.py +0 -0
  27. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/plugin/plugin.bat +0 -0
  28. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/py.typed +0 -0
  29. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/settings.py +0 -0
  30. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/templates/header.py.j2 +0 -0
  31. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/templates/service_stub.py.j2 +0 -0
  32. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/templates/service_stub_async.py.j2 +0 -0
  33. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/templates/service_stub_sync.py.j2 +0 -0
  34. {betterproto2_compiler-0.5.0 → betterproto2_compiler-0.5.1}/src/betterproto2_compiler/templates/template.py.j2 +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: betterproto2_compiler
3
- Version: 0.5.0
3
+ Version: 0.5.1
4
4
  Summary: Compiler for betterproto2
5
5
  License: MIT
6
6
  Keywords: protobuf,gRPC,compiler
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3.10
13
13
  Classifier: Programming Language :: Python :: 3.11
14
14
  Classifier: Programming Language :: Python :: 3.12
15
15
  Classifier: Programming Language :: Python :: 3.13
16
- Requires-Dist: betterproto2[grpclib] (>=0.5.0,<0.6.0)
16
+ Requires-Dist: betterproto2[grpclib] (>=0.5.1,<0.6.0)
17
17
  Requires-Dist: jinja2 (>=3.0.3)
18
18
  Requires-Dist: ruff (>=0.9.3,<0.10.0)
19
19
  Requires-Dist: strenum (>=0.4.15,<0.5.0) ; python_version == "3.10"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "betterproto2_compiler"
3
- version = "0.5.0"
3
+ version = "0.5.1"
4
4
  description = "Compiler for betterproto2"
5
5
  authors = [
6
6
  { name = "Adrien Vannson", email = "adrien.vannson@protonmail.com" },
@@ -26,7 +26,7 @@ packages = [
26
26
 
27
27
  [tool.poetry.dependencies]
28
28
  python = "^3.10"
29
- betterproto2 = { version = "^0.5.0", extras = ["grpclib"] }
29
+ betterproto2 = { version = "^0.5.1", extras = ["grpclib"] }
30
30
  # betterproto2 = { git="https://github.com/betterproto/python-betterproto2" }
31
31
  # betterproto2 = { path = "../python-betterproto2", extras = ["grpclib"] }
32
32
  # The Ruff version is pinned. To update it, also update it in .pre-commit-config.yaml
@@ -37,7 +37,7 @@ class Any(VanillaAny):
37
37
  except KeyError:
38
38
  raise TypeError(f"Can't unpack unregistered type: {self.type_url}")
39
39
 
40
- return message_type().parse(self.value)
40
+ return message_type.parse(self.value)
41
41
 
42
42
  def to_dict(self, **kwargs) -> dict[str, typing.Any]:
43
43
  # TODO allow passing a message pool to `to_dict`
@@ -15,8 +15,7 @@ def main() -> None:
15
15
  data = sys.stdin.buffer.read()
16
16
 
17
17
  # Parse request
18
- request = CodeGeneratorRequest()
19
- request.parse(data)
18
+ request = CodeGeneratorRequest.parse(data)
20
19
 
21
20
  dump_file = os.getenv("BETTERPROTO_DUMP")
22
21
  if dump_file: