-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: only require dataclases if python<3.7 #475
Conversation
requirements.txt
Outdated
@@ -1,9 +1,9 @@ | |||
click==7.1.2 | |||
google-api-core==1.20.1 | |||
google-api-core==1.21.0 |
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.
google-api-core==1.21.0 |
Codecov Report
@@ 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.
|
requirements.txt
Outdated
dataclasses==0.7; python_version < '3.7' |
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.
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!
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.
dataclasses==0.6; python_version < '3.7' |
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.
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)
The dataclasses package now only supports 3.6, which creates some weirdness with the requirements.txt requiring
0.7.0
.