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: only require dataclases if python<3.7 by busunkim96 · Pull Request #475 · googleapis/gapic-generator-python

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

Conversation

@busunkim96

@busunkim96 busunkim96 commented Jun 19, 2020

Copy link
Copy Markdown
Contributor

The dataclasses package now only supports 3.6, which creates some weirdness with the requirements.txt requiring 0.7.0.

Sorry, something went wrong.

Uh oh!

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

All reactions
@busunkim96
chore: explicitly require 3.7+
cdfbbc6
@busunkim96
busunkim96 requested a review from software-dov June 19, 2020 21:44
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 19, 2020
renovate-bot and others added 2 commits June 19, 2020 22:02
@renovate-bot @busunkim96
chore(deps): update dependency google-api-core to v1.21.0 (#473)
1f2a467
@busunkim96
fix: keep 3.6, but tweak requirements.txt
ef330f0
@busunkim96
busunkim96 force-pushed the require-3.7 branch from fefdb8f to ef330f0 Compare June 19, 2020 22:05
@busunkim96 busunkim96 changed the title fix: explicitly require 3.7+ fix: only require dataclases if python<3.7 Jun 19, 2020
@busunkim96
fix: restore missing extras_require
0efc9b3
busunkim96
busunkim96 commented Jun 19, 2020
View reviewed changes
Comment thread requirements.txt
@@ -1,9 +1,9 @@
click==7.1.2
google-api-core==1.20.1
google-api-core==1.21.0

@busunkim96 busunkim96 Jun 19, 2020

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.

Not sure why this is showing up in the diff, but this is already 1.21.0 in master.

gapic-generator-python/requirements.txt

Line 2 in ed244b3

google-api-core==1.21.0

Sorry, something went wrong.

Uh oh!

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

All reactions
@codecov

codecov Bot commented Jun 19, 2020 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Codecov Report

Merging #475 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #475   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           26        26           
  Lines         1466      1466           
  Branches       300       300           
=========================================
  Hits          1466      1466           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ed244b3...bd190f4. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

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

@busunkim96 busunkim96 mentioned this pull request Jun 20, 2020
pip_import fails with under python 3.7 #474
Closed
vam-google
vam-google reviewed Jun 20, 2020
View reviewed changes
Comment thread requirements.txt Outdated
pypandoc==1.5
PyYAML==5.3.1
dataclasses==0.7 No newline at end of file
dataclasses==0.7; python_version < '3.7' No newline at end of file

@vam-google vam-google Jun 20, 2020

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 should be 0.6 instead, otherwise it will fail bazel build.

Sorry, something went wrong.

Uh oh!

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

All reactions

@busunkim96 busunkim96 Jun 22, 2020

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!

Sorry, something went wrong.

Uh oh!

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

All reactions
@busunkim96
Update requirements.txt
73a076c
@busunkim96
busunkim96 requested a review from vam-google June 22, 2020 17:56
@busunkim96
Merge branch 'master' into require-3.7
f574f04
vam-google
vam-google approved these changes Jun 22, 2020
View reviewed changes

@vam-google vam-google 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.

LGTM, but please verify that bazel rules work with this.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread requirements.txt
pypandoc==1.5
PyYAML==5.3.1
dataclasses==0.7 No newline at end of file
dataclasses==0.6; python_version < '3.7'

@vam-google vam-google Jun 22, 2020

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.

LGTM, assuming this syntax is understood by bazel python rules properly (the python_version < '3.7' part). Note, requirements.txt is currently used only by bazel.

Sorry, something went wrong.

Uh oh!

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

All reactions

@alexander-fenster alexander-fenster Jun 23, 2020

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.

apparently it does not :( (or something else is wrong)

Sorry, something went wrong.

Uh oh!

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

All reactions
busunkim96 added 3 commits June 22, 2020 22:06
@busunkim96
fix: add pin to install_requires too
e69b927
@busunkim96
fix: try always using 0.6
07c6167
@busunkim96
fix: make dataclasses import conditional
bd190f4
@busunkim96
busunkim96 merged commit 9597695 into master Jun 23, 2020
@busunkim96
busunkim96 deleted the require-3.7 branch June 23, 2020 01:02
This was referenced Jan 18, 2022
chore(master): release reverted #1133
Merged
chore(master): release 0.39.1 #1146
Closed
This was referenced Jan 26, 2022
chore(main): release 0.39.1 #1160
Closed
chore(main): release 0.39.1 #1162
Closed
chore(main): release 0.61.0 #1163
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@software-dov software-dov Awaiting requested review from software-dov
2 more reviewers
@alexander-fenster alexander-fenster alexander-fenster left review comments
@vam-google vam-google vam-google 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.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

5 participants

@busunkim96 @alexander-fenster @vam-google @googlebot @renovate-bot
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.