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 python 2.7 support by tseaver · Pull Request #103 · googleapis/python-cloud-core

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

Conversation

@tseaver

@tseaver tseaver commented Jun 15, 2021

Copy link
Copy Markdown
Contributor
  • Drop use of 'mock' shim.
  • Drop use of 'six'.
  • Drop explicit 'u"' prefixes.
  • Drop 'pytz'.

Release-As: 2.0.0b1

Closes #102.

Sorry, something went wrong.

Uh oh!

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

All reactions
@tseaver
tseaver requested review from a team, busunkim96, chrisrossi, crwilcox and jimfulton June 15, 2021 20:47
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jun 15, 2021
plamut
plamut reviewed Jun 16, 2021
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.

Generally looks good to me, just a few bits remaining - things from the comments and a few mentions of "Python 2" and "2.7" in the docs that are now obsolete, e.g in CONTRIBUTING.rst and at the end of README.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread google/cloud/version.py
# limitations under the License.

__version__ = "1.7.0"
__version__ = "2.0.0b1"

@plamut plamut Jun 16, 2021

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.

Same process question - should this be beta or an RC?

Sorry, something went wrong.

Uh oh!

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

All reactions

@tseaver tseaver Jun 16, 2021

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.

As I said in googleapis/python-api-core#212, I think a beta is sensible for a semver-major breaking change. I'll let @crwilcox and @busunkim96 chime in on that.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread tests/unit/test__helpers.py Resolved

Uh oh!

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

Comment thread google/cloud/_testing.py Resolved

Uh oh!

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

Comment thread tests/unit/test__helpers.py Resolved

Uh oh!

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

plamut
plamut reviewed Jun 17, 2021
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.

Also update the "Deprecated Python Versions" section in README like in other libraries?

Looks good otherwise, IMO.

Sorry, something went wrong.

Uh oh!

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

All reactions
@tseaver

tseaver commented Jun 18, 2021 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

@plamut Thanks for the review! fca858a updates README.rst to document last version supporting Python 2.7. 12014e2 updates CONTRIBUTING.rst to drop references to running tests under Python 2.7.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver tseaver added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jun 18, 2021
@tseaver

tseaver commented Jun 18, 2021

Copy link
Copy Markdown
Contributor Author

Marked as do not merge pending discussion over the versioning policy next week with @busunkim96, @crwilcox, et al.

All reactions

Sorry, something went wrong.

Uh oh!

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

@plamut

plamut commented Jun 18, 2021 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

@tseaver 12014e2 has not been pushed yet? I can still see references to Python 2.7 in CONTRIBUTING when I pull the PR branch locally.

Edit: Ah, the owlbot commit overrode those changes. Was that added to the PR branch involuntarily?

Edit 2 The CONTRIBUTING file is tempalted and must be modified through owlbot.py to make the changes persistent.

All reactions

Sorry, something went wrong.

Uh oh!

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

tseaver added 10 commits June 18, 2021 15:32
@tseaver
fix!: drop support for Python 2.7
fa43f54
Release-As: 2.0.0b1

Closes #102
@tseaver
fix: drop 'mock' shim
0dd50f0
@tseaver
fix: drop 'six'
a5afb76
@tseaver
fix: drop explicit 'u"' prefix
18ecab3
@tseaver
fix: drop 'pytz'
ac1c294
@tseaver
chore: drop installing 'mock' for unittests
83e0bdc
@tseaver
chore: drop Python2-specific alias
e399f51
@tseaver
docs: note unsupported Python versions
d1c724b
@tseaver
docs: drop references to tests under Python 2.7
91262c0
@tseaver
chore: exclude 'CONTRIBUTING.rst' from sync
85775cc
@tseaver
tseaver force-pushed the 102-drop-python-2.7 branch from 0862f04 to 85775cc Compare June 18, 2021 19:32
@tseaver

tseaver commented Jun 18, 2021

Copy link
Copy Markdown
Contributor Author

@plamut Owlbot is running in automated fashion, pushing changes to PRs. I guess we have to apply the changes to CONTRIBUTING.rst in owlbot.py via s.replace() (or else exclude it -- see 85775cc).

All reactions

Sorry, something went wrong.

Uh oh!

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

plamut
plamut approved these changes Jun 18, 2021
View reviewed changes
parthea
parthea reviewed Jun 18, 2021
View reviewed changes
Comment thread CONTRIBUTING.rst Resolved

Uh oh!

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

