From 2c30f3a61d6632a6c7e7ec91718b97d6a1051379 Mon Sep 17 00:00:00 2001 From: Chris Arriola Date: Mon, 23 Jan 2023 15:09:05 -0800 Subject: [PATCH 1/4] docs: Adding docs.yml workflow to update docs on a new tag. (#360) * docs: Adding docs.yml workflow to update docs on a new tag. Once the docs have been generated, a new PR will be opened against the `gh-pages` branch. Resolves #348 Co-authored-by: Angela Yu <5506675+wangela@users.noreply.github.com> --- .github/workflows/docs.yml | 63 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 00000000..c83d6c38 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,63 @@ +# Copyright 2023 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# 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. + +# A workflow that pushes artifacts to Sonatype +name: Publish + +on: + push: + tags: + - '*' + repository_dispatch: + types: [docs] + +jobs: + docs: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Python + uses: "actions/setup-python@v3" + with: + python-version: "3.9" + + - name: Install dependencies + run: ./.github/scripts/install.sh + + - name: Generate docs + run: python3 -m nox --session docs + + - name: Update gh-pages branch with docs + run: | + echo "Creating tar for generated docs" + cd ./docs/_build/html && tar cvf ~/docs.tar . + + echo "Unpacking tar into gh-pages branch" + git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* + cd $GITHUB_WORKSPACE && git checkout gh-pages && tar xvf ~/docs.tar + + - name: PR Changes + uses: peter-evans/create-pull-request@v4 + with: + token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }} + commit-message: 'docs: Update docs' + committer: googlemaps-bot + author: googlemaps-bot + title: 'docs: Update docs' + body: | + Updated GitHub pages with latest from `python3 -m nox --session docs`. + branch: googlemaps-bot/update_gh_pages From 88268363f4612fa97a525c149f7dce3e36f293ef Mon Sep 17 00:00:00 2001 From: Angela Yu <5506675+wangela@users.noreply.github.com> Date: Mon, 23 Jan 2023 23:34:06 -0800 Subject: [PATCH 2/4] chore: update release action dependencies (#473) * chore: update release action dependencies * chore: set semantic release version --- .github/workflows/release.yml | 7 ++++--- .github/workflows/test.yml | 6 ++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce78e642..a0a28dce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,11 +23,11 @@ jobs: PYTHONDONTWRITEBYTECODE: 1 steps: - name: Setup Python - uses: "actions/setup-python@v1" + uses: "actions/setup-python@v3" with: python-version: "3.9" - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }} - name: Install dependencies @@ -37,8 +37,9 @@ jobs: - name: Cleanup old dist run: rm -rf googlemaps-* dist/ - name: Semantic Release - uses: cycjimmy/semantic-release-action@v2 + uses: cycjimmy/semantic-release-action@v3 with: + semantic_version: 19 extra_plugins: | "@semantic-release/commit-analyzer" "@semantic-release/release-notes-generator" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 286ff75a..570a087a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -# Copyright 2020 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -51,4 +51,6 @@ jobs: needs: [matrix] runs-on: ubuntu-latest steps: - - run: echo "Test matrix finished" + - run: | + echo "Test matrix finished"; + exit 0; From 9f09ccbaecef7c1244f07f8cccc39024ad5fddee Mon Sep 17 00:00:00 2001 From: Joe Loffredo <60896458+jloffredo2@users.noreply.github.com> Date: Tue, 24 Jan 2023 14:11:59 -0500 Subject: [PATCH 3/4] feat: add `editorial_summary` to Place Details atmosphere fields (#472) --- googlemaps/places.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/googlemaps/places.py b/googlemaps/places.py index 91c14dfe..ac3bf53e 100644 --- a/googlemaps/places.py +++ b/googlemaps/places.py @@ -80,7 +80,7 @@ PLACES_DETAIL_FIELDS_CONTACT = {"formatted_phone_number", "international_phone_number", "opening_hours", "website"} -PLACES_DETAIL_FIELDS_ATMOSPHERE = {"price_level", "rating", "review", "user_ratings_total"} +PLACES_DETAIL_FIELDS_ATMOSPHERE = {"editorial_summary","price_level", "rating", "review", "user_ratings_total"} PLACES_DETAIL_FIELDS = ( PLACES_DETAIL_FIELDS_BASIC From 65d5a263e683e3763a6e1c076d1c5778211fd745 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 24 Jan 2023 19:13:04 +0000 Subject: [PATCH 4/4] chore(release): 4.8.0 [skip ci] # [4.8.0](https://github.com/googlemaps/google-maps-services-python/compare/v4.7.3...v4.8.0) (2023-01-24) ### Features * add `editorial_summary` to Place Details atmosphere fields ([#472](https://github.com/googlemaps/google-maps-services-python/issues/472)) ([9f09ccb](https://github.com/googlemaps/google-maps-services-python/commit/9f09ccbaecef7c1244f07f8cccc39024ad5fddee)) --- googlemaps/__init__.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/googlemaps/__init__.py b/googlemaps/__init__.py index f25d9359..be61bb0e 100644 --- a/googlemaps/__init__.py +++ b/googlemaps/__init__.py @@ -15,7 +15,7 @@ # the License. # -__version__ = "4.7.3" +__version__ = "4.8.0" from googlemaps.client import Client from googlemaps import exceptions diff --git a/setup.py b/setup.py index 239eceb0..3958aed2 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ setup( name="googlemaps", - version="4.7.3", + version="4.8.0", description="Python client library for Google Maps Platform", long_description=readme + changelog, long_description_content_type="text/markdown",