Skip to content

Commit

Permalink
1.2.0rc2 (#44)
Browse files Browse the repository at this point in the history
* fixed compression with no acceptable encoding

* googleapis-common-protos is required

* bump version

Co-authored-by: Federico Repond <[email protected]>
  • Loading branch information
mattbennett and frepond authored Aug 11, 2021
1 parent 981a622 commit 6f51d73
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions nameko_grpc/compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def compress(data, encoding): # level?
def select_algorithm(acceptable_encodings, preferred_encoding):
if preferred_encoding and preferred_encoding in SUPPORTED_ENCODINGS:
return preferred_encoding
if not acceptable_encodings:
return "identity"
for encoding in SUPPORTED_ENCODINGS:
if encoding in acceptable_encodings:
return encoding
Expand Down
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,20 @@

setup(
name="nameko-grpc",
version="1.2.0rc1",
version="1.2.0rc2",
description="Nameko gRPC extensions",
long_description=readme,
long_description_content_type="text/markdown",
author="Matt Yule-Bennett",
url="http://github.com/nameko/nameko-grpc",
packages=find_packages(exclude=["test"]),
install_requires=["nameko>=3.0.0-rc9", "h2>=3", "grpcio", "protobuf"],
install_requires=[
"nameko>=3.0.0-rc9",
"h2>=3",
"grpcio",
"protobuf",
"googleapis-common-protos",
],
extras_require={
"dev": [
"coverage",
Expand Down

0 comments on commit 6f51d73

Please sign in to comment.