Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b7f004e

Browse files
authored
Merge pull request #2438 from dhermes/move-final-subpackage
Move speech code into a subpackage **AND** remove all remnants of umbrella packages
2 parents 77899d4 + 07c1047 commit b7f004e

File tree

20 files changed

+172
-43
lines changed

20 files changed

+172
-43
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ install:
55
- pip install --upgrade pip tox
66

77
script:
8-
- tox -e py27
98
- (cd core && tox -e py27)
109
- (cd bigtable && tox -e py27)
1110
- (cd storage && tox -e py27)
@@ -20,7 +19,7 @@ script:
2019
- (cd monitoring && tox -e py27)
2120
- (cd vision && tox -e py27)
2221
- (cd translate && tox -e py27)
23-
- tox -e py34
22+
- (cd speech && tox -e py27)
2423
- (cd core && tox -e py34)
2524
- (cd bigtable && tox -e py34)
2625
- (cd storage && tox -e py34)
@@ -35,6 +34,7 @@ script:
3534
- (cd monitoring && tox -e py34)
3635
- (cd vision && tox -e py34)
3736
- (cd translate && tox -e py34)
37+
- (cd speech && tox -e py34)
3838
- tox -e lint
3939
- tox -e cover
4040
- (cd core && tox -e cover)
@@ -51,6 +51,7 @@ script:
5151
- (cd monitoring && tox -e cover)
5252
- (cd vision && tox -e cover)
5353
- (cd translate && tox -e cover)
54+
- (cd speech && tox -e cover)
5455
- tox -e system-tests
5556
- tox -e system-tests3
5657
- scripts/update_docs.sh

scripts/verify_included_modules.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
'monitoring',
7171
'pubsub',
7272
'resource_manager',
73+
'speech',
7374
'storage',
7475
'translate',
7576
'vision',

setup.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@
7171
version='0.20.0dev',
7272
description='API Client library for Google Cloud',
7373
long_description=README,
74-
namespace_packages=[
75-
'google',
76-
'google.cloud',
77-
],
78-
packages=find_packages(),
7974
install_requires=REQUIREMENTS,
8075
**SETUP_BASE
8176
)

speech/.coveragerc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[run]
2+
branch = True
3+
4+
[report]
5+
fail_under = 100
6+
show_missing = True
7+
exclude_lines =
8+
# Re-enable the standard pragma
9+
pragma: NO COVER
10+
# Ignore debug-only repr
11+
def __repr__

speech/MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include README.rst
2+
graft google
3+
graft unit_tests
4+
global-exclude *.pyc

speech/README.rst

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Python Client for Google Cloud Speech
2+
=====================================
3+
4+
Python idiomatic client for `Google Cloud Speech`_
5+
6+
.. _Google Cloud Speech: https://cloud.google.com/speech/
7+
8+
- `Homepage`_
9+
- `API Documentation`_
10+
11+
.. _Homepage: https://googlecloudplatform.github.io/google-cloud-python/
12+
.. _API Documentation: http://googlecloudplatform.github.io/google-cloud-python/
13+
14+
Quick Start
15+
-----------
16+
17+
::
18+
19+
$ pip install --upgrade google-cloud-speech
20+
21+
Authentication
22+
--------------
23+
24+
With ``google-cloud-python`` we try to make authentication as painless as
25+
possible. Check out the `Authentication section`_ in our documentation to
26+
learn more. You may also find the `authentication document`_ shared by all
27+
the ``google-cloud-*`` libraries to be helpful.
28+
29+
.. _Authentication section: http://google-cloud-python.readthedocs.io/en/latest/google-cloud-auth.html
30+
.. _authentication document: https://github.com/GoogleCloudPlatform/gcloud-common/tree/master/authentication
31+
32+
Using the API
33+
-------------
34+
35+
`Cloud Speech API`_ enables easy integration of Google speech
36+
recognition technologies into developer applications. Send audio
37+
and receive a text transcription from the Cloud Speech API service.
38+
39+
.. _Cloud Speech API: https://cloud.google.com/speech/
40+
41+
See the ``google-cloud-python`` API `speech documentation`_ to learn how to
42+
connect to the Google Cloud Speech API using this Client Library.
43+
44+
.. _speech documentation: https://googlecloudplatform.github.io/google-cloud-python/stable/speech-usage.html

0 commit comments

Comments
 (0)