FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Removing hard dependency on PyOpenSSL. by dhermes · Pull Request #559 · googleapis/google-cloud-python · GitHub

Removing hard dependency on PyOpenSSL. - #559

Merged
dhermes merged 1 commit into
googleapis:masterfrom
dhermes:fix-537
Jan 16, 2015
Merged

Removing hard dependency on PyOpenSSL.#559
dhermes merged 1 commit into
googleapis:masterfrom
dhermes:fix-537

Conversation

dhermes commented Jan 16, 2015

Copy link
Copy Markdown
Contributor

Requires oauth2client>=1.4.6 (@tseaver should I put this in setup.py?)

Also had to update storage/acl.py due to a change in
PyLint that didn't like self as a kwarg to a str instance
method

Fixes #537

googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 16, 2015

tseaver commented Jan 16, 2015

Copy link
Copy Markdown
Contributor

Given that we import oauth2client.crypt unconditionally, yes we need to bound it in install_requires.

BTW, 1.4.6 seems like an odd version number for a new feature (rather than a bug fix we need).

Requires oauth2client>=1.4.6.

Also had to update storage/acl.py due to a change in
PyLint that didn't like `self` as a kwarg to a str instance
method

Copy link
Copy Markdown

Coverage remained the same when pulling a17cafe on dhermes:fix-537 into edfd5e2 on GoogleCloudPlatform:master.

dhermes commented Jan 16, 2015

Copy link
Copy Markdown
Contributor Author

@tseaver It's a bit funky how OpenSSL is a "dependency" of oauth2client. The method will always be defined, but if OpenSSL is not installed then the method is defined as:

  def pkcs12_key_as_pem(*args, **kwargs):
    raise NotImplementedError('pkcs12_key_as_pem requires OpenSSL.')

For our library, the only place we need OpenSSL is the line in _get_pem_key in this PR. So if we decided not to support .p12 keys, we could totally ditch this. (It's unclear what Google's preference is since it's still possible to download a JSON/PEM key and a .p12 key.)

RE: The odd release number, this was just added in googleapis/oauth2client#115

tseaver commented Jan 16, 2015

Copy link
Copy Markdown
Contributor

@craigcitro @dhermes the setuptools way to express "optional" dependencies is via extras. I don't know if that would clarify anything for oauth2client.

dhermes commented Jan 16, 2015

Copy link
Copy Markdown
Contributor Author

I am a n00b there and happy to learn. This extra will be for oauth2client, not for us, so may not be blocking for this PR. Am I missing something?

tseaver commented Jan 16, 2015

Copy link
Copy Markdown
Contributor

Nothing blocking us now. If oauth2client releases a version that has an [openssl] extra, we would need to adjust our dependency to pick that up.

LGTM to merge.

dhermes added a commit that referenced this pull request Jan 16, 2015
Removing hard dependency on PyOpenSSL.
dhermes merged commit 1bfa469 into googleapis:master Jan 16, 2015
dhermes deleted the fix-537 branch January 17, 2015 00:04
parthea pushed a commit that referenced this pull request Sep 22, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Oct 21, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea added a commit that referenced this pull request Oct 21, 2023
* chore: Update gapic-generator-python to v1.11.7

PiperOrigin-RevId: 573230664

Source-Link: googleapis/googleapis@93beed3

Source-Link: googleapis/googleapis-gen@f4a4eda
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjRhNGVkYWE4MDU3NjM5ZmNmNmFkZjkxNzk4NzIyODBkMWE4ZjY1MSJ9

* 🦉 Updates from OwlBot post-processor

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

* chore: Update gapic-generator-python to v1.11.8

PiperOrigin-RevId: 574178735

Source-Link: googleapis/googleapis@7307199

Source-Link: googleapis/googleapis-gen@ce3af21
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2UzYWYyMWI3YzU1OWE4N2MyYmVmYzA3NmJlMGUzYWVkYTNhMjZmMCJ9

* 🦉 Updates from OwlBot post-processor

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

* chore: Update gapic-generator-python to v1.11.9

PiperOrigin-RevId: 574520922

Source-Link: googleapis/googleapis@5183984

Source-Link: googleapis/googleapis-gen@a59af19
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTU5YWYxOWQ0YWM2NTA5ZmFlZGYxY2MzOTAyOTE0MWI2YTViODk2OCJ9

* 🦉 Updates from OwlBot post-processor

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

* update index.rst; remove unused files

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
…lates/python_library/.kokoro (#559)

Source-Link: googleapis/synthtool@9367caa
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:2f155882785883336b4468d5218db737bb1d10c9cea7cb62219ad16fe248c03c

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
* chore: Update gapic-generator-python to v1.18.5

PiperOrigin-RevId: 661268868

Source-Link: googleapis/googleapis@f7d214c

Source-Link: googleapis/googleapis-gen@79a8411
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzlhODQxMWJiZGIyNWE5ODNmYTNhYWU4YzBlMTQzMjdkZjEyOWY5NCJ9

* 🦉 Updates from OwlBot post-processor

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

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea added a commit that referenced this pull request Nov 24, 2025
parthea pushed a commit that referenced this pull request Nov 24, 2025
Source-Author: Daniel Sanche <d.sanche14@gmail.com>
Source-Date: Wed Oct 14 08:00:06 2020 -0700
Source-Repo: googleapis/synthtool
Source-Sha: 477764cc4ee6db346d3febef2bb1ea0abf27de52
Source-Link: googleapis/synthtool@477764c

Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com>
Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com>
parthea added a commit that referenced this pull request Feb 13, 2026
Fixes #15099

Protobuf 7 is removing the float_prevision argument. This PR ignores it
when passed in 7.x+, and raises a DeprecationWarning

---------

Co-authored-by: Chalmer Lowe <chalmerlowe@google.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
parthea pushed a commit that referenced this pull request Feb 13, 2026
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.

Librarian Version: v1.0.1
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:d7caef319a25d618e20ba798b103434700bfd80015f525802d87621ca2528c90
<details><summary>proto-plus: 1.27.1</summary>

##
[1.27.1](googleapis/proto-plus-python@v1.27.0...v1.27.1)
(2026-01-30)

### Bug Fixes

* remove float_precision for protobuf 7 (#559)
([390b9d57](googleapis/proto-plus-python@390b9d57))

</details>
parthea added a commit that referenced this pull request Mar 9, 2026
* chore(deps): update dependency google-cloud-core to v2

* fix build

Co-authored-by: Anthonios Partheniou <partheniou@google.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider removing hard dependency on PyOpenSSL

4 participants


Back | FazBrowse Home | New Git URL