Skip to content

Commit

Permalink
Cleaning up remaining renames of gcloud->google-cloud.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhermes committed Sep 6, 2016
1 parent faab61c commit 5910b22
Show file tree
Hide file tree
Showing 46 changed files with 85 additions and 81 deletions.
8 changes: 4 additions & 4 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,13 @@ Running System Tests
$ gcloud beta emulators datastore env-init
export DATASTORE_LOCAL_HOST=localhost:8417
export DATASTORE_HOST=http://localhost:8417
export DATASTORE_DATASET=gcloud-settings-app-id
export DATASTORE_PROJECT_ID=gcloud-settings-app-id
export DATASTORE_DATASET=google-cloud-settings-app-id
export DATASTORE_PROJECT_ID=google-cloud-settings-app-id

using these environment variables run the emulator::

$ DATASTORE_HOST=http://localhost:8471 \
> DATASTORE_DATASET=gcloud-settings-app-id \
> DATASTORE_DATASET=google-cloud-settings-app-id \
> GOOGLE_CLOUD_NO_PRINT=true \
> python system_tests/run_system_test.py \
> --package=datastore --ignore-requirements
Expand Down Expand Up @@ -326,7 +326,7 @@ instead of
``https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/CONTRIBUTING.rst``)
may cause problems creating links or rendering the description.

.. _description on PyPI: https://pypi.python.org/pypi/gcloud
.. _description on PyPI: https://pypi.python.org/pypi/google-cloud

Travis Configuration and Build Optimizations
--------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
include README.rst
graft gcloud
graft google
global-exclude *.pyc
2 changes: 1 addition & 1 deletion Makefile.bigtable_v2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GRPCIO_VIRTUALENV=$(shell pwd)/grpc_python_venv
GENERATED_DIR=$(shell pwd)/generated_python
GENERATED_SUBDIR=_generated
BIGTABLE_DIR=$(shell pwd)/gcloud/bigtable/$(GENERATED_SUBDIR)
BIGTABLE_DIR=$(shell pwd)/google/cloud/bigtable/$(GENERATED_SUBDIR)
PROTOC_CMD=$(GRPCIO_VIRTUALENV)/bin/python -m grpc.tools.protoc
GOOGLEAPIS_PROTOS_DIR=$(shell pwd)/googleapis-pb

Expand Down
2 changes: 1 addition & 1 deletion Makefile.datastore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GRPCIO_VIRTUALENV=$(shell pwd)/grpc_python_venv
GENERATED_DIR=$(shell pwd)/generated_python
DATASTORE_DIR=$(shell pwd)/gcloud/datastore/_generated
DATASTORE_DIR=$(shell pwd)/google/cloud/datastore/_generated
PROTOC_CMD=$(GRPCIO_VIRTUALENV)/bin/python -m grpc.tools.protoc
GOOGLEAPIS_PROTOS_DIR=$(shell pwd)/googleapis-pb

Expand Down
16 changes: 8 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Google Cloud Python Client
- `API Documentation`_

.. _Homepage: https://googlecloudplatform.github.io/google-cloud-python/
.. _API Documentation: http://googlecloudplatform.github.io/google-cloud-python/#/docs/master/gcloud
.. _API Documentation: http://googlecloudplatform.github.io/google-cloud-python/#/docs/master/google-cloud

This client supports the following Google Cloud Platform services:

Expand Down Expand Up @@ -41,7 +41,7 @@ Quick Start

::

$ pip install --upgrade gcloud
$ pip install --upgrade google-cloud

Example Applications
--------------------
Expand All @@ -58,8 +58,8 @@ Authentication

With ``google-cloud-python`` we try to make authentication as painless as possible.
Check out the `Authentication section`_ in our documentation to learn more.
You may also find the `authentication document`_ shared by all the ``gcloud-*``
libraries to be helpful.
You may also find the `authentication document`_ shared by all the
``google-cloud-*`` libraries to be helpful.

