GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: merge main branch into v1 by parthea · Pull Request #438 · googleapis/python-api-core

This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Conversation

@parthea

@parthea parthea commented Sep 6, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

For google-api-core we did not make breaking changes in the main branch beyond removing support for 2.7. This PR ports all of the features from the main branch into the v1 branch.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
busunkim96 and others added 30 commits August 3, 2021 11:47
@busunkim96
fix: strip trailing _ from field mask paths (#228)
ff6ef1b
@tseaver
fix!: drop support for Python 2.7 / 3.5 (#212)
a30f004
Drop 'six' module

Drop 'u"' prefixes for text

Remove other Python 2.7 workarounds

Drop use of 'pytz'

Dxpand range to allow 'google-auth' 2.x versions

Remove 'general_helpers.wraps': except for a backward-compatibility
import, 'functools.wraps' does everything wee need on Python >= 3.6.

Remove 'packaging' dependency

Release-As: 2.0.0b1

Closes #74.

Closes #215.
@release-please
chore: release 2.0.0b1 (#243)
d566f28
@busunkim96
chore: remove non-custom rules from sync-repo-settings (#241)
6789e67
See https://github.com/googleapis/repo-automation-bots/blob/63c858e539e1f4d9bb8ea66e12f9c0a0de5fef55/packages/sync-repo-settings/src/required-checks.json#L40-L50 for defaults.
@gcf-owl-bot
chore(python): avoid .nox directories when building docs (#249)
258ba4a
Source-Link: googleapis/synthtool@7e1f6da
Post-Processor: gcr.io/repo-automation-bots/owlbot-python:latest@sha256:a1a891041baa4ffbe1a809ac1b8b9b4a71887293c9101c88e8e255943c5aec2d
@tseaver
chore: avoid duplicating pins of grpcio in noxfile (#246)
ffa528e
Rely on the pins in 'setup.py' as the Source of Truth.

See #234 (review)
@gcf-owl-bot
chore: drop mention of Python 2.7 from templates (#252)
a54cc10
Source-Link: googleapis/synthtool@facee4c
Post-Processor: gcr.io/repo-automation-bots/owlbot-python:latest@sha256:9743664022bd63a8084be67f144898314c7ca12f0a03e422ac17c733c129d803

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@parthea
chore: update if_transient_error docs to match behaviour (#253)
362ca6c
Fixes #185 🦕
@lidizheng
fix: bump grpcio version to use stable aio API (#234)
bdbf889
@tseaver
tests: silence a warning from 'charset_normalizer' (#247)
bb3b26d
@release-please
chore: release 2.0.0 (#254)
40f52bf
🤖 I have created a release \*beep\* \*boop\*
---
## [2.0.0](https://www.github.com/googleapis/python-api-core/compare/v2.0.0-b1...v2.0.0) (2021-08-18)


### ⚠ BREAKING CHANGES

* drop support for Python 2.7 / 3.5 ([#212](https://www.github.com/googleapis/python-api-core/issues/212)) ([a30f004](https://www.github.com/googleapis/python-api-core/commit/a30f004e74f709d46e905dd819c71f43354e9ac9))

### Bug Fixes

* bump grpcio version to use stable aio API ([#234](https://www.github.com/googleapis/python-api-core/issues/234)) ([bdbf889](https://www.github.com/googleapis/python-api-core/commit/bdbf889210b709d7c1945f2160bcba9161b4dd2e))
* strip trailing _ from field mask paths ([#228](https://www.github.com/googleapis/python-api-core/issues/228)) ([ff6ef1b](https://www.github.com/googleapis/python-api-core/commit/ff6ef1bd07fa68307b7c82c910416d770e7b3416))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@gcf-owl-bot
chore(python): disable dependency dashboard (#266)
e3d34d4
@tseaver
chore: migrate default branch to main (#264)
1db493c
@tseaver
tests: close coverage gap for race condition (#261)
82ca2fd
Closes #260
@busunkim96 @tseaver
fix: do not error on LROs with no response or error (#258)
618f192
Co-authored-by: Tres Seaver <[email protected]>
@release-please
chore: release 2.0.1 (#267)
dcb6ebd
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@gcf-owl-bot
chore(python): group renovate prs (#270)
01e31ca
@parthea @tseaver
chore: remove obsolete dependency in setup.py (#269)
4679219
Co-authored-by: Tres Seaver <[email protected]>
@nicain
chore: removing owlbot directives for conversion to main (#272)
8b65c93
chore: removing owlbot directives for conversion to main
@yihjenku @yon-mg
@gcf-owl-bot @tseaver
feat: add grpc transcoding + tests (#259)
afe0fa1
* feat: add grpc transcoding + tests

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: tweak for clarity / idiomatic usage

* chore: attempt to appease Sphinx

* feat: add grpc transcoding + tests

* Add functions to properly handle subfields

* Add unit tests for get_field and delete_field.

* Add function docstrings and incorporate correct native dict functions.

* Add function docstrings and incorporate correct native dict functions.

* Increase code coverage

* Increase code coverage

* Increase code coverage

* Reformat files

Co-authored-by: Yonatan Getahun <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Tres Seaver <[email protected]>
@kbandes Kenneth Bandes
feat: Add helper function to format query_params for rest transport. (#…
1c5eb4d
…275)

Co-authored-by: Kenneth Bandes <[email protected]>
@SurferJeffAtGoogle
chore: relocate owl bot post processor (#280)
083e6e9
chore: relocate owl bot post processor
@tseaver
tests: add explicit unit tests for '_StreamedResponseIterator' class (#…
3b0912a
…281)
@parthea
chore: add default_version and codeowner_team to .repo-metadata.json (#…
f3fd059
…282)

* chore: add default_version and codeowner_team to .repo-metadata.json

* Assign @googleapis/actools-python as codeowner
@gcf-owl-bot
build: use trampoline_v2 for python samples and allow custom dockerfi…
577da9d
…le (#283)

Source-Link: googleapis/synthtool@a7ed11e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:6e7328583be8edd3ba8f35311c76a1ecbc823010279ccb6ab46b7a76e25eafcc

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@tseaver
feat: add support for Python 3.10 (#284)
a422a5d
Fix new deprecation warning for 'threading.Condition.notifyAll'.
@release-please
chore: release 2.1.0 (#274)
121debd
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@gcf-owl-bot
chore(python): Add kokoro configs for python 3.10 samples testing (#285)
e6a3489
Source-Link: googleapis/synthtool@c6e69c4
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:58f73ba196b5414782605236dd0712a73541b44ff2ff4d3a36ec41092dd6fa5b

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@tseaver
fix: add mypy checking + 'py.typed' file (#290)
0023ee1
@release-please
chore: release 2.1.1 (#291)
f4e776e
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
gcf-owl-bot Bot and others added 15 commits August 9, 2022 21:44
@gcf-owl-bot @parthea
fix: require python 3.7+ (#410)
7ddb8c0
* chore(python): drop python 3.6

Source-Link: googleapis/synthtool@4f89b13
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e7bb19d47c13839fe8c147e50e02e8b6cf5da8edd1af8b82208cd6f66cc2829c

* require python 3.7+ in setup.py

* remove python 3.6 sample configs

* exclude templated README

* remove python 3.6 from noxfile

* remove python 3.6 from remaining files

* remove testing/constraints-3.6.txt

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
@renovate-bot @parthea @gcf-owl-bot
chore(deps): update actions/setup-python action to v4 (#419)
cb0329a
* chore(deps): update actions/setup-python action to v4

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Anthonios Partheniou <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@sai-sunder-s @parthea
doc: Update gcloud command for ADC (#406)
7472e6d
ADC login command for gcloud is `gcloud auth application-default auth login`

Co-authored-by: Anthonios Partheniou <[email protected]>
@gcf-owl-bot
chore: remove 'pip install' statements from python_library templates …
0dde0f9
…[autoapprove] (#424)

Source-Link: googleapis/synthtool@1f37ce7
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:8e84e0e0d71a0d681668461bba02c9e1394c785f31a10ae3470660235b673086

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@gcf-owl-bot
chore(python): exclude path in renovate.json [autoapprove] (#425)
d1026e7
Source-Link: googleapis/synthtool@69fabae
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:562802bfac02e012a6ac34eda282f81d06e77326b82a32d7bbb1369ff552b387

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@gcf-owl-bot
chore(python): update dependency distlib (#429)
7371d02
Source-Link: googleapis/synthtool@c4dd595
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:ce3c1686bc81145c81dd269bd12c4025c6b275b22d14641358827334fddb1d72

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@vam-google @parthea
feat: Make grpc transcode logic work in terms of protobuf python obje…
c3ad8ea
…cts (#428)

* feat: Make grpc transcode logic work in terms of protobuf python objects

(for context: [gRPC Transcoding](https://github.com/googleapis/googleapis/blob/master/google/api/http.proto#L44))
Previously it worked on dictionaries only, but that causes problems.

In GAPIC the dictionaries are created through the same logic as JSON (there is no better built-in way), thus applying [protobuf json mapping](https://developers.google.com/protocol-buffers/docs/proto3#json) conversion logic in the process. Unfortunately converting a protobuf object to a dictionary and to JSON, although similar, are not the same thing. Specifically the `Timestamp`, `Duration`, `FieldMask`, `uint64`, `int64`, and `*Value` protobuf messages are converted to strings for JSON (instead of being properly converted to dicts for most of those types, and `int64/uint64` converted to `int` respectively). As a result a rountrip that GAPIC was relying on (protobuf object -> dict -> transcode -> protobuf object) did not work properly. For example, when converted to dictionary, every int64 field would be converted to `string` (because it is what proto-JSON mapping spec requires), but later, when we need to rebuild a message from a transcoded dictionary that would fail with the following error:
```
TypeError: '0' has type str, but expected one of: int
```

Note, `*Rules` thing from proto-plus does not help, becuase the type may happen inside common native protobuf stub messsages (like `google.type.Money`), fields of which are outside of scope of the proto-plus custom conversion logic.

Also, this change greatly simplifies the procedure of transcodding, eliminating multiple conversion steps (to and from dictionaries multiple times) making the whole logic significanly more efficient (python gapics are nutoriously known to be slow due to proto-plus stuff, so efficiency is important) and robust (JSON conversion logic does not interfere anymore with pure protobuf objects grpc transcoding)

* reformat code using black

* reformat code according to flake8

Co-authored-by: Anthonios Partheniou <[email protected]>
@gcf-owl-bot
chore: fix path to requirements.txt in release script [autoapprove] (#…
29aa9ef
…430)

Source-Link: googleapis/synthtool@fdba3ed
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:1f0dbd02745fb7cf255563dab5968345989308544e52b7f460deadd5e78e63b0
@parthea
fix: restore support for grpcio-gcp (#418)
8c19609
docs: add a note that grpcio-gcp is only supported in environments with protobuf < 4.x.x
docs: raise DeprecationWarning when 'grpcio-gcp' is used
fix(deps): require protobuf >= 3.20.1
@release-please
chore(main): release 2.9.0 (#422)
922f468
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@gcf-owl-bot
chore(python): update .kokoro/requirements.txt (#431)
9066ed4
Source-Link: googleapis/synthtool@703554a
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:94961fdc5c9ca6d13530a6a414a49d2f607203168215d074cdb0a1df9ec31c0b

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@vchudnov-g @parthea
feat: add 'strict' to flatten_query_params to lower-case bools (#433)
83678e9
* feat: add 'strict' to flatten_query_params to lower-case bools

* pylint

Co-authored-by: Anthonios Partheniou <[email protected]>
@release-please
chore(main): release 2.10.0 (#434)
cea67da
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@gcf-owl-bot
chore(python): exclude setup.py in renovate config (#436)
fe617c2
Source-Link: googleapis/synthtool@56da63e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:993a058718e84a82fda04c3177e58f0a43281a996c7c395e0a56ccc4d6d210d7
@parthea
Merge remote-tracking branch 'origin/main' into merge-main
2f5772a
@product-auto-label product-auto-label Bot added the size: l Pull request size is large. label Sep 6, 2022
@google-cla

google-cla Bot commented Sep 6, 2022

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@parthea

parthea commented Sep 6, 2022

Copy link
Copy Markdown
Contributor Author

It should be ok to ignore the CLA in this case, as these commits were already merged in main.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

parthea added 2 commits September 6, 2022 14:49
@parthea
enable github actions checks
cc79857
@parthea
remove constraints for python 3.8
ac301cf
@parthea
parthea marked this pull request as ready for review September 6, 2022 14:54
@parthea
parthea requested review from a team September 6, 2022 14:54
@parthea
ci: fix cover
238e41b
@parthea parthea assigned vam-google Sep 6, 2022
@parthea
parthea requested a review from vam-google September 6, 2022 19:09
vam-google
vam-google approved these changes Sep 6, 2022
View reviewed changes

@vam-google vam-google left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@parthea
parthea merged commit a175ce5 into v1 Sep 6, 2022
@parthea
parthea deleted the merge-main branch September 6, 2022 19:16
@release-please release-please Bot mentioned this pull request Sep 6, 2022
chore(v1): release 1.33.0 #439
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@vam-google vam-google vam-google approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@vam-google vam-google

Labels

size: l Pull request size is large.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

20 participants

@parthea @vam-google @busunkim96 @tseaver @lidizheng @nicain @yihjenku @kbandes @SurferJeffAtGoogle @atulep @sushicw @anguillanneuf @arithmetic1728 @renovate-bot @software-dov @hugovk @ddoskind @dandhlee @Mariatta @sai-sunder-s
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.