Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
google-assistant-sdk: bump changelog
Browse files Browse the repository at this point in the history
- google-assistant-library deprecation.
- google-assistant-grpc non-commercial usage restriction.
- s/API/Service/.
- disable flaky tests.

Bug: 136190339
Bug: 149183802
Change-Id: I0977e10ffdca9ba19a8ed4df091d002d78193657
  • Loading branch information
proppy committed Feb 10, 2020
1 parent 87e6eb0 commit ce76c50
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 20 deletions.
5 changes: 5 additions & 0 deletions google-assistant-grpc/CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

0.3.0
-----
- Update Google Assistant Service usage restriction: non-commercial use.


0.2.1
-----
- Update ``v1alpha2`` gRPC service definition:
Expand Down
2 changes: 1 addition & 1 deletion google-assistant-grpc/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

setup(
name='google-assistant-grpc',
version='0.2.1',
version='0.3.0',
author='Google Assistant SDK team',
author_email='proppy+assistant-sdk@google.com',
description='Google Assistant API gRPC bindings',
Expand Down
6 changes: 6 additions & 0 deletions google-assistant-sdk/CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

0.6.0
-----
- Deprecate Google Assistant Library.
- Update Google Assistant Service usage restriction: non-commercial use.


0.5.1
-----
- Fix Python generator termination.
Expand Down
4 changes: 2 additions & 2 deletions google-assistant-sdk/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ google-oauthlib-tool
~~~~~~~~~~~~~~~~~~~~

This tool creates test credentials to authorize devices to call the
Google Assistant API when prototyping.
Google Assistant Service when prototyping.

- Follow the steps to `configure the Actions Console project and the Google account <https://developers.google.com/assistant/sdk/guides/service/python/embed/config-dev-project-and-account>`_.
- Follow the steps to `register a new device model and download the client secrets file <https://developers.google.com/assistant/sdk/guides/service/python/embed/register-device>`_.
Expand Down Expand Up @@ -119,7 +119,7 @@ This reference sample implements a simple but functional client for the `Google

- Try a device action query like "Turn <nickname / model product name> on".

- Run in verbose mode to see the gRPC communication with the Google Assistant API::
- Run in verbose mode to see the gRPC communication with the Google Assistant Service::

googlesamples-assistant-pushtotalk --device-model-id 'my-device-model' --device-id 'my-device-identifier' -v

Expand Down
Binary file removed google-assistant-sdk/tests/data/turnon.riff
Binary file not shown.
17 changes: 0 additions & 17 deletions google-assistant-sdk/tests/test_endtoend.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,20 +210,3 @@ def test_endtoend_audiofileinput(device_model, device_instance):
print(out)
assert 'what time is it' in builtins.str(out).lower()
assert os.path.getsize(audio_out_file) > 0


def test_onoff_device_action(device_model, device_instance):
temp_dir = tempfile.mkdtemp()
audio_out_file = os.path.join(temp_dir, 'out.raw')
out = subprocess.check_output(['python', '-m',
'googlesamples.assistant.grpc.pushtotalk',
'--verbose',
'--project-id', PROJECT_ID,
'--device-model-id', device_model,
'--device-id', device_instance,
'-i', 'tests/data/turnon.riff',
'-o', audio_out_file],
stderr=subprocess.STDOUT)
print(out)
assert 'turning device on' in builtins.str(out).lower()
assert os.path.getsize(audio_out_file) > 0

0 comments on commit ce76c50

Please sign in to comment.