.. _Authentication section: http://google-cloud-python.readthedocs.org/en/latest/gcloud-auth.html
.. _authentication document: https://github.com/GoogleCloudPlatform/gcloud-common/tree/master/authentication
Expand Down Expand Up @@ -328,7 +328,7 @@ Apache 2.0 - See `LICENSE`_ for more information.
:target: https://travis-ci.org/GoogleCloudPlatform/google-cloud-python
.. |coverage| image:: https://coveralls.io/repos/GoogleCloudPlatform/google-cloud-python/badge.png?branch=master
:target: https://coveralls.io/r/GoogleCloudPlatform/google-cloud-python?branch=master
.. |pypi| image:: https://img.shields.io/pypi/v/gcloud.svg
:target: https://pypi.python.org/pypi/gcloud
.. |versions| image:: https://img.shields.io/pypi/pyversions/gcloud.svg
:target: https://pypi.python.org/pypi/gcloud
.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud.svg
:target: https://pypi.python.org/pypi/google-cloud
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud.svg
:target: https://pypi.python.org/pypi/google-cloud
8 changes: 4 additions & 4 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,17 @@ qthelp:
@echo
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/gclouddatastore.qhcp"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/google-cloud.qhcp"
@echo "To view the help file:"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/gclouddatastore.qhc"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/google-cloud.qhc"

devhelp:
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
@echo
@echo "Build finished."
@echo "To view the help file:"
@echo "# mkdir -p $$HOME/.local/share/devhelp/gclouddatastore"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/gclouddatastore"
@echo "# mkdir -p $$HOME/.local/share/devhelp/google-cloud"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/google-cloud"
@echo "# devhelp"

epub:
Expand Down
4 changes: 3 additions & 1 deletion docs/gcloud-auth.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ Overview
$ gcloud auth login
Previously, `gcloud auth login` was used for both use cases. If your gcloud installation does not support the new command, please update it:
Previously, ``gcloud auth login`` was used for both use cases. If
your ``gcloud`` installation does not support the new command,
please update it:

.. code-block:: bash
Expand Down
8 changes: 4 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. toctree::
:maxdepth: 0
:hidden:
:caption: gcloud
:caption: google-cloud

gcloud-api
gcloud-config
Expand Down Expand Up @@ -170,16 +170,16 @@
GitHub <https://github.com/GoogleCloudPlatform/google-cloud-python/>
Issues <https://github.com/GoogleCloudPlatform/google-cloud-python/issues>
Stack Overflow <http://stackoverflow.com/questions/tagged/google-cloud-python>
PyPI <https://pypi.python.org/pypi/gcloud>
PyPI <https://pypi.python.org/pypi/google-cloud>

Getting started
---------------

The ``gcloud`` library is ``pip`` install-able:
The ``google-cloud`` library is ``pip`` install-able:

.. code-block:: console
$ pip install gcloud
$ pip install google-cloud
If you want to install ``google-cloud-python`` from source,
you can clone the repository from GitHub:
Expand Down
12 changes: 6 additions & 6 deletions docs/json/json/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h1>google-cloud-python</h1>
</div>

