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 — fix: drop usage of distutils by parthea · Pull Request #541 · 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 Oct 21, 2023

Copy link
Copy Markdown
Contributor

Fixes #507 🦕

  • Raises ValueError if the format of the GOOGLE_API_USE_CLIENT_CERTIFICATE is not as defined below

    python-api-core/google/api_core/operations_v1/abstract_operations_client.py

    Lines 275 to 280 in 405272c

    (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 in gapic-generator-python here https://github.com/googleapis/gapic-generator-python/blob/45f18a69454bcff68c0f98535c68fbdb4e09db1d/gapic/templates/%25namespace/%25name_%25version/%25sub/services/%25service/client.py.j2#L253-L256

Sorry, something went wrong.

Uh oh!

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

All reactions
@parthea
fix: drop usage of distutils
e437ed6
@parthea
parthea requested review from a team October 21, 2023 13:24
@product-auto-label product-auto-label Bot added the size: s Pull request size is small. label Oct 21, 2023
parthea and others added 3 commits October 21, 2023 13:25
@parthea
lint
d42b5e7
@gcf-owl-bot
🦉 Updates from OwlBot post-processor
3854b0e
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
@gcf-owl-bot
Merge branch 'drop-usage-of-distutils' of https://github.com/googleap…
6a36b80
…is/python-api-core into drop-usage-of-distutils
@parthea parthea assigned vchudnov-g and ohmayr Nov 2, 2023
bcoe
bcoe approved these changes Nov 2, 2023
View reviewed changes
Benjamin E. Coe
Merge branch 'main' into drop-usage-of-distutils
fde76a3
vchudnov-g
vchudnov-g approved these changes Nov 2, 2023
View reviewed changes

@vchudnov-g vchudnov-g 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.

Only a minor, non-blocking comment.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread google/api_core/operations_v1/abstract_operations_client.py Outdated
util.strtobool(os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false"))
)

use_client_cert = os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false")

@vchudnov-g vchudnov-g Nov 2, 2023

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.

Might as well us lower() 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.)

Sorry, something went wrong.

Uh oh!

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

parthea reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@parthea parthea Nov 2, 2023

Copy link
Copy Markdown
Contributor Author

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.

Fixed in 614150d

Sorry, something went wrong.

Uh oh!

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

All reactions
parthea and others added 4 commits November 2, 2023 16:46
@parthea
address review feedback
614150d
@parthea
lint
897adf4
@gcf-owl-bot
🦉 Updates from OwlBot post-processor
88fe052
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
@gcf-owl-bot
Merge branch 'drop-usage-of-distutils' of https://github.com/googleap…
9cb58a9
…is/python-api-core into drop-usage-of-distutils
@parthea
parthea merged commit 4bd9e10 into main Nov 2, 2023
@parthea
parthea deleted the drop-usage-of-distutils branch November 2, 2023 20:51
@release-please release-please Bot mentioned this pull request Nov 2, 2023
chore(main): release 2.13.0 #537
Merged
This was referenced May 30, 2025
chore(main): release 2.0.0 #822
Closed
chore(main): release 2.0.0 #823
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

2 more reviewers
@bcoe bcoe bcoe approved these changes
@vchudnov-g vchudnov-g vchudnov-g approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

@vchudnov-g vchudnov-g

@ohmayr ohmayr

Labels

size: s Pull 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

Uh oh!

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

4 participants

@parthea @bcoe @vchudnov-g @ohmayr
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.