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 — chore: restrict pubsub to < 2.0 by HemangChothani · Pull Request #273 · googleapis/python-storage

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

Conversation

@HemangChothani

@HemangChothani HemangChothani commented Sep 16, 2020

Copy link
Copy Markdown
Contributor

Fixes #272

For the passing current scenario restrict version in nox.py file and for the future added in synth.py file.

google-cloud-pubsub==2.0.0 version has dropped the support of python2, so once storage will drop the support following changes needs to be done:

  • replace create_topic(self.topic_path) to create_topic(name=self.topic_path)

  • replace get_iam_policy(self.topic_path) to get_iam_policy(request={"resource": self.topic_path})

  • replace set_iam_policy(self.topic_path, policy) to set_iam_policy(request={"resource": self.topic_path, "policy": policy})

  • replace delete_topic(self.topic_path) to delete_topic(request={"topic":self.topic_path})

Sorry, something went wrong.

Uh oh!

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

All reactions
@HemangChothani
chore: restrict pubsub to < 2.0
c24ea49
@HemangChothani
HemangChothani requested review from andrewsg and tseaver September 16, 2020 07:09
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 16, 2020
@HemangChothani HemangChothani mentioned this pull request Sep 16, 2020
fix: add requests as a dependency #271
Merged
@product-auto-label product-auto-label Bot added the api: storage Issues related to the googleapis/python-storage API. label Sep 16, 2020
@plamut plamut mentioned this pull request Sep 16, 2020
PublisherClient methods no longer supporting previous way of calling googleapis/python-pubsub#194
Closed
plamut
plamut approved these changes Sep 16, 2020
View reviewed changes

@plamut plamut 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.

This looks good, the dependency should indeed be pinned to exclude the next major version, as major versions are generally expected to contain breaking changes.

Sorry, something went wrong.

Uh oh!

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

All reactions
@plamut
plamut merged commit 0642a73 into googleapis:master Sep 16, 2020
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
@HemangChothani @cojenco
chore: restrict PubSub dependency to < 2.0 (googleapis#273)
ba9199d
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
@HemangChothani @cojenco
chore: restrict PubSub dependency to < 2.0 (googleapis#273)
ec3bf33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@tseaver tseaver Awaiting requested review from tseaver
@andrewsg andrewsg Awaiting requested review from andrewsg
1 more reviewer
@plamut plamut plamut approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

No one assigned

Labels

api: storage Issues related to the googleapis/python-storage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

System test failed for python3.8

Uh oh!

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

2 participants

@HemangChothani @plamut
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.