<div class="quote-box--supplementary">
<pre class="skip-highlight"><code class="subtle--blue">$</code> pip install <code class="subtle--blue">--upgrade</code> <strong>gcloud</strong></pre>
<pre class="skip-highlight"><code class="subtle--blue">$</code> pip install <code class="subtle--blue">--upgrade</code> <strong>google-cloud</strong></pre>
<h4 class="latest-release subtle" ng-if="home.latestRelease">
Latest Release <a ng-href="{{home.latestRelease.link}}" class="latest-release--link white">{{home.latestRelease.name}}</a>
{{home.latestRelease.date|date}}
Expand All @@ -22,7 +22,7 @@ <h4 class="latest-release subtle" ng-if="home.latestRelease">
<div class="container">
<ul class="featuring-links">
<li>
<a href="#/docs/{{home.latestRelease.name}}/gcloud" title="google-cloud-python docs" class="btn btn-docs">
<a href="#/docs/{{home.latestRelease.name}}/google-cloud" title="google-cloud-python docs" class="btn btn-docs">
<img src="src/images/icon-lang-python-gray.svg" alt="Python icon" />
Read the Docs
</a>
Expand All @@ -46,7 +46,7 @@ <h4 class="latest-release subtle" ng-if="home.latestRelease">
</a>
</li>
<li>
<a href="https://pypi.python.org/pypi/gcloud" title="google-cloud-python on pypi" class="ext-link">
<a href="https://pypi.python.org/pypi/google-cloud" title="google-cloud-python on pypi" class="ext-link">
<img src="src/images/icon-link-package-manager.svg" alt="pypi icon" />
PyPI
</a>
Expand Down Expand Up @@ -105,11 +105,11 @@ <h3 class="block-title">Examples</h3>
<h3 class="block-title">FAQ</h3>

<h4>What is the relationship between the <code>google-cloud-python</code> package
and the <code>gcloud</code> command-line tool?</h4>
<p>Both the <code>gcloud</code> command-line tool and
and the <code>google-cloud</code> command-line tool?</h4>
<p>Both the <code>google-cloud</code> command-line tool and
<code>google-cloud-python</code> package are a part of the Google Cloud SDK: a collection
of tools and libraries that enable you to easily create and manage
resources on the Google Cloud Platform. The <code>gcloud</code> command-line
resources on the Google Cloud Platform. The <code>google-cloud</code> command-line
tool can be used to manage both your development workflow and your
Google Cloud Platform resources while the <code>google-cloud-python</code> package is the
Google Cloud Client Library for Python.</p>
Expand Down
6 changes: 3 additions & 3 deletions docs/json/json/master/index.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"description": "<div class=\"section\"><h2><code>google-cloud-python</code></h2><p>GCloud API access in idiomatic Python.</p></div>",
"description": "<div class=\"section\"><h2><code>google-cloud-python</code></h2><p>Google Cloud API access in idiomatic Python.</p></div>",
"examples": [
"import google.cloud"
],
"id": "gcloud.__init__",
"id": "google.cloud.__init__",
"methods": [],
"name": "__Init__",
"source": "/gcloud/__init__.py"
"source": "/google/cloud/__init__.py"
}
4 changes: 2 additions & 2 deletions docs/json/json/master/overview.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<h2>Getting started</h2>

<p>
The <code>gcloud</code> library is <code>pip</code> install-able:
The <code>google-cloud</code> library is <code>pip</code> install-able:
</p>

<div hljs>
$ pip install gcloud
$ pip install google-cloud
</div>

<p>
Expand Down
2 changes: 1 addition & 1 deletion docs/json/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"markdown": "python",
"package": {
"href": "https://pypi.python.org/pypi/gcloud",
"href": "https://pypi.python.org/pypi/google-cloud",
"title": "PyPI"
},
"titleDelimiter": ".",
Expand Down
4 changes: 2 additions & 2 deletions docs/logging-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ Logging client.
>>> import logging
>>> import google.cloud.logging # Don't conflict with standard logging
>>> from google.cloud.logging.handlers import CloudLoggingHandler
>>> client = gcloud.logging.Client()
>>> client = google.cloud.logging.Client()
>>> handler = CloudLoggingHandler(client)
>>> cloud_logger = logging.getLogger('cloudLogger')
>>> cloud_logger.setLevel(logging.INFO) # defaults to WARN
Expand Down Expand Up @@ -429,7 +429,7 @@ this automatically:
>>> import logging
>>> import google.cloud.logging # Don't conflict with standard logging
>>> from google.cloud.logging.handlers import CloudLoggingHandler, setup_logging
>>> client = gcloud.logging.Client()
>>> client = google.cloud.logging.Client()
>>> handler = CloudLoggingHandler(client)
>>> logging.getLogger().setLevel(logging.INFO) # defaults to WARN
>>> setup_logging(handler)
Expand Down
4 changes: 2 additions & 2 deletions google/cloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""GCloud API access in idiomatic Python."""
"""Google Cloud API access in idiomatic Python."""

from pkg_resources import get_distribution

__version__ = get_distribution('gcloud').version
__version__ = get_distribution('google-cloud').version
5 changes: 3 additions & 2 deletions google/cloud/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Thread-local resource stack.

This module is not part of the public API surface of `gcloud`.
"""Shared helpers for Google Cloud packages.
This module is not part of the public API surface.
"""

import calendar
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/bigquery/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""Create / interact with gcloud bigquery connections."""
"""Create / interact with Google Cloud BigQuery connections."""

