Skip to content

Commit 0a25866

Browse files
GA and Beta Promotions (#3245)
* Make clients explicitly unpickleable. Closes #3211. * Make clients explicitly unpickleable. Closes #3211. * Add GA designator, add 1.0 version numbers. * Version changes. Eep. * Oops, Speech is still alpha. * 0.24.0, not 0.24.1 * Remove double __getstate__ goof. * Version changes. Eep. * Oops, Speech is still alpha. * Remove double __getstate__ goof. * Adding 3.6 classifier where missing and fixing bad versions. Done via "git grep '0\.24'" and "git grep '0\.23'". * Fix Noxfiles forlocal packages. * Fixing copy-pasta issue in error reporting nox config. Also fixing bad indent in same file. * Depend on stable logging in error reporting package. * Fixing lint errors in error_reporting. These were masked because error_reporting's lint nox session was linting the datastore codebase. This also means that the error reporting package has gained __all__. * Fixing a syntax error in nox config for logging. Also fixing an indent error while I was in there. * Revert "Add docs for 'result_index' usage and a system test." This reverts commit b5742aa. * Fixing docs nox session for umbrella package. Two issues: - error_reporting came BEFORE logging (which means it would try to pull in a logging dep from PyPI that doesn't exist) - dns was NOT in the list of local packages * Updating upper bound on logging in error_reporting. * Un-revert typo fix.
1 parent e8fcd57 commit 0a25866

File tree

5 files changed

+22
-16
lines changed

5 files changed

+22
-16
lines changed

packages/google-cloud-error-reporting/google/cloud/error_reporting/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@
2121
from google.cloud.error_reporting.client import Client
2222
from google.cloud.error_reporting.client import HTTPContext
2323
from google.cloud.error_reporting.util import build_flask_context
24+
25+
__all__ = ['__version__', 'Client', 'HTTPContext', 'build_flask_context']

packages/google-cloud-error-reporting/google/cloud/error_reporting/_logging.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ class _ErrorReportingLoggingAPI(object):
3333
:type credentials: :class:`oauth2client.client.OAuth2Credentials` or
3434
:class:`NoneType`
3535
:param credentials: The OAuth2 Credentials to use for the connection
36-
owned by this client. If not passed (and if no ``_http``
37-
object is passed), falls back to the default inferred
38-
from the environment.
36+
owned by this client. If not passed (and if no
37+
``_http`` object is passed), falls back to the default
38+
inferred from the environment.
3939
4040
:type _http: :class:`httplib2.Http` or class that defines ``request()``.
4141
:param _http: An optional HTTP object to make requests. If not passed, an

packages/google-cloud-error-reporting/google/cloud/error_reporting/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ class Client(ClientWithProject):
8686
:type credentials: :class:`oauth2client.client.OAuth2Credentials` or
8787
:class:`NoneType`
8888
:param credentials: The OAuth2 Credentials to use for the connection
89-
owned by this client. If not passed (and if no ``_http``
90-
object is passed), falls back to the default inferred
91-
from the environment.
89+
owned by this client. If not passed (and if no
90+
``_http`` object is passed), falls back to the default
91+
inferred from the environment.
9292
9393
:type _http: :class:`httplib2.Http` or class that defines ``request()``.
9494
:param _http: An optional HTTP object to make requests. If not passed, an

packages/google-cloud-error-reporting/nox.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
import nox
2020

2121

22+
LOCAL_DEPS = ('../core/', '../logging/')
23+
24+
2225
@nox.session
2326
@nox.parametrize('python_version', ['2.7', '3.4', '3.5', '3.6'])
2427
def unit_tests(session, python_version):
@@ -28,14 +31,14 @@ def unit_tests(session, python_version):
2831
session.interpreter = 'python{}'.format(python_version)
2932

3033
# Install all test dependencies, then install this package in-place.
31-
session.install('mock', 'pytest', 'pytest-cov', '../core/', '../logging/')
34+
session.install('mock', 'pytest', 'pytest-cov', *LOCAL_DEPS)
3235
session.install('-e', '.')
3336

3437
# Run py.test against the unit tests.
35-
session.run('py.test', '--quiet',
36-
'--cov=google.cloud.datastore', '--cov=tests.unit', '--cov-append',
37-
'--cov-config=.coveragerc', '--cov-report=', '--cov-fail-under=97',
38-
'tests/unit',
38+
session.run(
39+
'py.test', '--quiet', '--cov=google.cloud.error_reporting',
40+
'--cov=tests.unit', '--cov-append', '--cov-config=.coveragerc',
41+
'--cov-report=', '--cov-fail-under=97', 'tests/unit',
3942
)
4043

4144

@@ -47,9 +50,9 @@ def lint(session):
4750
serious code quality issues.
4851
"""
4952
session.interpreter = 'python3.6'
50-
session.install('flake8')
53+
session.install('flake8', *LOCAL_DEPS)
5154
session.install('.')
52-
session.run('flake8', 'google/cloud/datastore')
55+
session.run('flake8', 'google/cloud/error_reporting')
5356

5457

5558
@nox.session

packages/google-cloud-error-reporting/setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,21 @@
4444
'Programming Language :: Python :: 3',
4545
'Programming Language :: Python :: 3.4',
4646
'Programming Language :: Python :: 3.5',
47+
'Programming Language :: Python :: 3.6',
4748
'Topic :: Internet',
4849
],
4950
}
5051

5152

5253
REQUIREMENTS = [
53-
'google-cloud-core >= 0.23.1, < 0.24dev',
54-
'google-cloud-logging >= 0.23.0, < 0.24dev',
54+
'google-cloud-core >= 0.24.0, < 0.25dev',
55+
'google-cloud-logging >= 1.0.0, < 2.0dev',
5556
'gapic-google-cloud-error-reporting-v1beta1 >= 0.15.0, < 0.16dev'
5657
]
5758

5859
setup(
5960
name='google-cloud-error-reporting',
60-
version='0.23.2',
61+
version='0.24.0',
6162
description='Python Client for Stackdriver Error Reporting',
6263
long_description=README,
6364
namespace_packages=[

0 commit comments

Comments
 (0)