tseaver and others added 2 commits June 18, 2021 16:02
@tseaver
chore: revert excluding 'CONTRIBUTING.rst' from sync
5fb81ae
This reverts commit 85775cc.
@gcf-owl-bot
🦉 Updates from OwlBot
fa4dc90
See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md
@parthea parthea mentioned this pull request Jun 18, 2021
docs: omit mention of Python 2.7 in 'CONTRIBUTING.rst' (#1127) #105
Closed
@tseaver
chore: bump to latest owlbot image hash
5d468ea
tseaver and others added 2 commits June 18, 2021 18:14
@tseaver
Merge branch '102-drop-python-2.7' of github.com:googleapis/python-cl…
edc214f
…oud-core into 102-drop-python-2.7
@gcf-owl-bot
🦉 Updates from OwlBot
fa1e188
See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md
@parthea
parthea self-requested a review July 10, 2021 14:43
tseaver and others added 4 commits July 14, 2021 15:51
@tseaver
Merge branch 'master' into 102-drop-python-2.7
4b7f24b
@tseaver
chore: switch to microgenerator to avoid 2.7 reappearing
e3170d9
@tseaver
Merge branch '102-drop-python-2.7' of github.com:googleapis/python-cl…
dd48c52
…oud-core into 102-drop-python-2.7
@gcf-owl-bot
🦉 Updates from OwlBot
0e36873
See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md
@tseaver tseaver added the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 14, 2021
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 14, 2021
@tseaver tseaver added the semver: major Hint for users that this is an API breaking change. label Jul 14, 2021
tseaver added 3 commits July 14, 2021 16:56
@tseaver
chore: expand range to allow 2.x versions of 'google-auth'
277100b
@tseaver
Merge branch 'master' into 102-drop-python-2.7
1ae02ee
@tseaver
Merge branch 'master' into 102-drop-python-2.7
1919c3d
@tseaver tseaver mentioned this pull request Jul 27, 2021
chore: release 1.7.2 #123
Merged
tseaver and others added 4 commits July 27, 2021 14:02
@tseaver
Merge branch 'master' into 102-drop-python-2.7
48d6e7d
@tseaver
Merge branch 'master' into 102-drop-python-2.7
df37b8f
@tseaver
chore: remove mentions of Python 2.7 from docs
a4b39d0
Except for the README section documentin the last version supporting it.
@gcf-owl-bot
🦉 Updates from OwlBot
8811785
See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md
@tseaver

tseaver commented Aug 1, 2021

Copy link
Copy Markdown
Contributor Author

Ugh, OwlBot is restoring the 2.7 reference in the templated `scripts/readme-gen/templates/install_deps.tmpl.rst'. See googleapis/synthtool#1173.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver tseaver removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Aug 2, 2021
@tseaver
tseaver merged commit 181d706 into master Aug 2, 2021
@tseaver
tseaver deleted the 102-drop-python-2.7 branch August 2, 2021 18:54
This was referenced Aug 2, 2021
chore: release 2.0.0b1 #126
Merged
chore: release 2.0.0b1 #127
Closed
busunkim96 pushed a commit that referenced this pull request Aug 18, 2021
@release-please
chore: release 2.0.0 (#133)
1205758
🤖 I have created a release \*beep\* \*boop\*
---
## [2.0.0](https://www.github.com/googleapis/python-cloud-core/compare/v2.0.0-b1...v2.0.0) (2021-08-18)

### ⚠ BREAKING CHANGES

* drop python 2.7 support ([#103](https://www.github.com/googleapis/python-cloud-core/issues/103)) ([181d706](https://www.github.com/googleapis/python-cloud-core/commit/181d706e5b44d9d4189c21782551ce85c720d733)), closes [#102](https://www.github.com/googleapis/python-cloud-core/issues/102)

### Miscellaneous Chores

* trigger 2.0.0 release ([#128](https://www.github.com/googleapis/python-cloud-core/issues/128)) ([aead67a](https://www.github.com/googleapis/python-cloud-core/commit/aead67a1244306d518b8ab150e143e5a29e1ab6f))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@chrisrossi chrisrossi Awaiting requested review from chrisrossi
@crwilcox crwilcox Awaiting requested review from crwilcox
@jimfulton jimfulton Awaiting requested review from jimfulton
@busunkim96 busunkim96 Awaiting requested review from busunkim96
@parthea parthea Awaiting requested review from parthea
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

cla: yes This human has signed the Contributor License Agreement. semver: major Hint for users that this is an API breaking change.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Drop Python 2.7 support.

Uh oh!

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

3 participants

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