from google.cloud import connection as base_connection

Expand Down
2 changes: 1 addition & 1 deletion google/cloud/bigtable/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"""Scope for reading table data."""

DEFAULT_USER_AGENT = 'google-cloud-python/{0}'.format(
get_distribution('gcloud').version)
get_distribution('google-cloud').version)
"""The default user agent for API requests."""


Expand Down
3 changes: 2 additions & 1 deletion google/cloud/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ class Connection(object):
:param http: An optional HTTP object to make requests.
"""

USER_AGENT = "google-cloud-python/{0}".format(get_distribution('gcloud').version)
USER_AGENT = "google-cloud-python/{0}".format(
get_distribution('google-cloud').version)
"""The user agent for google-cloud-python requests."""

SCOPE = None
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/datastore/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""Connections to gcloud datastore API servers."""
"""Connections to Google Cloud Datastore API servers."""

import os

Expand Down
2 changes: 1 addition & 1 deletion google/cloud/datastore/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def __init__(self, key=None, exclude_from_indexes=()):
self._exclude_from_indexes = set(_ensure_tuple_or_list(
'exclude_from_indexes', exclude_from_indexes))
# NOTE: This will be populated when parsing a protobuf in
# gcloud.datastore.helpers.entity_from_protobuf.
# google.cloud.datastore.helpers.entity_from_protobuf.
self._meanings = {}

def __eq__(self, other):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/datastore/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""Create / interact with gcloud datastore keys."""
"""Create / interact with Google Cloud Datastore keys."""

import copy
import six
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/datastore/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""Create / interact with gcloud datastore queries."""
"""Create / interact with Google Cloud Datastore queries."""

import base64

Expand Down
2 changes: 1 addition & 1 deletion google/cloud/datastore/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""Create / interact with gcloud datastore transactions."""
"""Create / interact with Google Cloud Datastore transactions."""

from google.cloud.datastore.batch import Batch

Expand Down
2 changes: 1 addition & 1 deletion google/cloud/dns/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""Create / interact with gcloud dns connections."""
"""Create / interact with Google Cloud DNS connections."""

from google.cloud import connection as base_connection

Expand Down
2 changes: 1 addition & 1 deletion google/cloud/environment_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""Comprehensive list of environment variables used in gcloud.
"""Comprehensive list of environment variables used in google-cloud.
These enable many types of implicit behavior in both production
and tests.
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/error_reporting/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def __init__(self, project=None,
http=None,
service=None,
version=None):
self.logging_client = gcloud.logging.client.Client(
self.logging_client = google.cloud.logging.client.Client(
project, credentials, http)
self.service = service if service else self.DEFAULT_SERVICE
self.version = version
Expand Down
4 changes: 2 additions & 2 deletions google/cloud/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""Custom exceptions for :mod:`gcloud` package.
"""Custom exceptions for :mod:`google.cloud` package.
See: https://cloud.google.com/storage/docs/json_api/v1/status-codes
"""
Expand All @@ -25,7 +25,7 @@


class GoogleCloudError(Exception):
"""Base error class for gcloud errors (abstract).
"""Base error class for Google Cloud errors (abstract).
Each subclass represents a single type of HTTP error response.
"""
Expand Down
Loading

0 comments on commit 5910b22

Please sign in to comment.