diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..30c3973a --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,11 @@ +# Code owners file. +# This file controls who is tagged for review for any given pull request. +# +# For syntax help see: +# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax + +# The @googleapis/yoshi-python is the default owner for changes in this repo +* @googleapis/yoshi-python + +# The python-samples-reviewers team is the default owner for samples changes +/samples/ @googleapis/python-samples-owners \ No newline at end of file diff --git a/.repo-metadata.json b/.repo-metadata.json index 0e6dcdd6..f0c8892b 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -1,10 +1,10 @@ { "name": "cloudtrace", - "name_pretty": "Stackdriver Trace", + "name_pretty": "Cloud Trace", "product_documentation": "https://cloud.google.com/trace/docs", "client_documentation": "https://googleapis.dev/python/cloudtrace/latest", "issue_tracker": "https://issuetracker.google.com/savedsearches/559776", - "release_level": "alpha", + "release_level": "ga", "language": "python", "repo": "googleapis/python-trace", "distribution_name": "google-cloud-trace", diff --git a/CHANGELOG.md b/CHANGELOG.md index 28d31710..22f22a2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,23 @@ [1]: https://pypi.org/project/google-cloud-trace/#history +## [1.1.0](https://www.github.com/googleapis/python-trace/compare/v1.0.0...v1.1.0) (2020-10-13) + + +### Features + +* bump to GA ([#51](https://www.github.com/googleapis/python-trace/issues/51)) ([1985fef](https://www.github.com/googleapis/python-trace/commit/1985feff307ee117d552e1c13c1ef8b2b86278e0)) + + +### Documentation + +* state >=3.6 requirement in README ([#42](https://www.github.com/googleapis/python-trace/issues/42)) ([c162047](https://www.github.com/googleapis/python-trace/commit/c162047a779478a43561a7e1f1b8687dda5ecc89)) + + +### Dependencies + +* remove unused google-cloud-core dependency ([#50](https://www.github.com/googleapis/python-trace/issues/50)) ([e748cb4](https://www.github.com/googleapis/python-trace/commit/e748cb4d27fdc6c7cdde2d63417f7892820c75dd)) + ## [1.0.0](https://www.github.com/googleapis/python-trace/compare/v0.24.0...v1.0.0) (2020-09-14) diff --git a/README.rst b/README.rst index d60b8671..597d5ca4 100644 --- a/README.rst +++ b/README.rst @@ -1,22 +1,22 @@ -Python Client for Stackdriver Trace API +Python Client for Cloud Trace API ======================================= -|alpha| |pypi| |versions| +|ga| |pypi| |versions| -The `Stackdriver Trace API`_ sends application trace data to Stackdriver Trace +The `Cloud Trace API`_ sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. - `Client Library Documentation`_ - `Product Documentation`_ -.. |alpha| image:: https://img.shields.io/badge/support-alpha-orange.svg - :target: https://github.com/googleapis/google-cloud-python/blob/master/README.rst#alpha-support +.. |ga| image:: https://img.shields.io/badge/support-ga-gold.svg + :target: https://github.com/googleapis/google-cloud-python/blob/master/README.rst#general-availability .. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-trace.svg :target: https://pypi.org/project/google-cloud-trace/ .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-trace.svg :target: https://pypi.org/project/google-cloud-trace/ -.. _Stackdriver Trace API: https://cloud.google.com/trace +.. _Cloud Trace API: https://cloud.google.com/trace .. _Client Library Documentation: https://googleapis.dev/python/cloudtrace/latest .. _Product Documentation: https://cloud.google.com/trace @@ -51,11 +51,11 @@ dependencies. Supported Python Versions ^^^^^^^^^^^^^^^^^^^^^^^^^ -Python >= 3.5 +Python >= 3.6 -Deprecated Python Versions -^^^^^^^^^^^^^^^^^^^^^^^^^^ +Unsupported Python Versions +^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Python == 2.7. The last version of this library compatible with Python 2.7 is google-cloud-trace==0.24.0 @@ -92,7 +92,7 @@ to `Python Development Environment Setup Guide`_ for Google Cloud Platform. Next Steps ~~~~~~~~~~ -- Read the `Client Library Documentation`_ for Stackdriver Trace API +- Read the `Client Library Documentation`_ for Cloud Trace API to see other available methods on the client. - Read the `Product documentation`_ to learn more about the product and see How-to Guides. diff --git a/scripts/decrypt-secrets.sh b/scripts/decrypt-secrets.sh index ff599eb2..21f6d2a2 100755 --- a/scripts/decrypt-secrets.sh +++ b/scripts/decrypt-secrets.sh @@ -20,14 +20,27 @@ ROOT=$( dirname "$DIR" ) # Work from the project root. cd $ROOT +# Prevent it from overriding files. +# We recommend that sample authors use their own service account files and cloud project. +# In that case, they are supposed to prepare these files by themselves. +if [[ -f "testing/test-env.sh" ]] || \ + [[ -f "testing/service-account.json" ]] || \ + [[ -f "testing/client-secrets.json" ]]; then + echo "One or more target files exist, aborting." + exit 1 +fi + # Use SECRET_MANAGER_PROJECT if set, fallback to cloud-devrel-kokoro-resources. PROJECT_ID="${SECRET_MANAGER_PROJECT:-cloud-devrel-kokoro-resources}" gcloud secrets versions access latest --secret="python-docs-samples-test-env" \ + --project="${PROJECT_ID}" \ > testing/test-env.sh gcloud secrets versions access latest \ --secret="python-docs-samples-service-account" \ + --project="${PROJECT_ID}" \ > testing/service-account.json gcloud secrets versions access latest \ --secret="python-docs-samples-client-secrets" \ - > testing/client-secrets.json \ No newline at end of file + --project="${PROJECT_ID}" \ + > testing/client-secrets.json diff --git a/setup.py b/setup.py index d959e699..f0a8058f 100644 --- a/setup.py +++ b/setup.py @@ -21,16 +21,15 @@ # Package metadata. name = "google-cloud-trace" -description = "Stackdriver Trace API client library" -version = "1.0.0" +description = "Cloud Trace API client library" +version = "1.1.0" # Should be one of: # 'Development Status :: 3 - Alpha' # 'Development Status :: 4 - Beta' # 'Development Status :: 5 - Production/Stable' -release_status = "Development Status :: 3 - Alpha" +release_status = "Development Status :: 5 - Production/Stable" dependencies = [ "google-api-core[grpc] >= 1.22.0, < 2.0.0dev", - "google-cloud-core >= 1.0.3, < 2.0dev", "proto-plus >= 1.4.0", ] extras = {} diff --git a/synth.metadata b/synth.metadata index 2e2dbd35..d707a262 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/python-trace.git", - "sha": "d3f18195e92915289f9d9d5075de1f11eb316353" + "sha": "423fb47f6d3294fca9fe1c942c42d941c3ef3378" } }, { @@ -18,7 +18,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "d91dd8aac77f7a9c5506c238038a26fa4f9e361e" + "sha": "d302f93d7f47e2852e585ac35ab2d15585717ec0" } } ],