Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: drop usage of distutils#541

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
parthea merged 9 commits intomainfromdrop-usage-of-distutils
Nov 2, 2023
Merged

Conversation

@parthea
Copy link
Collaborator

Fixes#507 🦕

  • RaisesValueError if the format of theGOOGLE_API_USE_CLIENT_CERTIFICATE is not as defined below
    (2) If GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable
    is "true", then the ``client_cert_source`` property can be used
    to provide client certificate for mutual TLS transport. If
    not provided, the default SSL client certificate will be used if
    present. If GOOGLE_API_USE_CLIENT_CERTIFICATE is "false" or not
    set, no client certificate will be used.

This is the same behaviour that exists ingapic-generator-python herehttps://github.com/googleapis/gapic-generator-python/blob/45f18a69454bcff68c0f98535c68fbdb4e09db1d/gapic/templates/%25namespace/%25name_%25version/%25sub/services/%25service/client.py.j2#L253-L256

@partheaparthea requested review froma team ascode ownersOctober 21, 2023 13:24
@product-auto-labelproduct-auto-labelbot added the size: sPull request size is small. labelOct 21, 2023
Copy link
Contributor

@vchudnov-gvchudnov-g left a comment

Choose a reason for hiding this comment

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

Only a minor, non-blocking comment.

util.strtobool(os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE","false"))
)

use_client_cert=os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE","false")
Copy link
Contributor

Choose a reason for hiding this comment

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

Might as well uslower() in this assignment so you don't have to repeat it below

(It would be great to cast this to a bool like the previous code was doing, but it seems like too much overhead for the very limited use in a very compact LOC range. The string comparison is OK.)

parthea reacted with thumbs up emoji
Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

Fixed in614150d

@partheaparthea merged commit4bd9e10 intomainNov 2, 2023
@partheaparthea deleted the drop-usage-of-distutils branchNovember 2, 2023 20:51
@release-pleaserelease-pleasebot mentioned this pull requestNov 2, 2023
This was referencedMay 30, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@vchudnov-gvchudnov-gvchudnov-g approved these changes

+1 more reviewer

@bcoebcoebcoe approved these changes

Reviewers whose approvals may not affect merge requirements

Labels

size: sPull request size is small.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Remove dependency on deprecated distutils

4 participants

@parthea@bcoe@vchudnov-g@ohmayr

[8]ページ先頭

©2009-2025 Movatter.jp