Skip to content

Conversation

@tseaver
Copy link
Contributor

@tseaver tseaver commented Oct 29, 2015

Uses #1208 as a base.

  • Trim / normailze / document imports.
  • Rename functions / methods to match PEP 8.
  • Make constants / methods used outside their modules public.
  • Make functions / methods not imported outside their modules explicitly private.
  • Drop unused exceptions.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 29, 2015
@dhermes
Copy link
Contributor

dhermes commented Oct 29, 2015

Ping me when this is rebased after the other commits get merged.

@tseaver
Copy link
Contributor Author

tseaver commented Nov 16, 2015

@dhermes rebased after #1208 merged.

@dhermes
Copy link
Contributor

dhermes commented Nov 16, 2015

Just want to double check that 11 commits is intended after the rebase and we didn't confuse git?

@tseaver
Copy link
Contributor Author

tseaver commented Nov 16, 2015

This is the correct set of commits: I can squash some down, if you think it will help review better.

@dhermes
Copy link
Contributor

dhermes commented Nov 16, 2015

No more commits is almost certainly a good thing (easier to review).

This comment was marked as spam.

This comment was marked as spam.

@dhermes
Copy link
Contributor

dhermes commented Nov 16, 2015

Unfortunately GitHub thinks there are too many changes to gcloud/streaming/test_transfer.py to display.

There are a couple places where you dropped with _Monkey(MUT, http_wrapper=_Dummy()):. Why?

@dhermes
Copy link
Contributor

dhermes commented Nov 16, 2015

Also

_Monkey(
    Request=lambda url, http_method, body: _Request(url, http_method, body)
)

seems like it could be done with

_Monkey(Request=_Request)

What am I missing?

This comment was marked as spam.

This comment was marked as spam.

@dhermes
Copy link
Contributor

dhermes commented Nov 16, 2015

Yay for "Give 'streaming.util' functions PEP8 names."!

This comment was marked as spam.

This comment was marked as spam.

@dhermes
Copy link
Contributor

dhermes commented Nov 16, 2015

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@dhermes
Copy link
Contributor

dhermes commented Nov 16, 2015

Other than getting at the code GitHub won't show me, I've reviewed them all and made my comments.

@tseaver
Copy link
Contributor Author

tseaver commented Nov 17, 2015

There are a couple places where you dropped with _Monkey(MUT, http_wrapper=_Dummy()):. Why?

In that same commit, transfer begins importing names directly, rather than via http_wrapper.<name>.

@dhermes
Copy link
Contributor

dhermes commented Nov 18, 2015

Seems like adding __doc__ to the named tuple and then me reviewing test_transfer.py is what remains. Am I missing anything else?

@tseaver
Copy link
Contributor Author

tseaver commented Nov 18, 2015

(I think) to review the bigger diff:

$ git remote add tseaver https://github.com/tseaver/gcloud-python
$ git fetch --all tseaver
$ git diff master..tseaver/streaming-strip_unused_features gcloud/streaming/test_transfer.py

@tseaver
Copy link
Contributor Author

tseaver commented Nov 18, 2015

Rebased to fix conflict on gcloud/storage/test_blob.py (from #1222).

@dhermes
Copy link
Contributor

dhermes commented Nov 18, 2015

OK the test_transfer.py diff looks fine (I don't know why GitHub wouldn't show it, it was mostly renames)

@dhermes
Copy link
Contributor

dhermes commented Nov 18, 2015

Do we have everything else squared away?

@tseaver
Copy link
Contributor Author

tseaver commented Nov 19, 2015

Do we have everything else squared away?

I think so.

@dhermes
Copy link
Contributor

dhermes commented Nov 19, 2015

OK. LGTM

tseaver added a commit that referenced this pull request Nov 19, 2015
@tseaver tseaver merged commit 509564d into googleapis:master Nov 19, 2015
@tseaver tseaver deleted the streaming-strip_unused_features branch November 19, 2015 01:00
parthea pushed a commit that referenced this pull request Nov 24, 2025
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [setuptools](https://togithub.com/pypa/setuptools) | `==60.9.1` -> `==60.9.2` | [![age](https://badges.renovateapi.com/packages/pypi/setuptools/60.9.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/setuptools/60.9.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/setuptools/60.9.2/compatibility-slim/60.9.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/setuptools/60.9.2/confidence-slim/60.9.1)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>pypa/setuptools</summary>

### [`v60.9.2`](https://togithub.com/pypa/setuptools/blob/HEAD/CHANGES.rst#v6092)

[Compare Source](https://togithub.com/pypa/setuptools/compare/v60.9.1...v60.9.2)

Misc
^^^^

-   [#&#8203;3035](https://togithub.com/pypa/setuptools/issues/3035): When loading distutils from the vendored copy, rewrite `__name__` to ensure consistent importing from inside and out.

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/gapic-generator-python).
parthea pushed a commit that referenced this pull request Nov 26, 2025
* chore: update token

* pin the cryptography library version

* pin the cryptography library version

* using less operator to try
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: core cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants