Skip to content

Commit

Permalink
General clean-up after rename.
Browse files Browse the repository at this point in the history
- Removing "graft google" from MANIFEST for umbrella
  package. It isn't needed since the umbrella package
  has no source
- Updating license year on copy-pasted namespace package
  __init__.py files. Done via:
  https://gist.github.com/dhermes/a0e88f891ffffc3ecea5c9bb2f13e4f5
- Removing unused HTML context from docs/conf.py
- Setting GH_OWNER AND GH_PROJECT_NAME (which together make the
  REPO_SLUG) manually in the docs update scripts. This way the
  env. variables don't need to be set in the Travis UI / CLI.
  Also updating tox.ini to stop passing those variables
  through
- Removing the root package from `verify_included_modules.py`
  since it no longer has any source
- Updated a docstring reference to a moved class in the
  Bigtable system test
- Removing redundant `GOOGLE_CLOUD_*` in `tox` system test
  `passenv` (already covered by `GOOGLE_*`)
  • Loading branch information
dhermes committed Sep 29, 2016
1 parent 938ac21 commit d21d21f
Show file tree
Hide file tree
Showing 22 changed files with 24 additions and 34 deletions.
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
include README.rst
graft google
global-exclude *.pyc
2 changes: 1 addition & 1 deletion bigquery/google/cloud/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2014 Google Inc.
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion bigtable/google/cloud/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2014 Google Inc.
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion core/google/cloud/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2014 Google Inc.
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion datastore/google/cloud/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2014 Google Inc.
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion dns/google/cloud/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2014 Google Inc.
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
11 changes: 0 additions & 11 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,17 +281,6 @@
# and parameter definitions from the __init__ docstring.
autoclass_content = 'both'

issue_uri = ('https://github.com/GoogleCloudPlatform/google-cloud-python/issues/'
'new?' + urllib.urlencode({'title': '[Documentation Issue] '}))
issue_uri_template = (
issue_uri + '&' + urllib.urlencode({'body': 'Page Name: '}) + '{0}' +
urllib.quote('\nRelease: ') + '{1}')

html_context.update(
issue_uri=issue_uri,
issue_uri_template=issue_uri_template,
)

# Configuration for intersphinx:
# Refer to the Python standard library and the oauth2client and
# httplib2 libraries.
Expand Down
2 changes: 1 addition & 1 deletion error_reporting/google/cloud/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2014 Google Inc.
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion language/google/cloud/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2014 Google Inc.
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion logging/google/cloud/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2014 Google Inc.
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion monitoring/google/cloud/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2014 Google Inc.
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pubsub/google/cloud/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2014 Google Inc.
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion resource_manager/google/cloud/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2014 Google Inc.
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
3 changes: 3 additions & 0 deletions scripts/update_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

set -ev

GH_OWNER="GoogleCloudPlatform"
GH_PROJECT_NAME="google-cloud-python"

#########################################
# Only update docs if we are on Travis. #
#########################################
Expand Down
2 changes: 2 additions & 0 deletions scripts/update_json_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

set -ev

GH_OWNER="GoogleCloudPlatform"
GH_PROJECT_NAME="google-cloud-python"

function buildDocs () {
echo "Building JSON documentation..."
Expand Down
1 change: 0 additions & 1 deletion scripts/verify_included_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
'google.cloud.vision.fixtures',
])
PACKAGES = (
'',
'bigquery',
'bigtable',
'core',
Expand Down
2 changes: 1 addition & 1 deletion speech/google/cloud/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2014 Google Inc.
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion storage/google/cloud/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2014 Google Inc.
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions system_tests/bigtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ class Config(object):
def _wait_until_complete(operation, max_attempts=5):
"""Wait until an operation has completed.
:type operation: :class:`google.cloud.bigtable.instance.Operation`
:param operation: Operation that has not complete.
:type operation: :class:`google.cloud.operation.Operation`
:param operation: Operation that has not completed.
:type max_attempts: int
:param max_attempts: (Optional) The maximum number of times to check if
the operation has complete. Defaults to 5.
the operation has completed. Defaults to 5.
:rtype: bool
:returns: Boolean indicating if the operation is complete.
Expand Down
4 changes: 1 addition & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ passenv =
TRAVIS_TAG
TRAVIS_BRANCH
TRAVIS_PULL_REQUEST
GH_OWNER
GH_OAUTH_TOKEN
GH_PROJECT_NAME

[testenv:docs]
basepython =
Expand Down Expand Up @@ -220,7 +218,7 @@ basepython =
python2.7
commands =
python {toxinidir}/system_tests/attempt_system_tests.py {posargs}
passenv = GOOGLE_* GOOGLE_CLOUD_* TRAVIS* encrypted_*
passenv = GOOGLE_* TRAVIS* encrypted_*

[testenv:system-tests3]
basepython =
Expand Down
2 changes: 1 addition & 1 deletion translate/google/cloud/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2014 Google Inc.
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion vision/google/cloud/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2014 Google Inc.
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down

0 comments on commit d21d21f

Please sign in to comment.