Skip to content

Commit

Permalink
try including package but not working
Browse files Browse the repository at this point in the history
  • Loading branch information
AMontagu committed Jan 27, 2025
1 parent 354495b commit e1bb393
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions django_socio_grpc/protobuf/json_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@

# Since protobuf>=26 we have to use the "always_print_fields_with_no_presence" argument
if "including_default_value_fields" in signature(MessageToDict).parameters:
print(1)
_NO_PRESENCE_ARG = "including_default_value_fields"
else:
print(2)
_NO_PRESENCE_ARG = "always_print_fields_with_no_presence"


Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ license = "Apache-2.0"
requires-python = ">=3.10"

[tool.poetry]
package-mode = false
packages = [
{ include = "django_socio_grpc" },
]

[tool.poetry.scripts]
tests = "test_utils.load_tests:launch"
Expand Down

0 comments on commit e1bb393

Please sign in to comment.