Skip to content

Commit 57c7c0c

Browse files
chore: use template noxfile, add license headers (via synth) (#15)
1 parent b64808a commit 57c7c0c

File tree

22 files changed

+207
-231
lines changed

22 files changed

+207
-231
lines changed

packages/google-cloud-trace/.coveragerc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
117
# Generated by synthtool. DO NOT EDIT!
218
[run]
319
branch = True

packages/google-cloud-trace/.flake8

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
117
# Generated by synthtool. DO NOT EDIT!
218
[flake8]
319
ignore = E203, E266, E501, W503

packages/google-cloud-trace/.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ Thanks for stopping by to let us know something could be better!
1111
Please run down the following list and make sure you've tried the usual "quick fixes":
1212

1313
- Search the issues already opened: https://github.com/googleapis/python-trace/issues
14-
- Search the issues on our "catch-all" repository: https://github.com/googleapis/google-cloud-python
15-
- Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+python
14+
- Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python
1615

1716
If you are still having issues, please be sure to include as much information as possible:
1817

packages/google-cloud-trace/CONTRIBUTING.rst

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In order to add a feature:
2222
documentation.
2323

2424
- The feature must work fully on the following CPython versions: 2.7,
25-
3.5, 3.6, and 3.7 on both UNIX and Windows.
25+
3.5, 3.6, 3.7 and 3.8 on both UNIX and Windows.
2626

2727
- The feature must not add unnecessary dependencies (where
2828
"unnecessary" is of course subjective, but new dependencies should
@@ -214,26 +214,18 @@ We support:
214214
- `Python 3.5`_
215215
- `Python 3.6`_
216216
- `Python 3.7`_
217+
- `Python 3.8`_
217218

218219
.. _Python 3.5: https://docs.python.org/3.5/
219220
.. _Python 3.6: https://docs.python.org/3.6/
220221
.. _Python 3.7: https://docs.python.org/3.7/
222+
.. _Python 3.8: https://docs.python.org/3.8/
221223

222224

223225
Supported versions can be found in our ``noxfile.py`` `config`_.
224226

225227
.. _config: https://github.com/googleapis/python-trace/blob/master/noxfile.py
226228

227-
We explicitly decided not to support `Python 2.5`_ due to `decreased usage`_
228-
and lack of continuous integration `support`_.
229-
230-
.. _Python 2.5: https://docs.python.org/2.5/
231-
.. _decreased usage: https://caremad.io/2013/10/a-look-at-pypi-downloads/
232-
.. _support: https://blog.travis-ci.com/2013-11-18-upcoming-build-environment-updates/
233-
234-
We have `dropped 2.6`_ as a supported version as well since Python 2.6 is no
235-
longer supported by the core development team.
236-
237229
Python 2.7 support is deprecated. All code changes should maintain Python 2.7 compatibility until January 1, 2020.
238230

239231
We also explicitly decided to support Python 3 beginning with version
@@ -247,7 +239,6 @@ We also explicitly decided to support Python 3 beginning with version
247239
.. _prominent: https://docs.djangoproject.com/en/1.9/faq/install/#what-python-version-can-i-use-with-django
248240
.. _projects: http://flask.pocoo.org/docs/0.10/python3/
249241
.. _Unicode literal support: https://www.python.org/dev/peps/pep-0414/
250-
.. _dropped 2.6: https://github.com/googleapis/google-cloud-python/issues/995
251242

252243
**********
253244
Versioning

packages/google-cloud-trace/MANIFEST.in

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
117
# Generated by synthtool. DO NOT EDIT!
218
include README.rst LICENSE
319
recursive-include google *.json *.proto

packages/google-cloud-trace/docs/conf.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -293,13 +293,7 @@
293293
# One entry per manual page. List of tuples
294294
# (source start file, name, description, authors, manual section).
295295
man_pages = [
296-
(
297-
master_doc,
298-
"google-cloud-trace",
299-
u"google-cloud-trace Documentation",
300-
[author],
301-
1,
302-
)
296+
(master_doc, "google-cloud-trace", u"google-cloud-trace Documentation", [author], 1)
303297
]
304298

305299
# If true, show URL addresses after external links.
@@ -340,7 +334,7 @@
340334
intersphinx_mapping = {
341335
"python": ("http://python.readthedocs.org/en/latest/", None),
342336
"google-auth": ("https://google-auth.readthedocs.io/en/stable", None),
343-
"google.api_core": ("https://googleapis.dev/python/google-api-core/latest/", None,),
337+
"google.api_core": ("https://googleapis.dev/python/google-api-core/latest/", None),
344338
"grpc": ("https://grpc.io/grpc/python/", None),
345339
}
346340

packages/google-cloud-trace/google/cloud/trace_v1/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,4 @@ class TraceServiceClient(trace_service_client.TraceServiceClient):
3838
enums = enums
3939

4040

41-
__all__ = (
42-
"enums",
43-
"types",
44-
"TraceServiceClient",
45-
)
41+
__all__ = ("enums", "types", "TraceServiceClient")

packages/google-cloud-trace/google/cloud/trace_v1/gapic/trace_service_client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
from google.protobuf import timestamp_pb2
4040

4141

42-
_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-trace",).version
42+
_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-trace").version
4343

4444

4545
class TraceServiceClient(object):
@@ -165,12 +165,12 @@ def __init__(
165165
self.transport = transport
166166
else:
167167
self.transport = trace_service_grpc_transport.TraceServiceGrpcTransport(
168-
address=api_endpoint, channel=channel, credentials=credentials,
168+
address=api_endpoint, channel=channel, credentials=credentials
169169
)
170170

171171
if client_info is None:
172172
client_info = google.api_core.gapic_v1.client_info.ClientInfo(
173-
gapic_version=_GAPIC_LIBRARY_VERSION,
173+
gapic_version=_GAPIC_LIBRARY_VERSION
174174
)
175175
else:
176176
client_info.gapic_version = _GAPIC_LIBRARY_VERSION
@@ -181,7 +181,7 @@ def __init__(
181181
# (Ordinarily, these are the defaults specified in the `*_config.py`
182182
# file next to this one.)
183183
self._method_configs = google.api_core.gapic_v1.config.parse_method_configs(
184-
client_config["interfaces"][self._INTERFACE_NAME],
184+
client_config["interfaces"][self._INTERFACE_NAME]
185185
)
186186

187187
# Save a dictionary of cached API call functions.
@@ -418,7 +418,7 @@ def get_trace(
418418
client_info=self._client_info,
419419
)
420420

421-
request = trace_pb2.GetTraceRequest(project_id=project_id, trace_id=trace_id,)
421+
request = trace_pb2.GetTraceRequest(project_id=project_id, trace_id=trace_id)
422422
return self._inner_api_calls["get_trace"](
423423
request, retry=retry, timeout=timeout, metadata=metadata
424424
)
@@ -484,7 +484,7 @@ def patch_traces(
484484
client_info=self._client_info,
485485
)
486486

487-
request = trace_pb2.PatchTracesRequest(project_id=project_id, traces=traces,)
487+
request = trace_pb2.PatchTracesRequest(project_id=project_id, traces=traces)
488488
if metadata is None:
489489
metadata = []
490490
metadata = list(metadata)

packages/google-cloud-trace/google/cloud/trace_v1/gapic/transports/trace_service_grpc_transport.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(
5757
# exception (channels come with credentials baked in already).
5858
if channel is not None and credentials is not None:
5959
raise ValueError(
60-
"The `channel` and `credentials` arguments are mutually " "exclusive.",
60+
"The `channel` and `credentials` arguments are mutually " "exclusive."
6161
)
6262

6363
# Create the channel.
@@ -75,9 +75,7 @@ def __init__(
7575

7676
# gRPC uses objects called "stubs" that are bound to the
7777
# channel and provide a basic method for each RPC.
78-
self._stubs = {
79-
"trace_service_stub": trace_pb2_grpc.TraceServiceStub(channel),
80-
}
78+
self._stubs = {"trace_service_stub": trace_pb2_grpc.TraceServiceStub(channel)}
8179

8280
@classmethod
8381
def create_channel(

packages/google-cloud-trace/google/cloud/trace_v1/proto/trace_pb2.py

Lines changed: 12 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-trace/google/cloud/trace_v1/types.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,9 @@
2525
from google.protobuf import timestamp_pb2
2626

2727

28-
_shared_modules = [
29-
empty_pb2,
30-
timestamp_pb2,
31-
]
32-
33-
_local_modules = [
34-
trace_pb2,
35-
]
28+
_shared_modules = [empty_pb2, timestamp_pb2]
29+
30+
_local_modules = [trace_pb2]
3631

3732
names = []
3833

packages/google-cloud-trace/google/cloud/trace_v2/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,4 @@ class TraceServiceClient(trace_service_client.TraceServiceClient):
3838
enums = enums
3939

4040

41-
__all__ = (
42-
"enums",
43-
"types",
44-
"TraceServiceClient",
45-
)
41+
__all__ = ("enums", "types", "TraceServiceClient")

0 commit comments

Comments
 (0)