- Notifications
You must be signed in to change notification settings - Fork 196
Drop python2 support #70
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
Conversation
| matrix: | ||
| python-version: [ | ||
| 2.7, | ||
| 3.5, |
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.
Python 3.5 was reached end-of-life last year.
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.
Let's make a separate PR to remove 3.5 and merge it faster. I see no reason not to.
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.
Ok, reverted and send the pr to remove python3.5.
#71
| On-hold until discussion #4 (comment) is resolved. |
findepi left a comment
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.
(hold)
71faab2 to 6fe5a7a Compare | keys = list(param.keys()) | ||
| values = [param[key] for key in keys] | ||
| return "MAP(%s, %s)" % ( | ||
| return "MAP({}, {})".format( |
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.
Just as a note, when we drop support for 3.5 in the subsequent PR as discussed this could be replaced with an f-string instead.
ebyhr left a comment
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.
Looks good except for minor comment. Please update README too > "It supports Python 2.7..."
tox.ini Outdated
| @@ -1,5 +1,5 @@ | |||
| [tox] | |||
| envlist = py27,py35,py36,py37,py38,py39,pypy2 | |||
| envlist = py35,py36,py37,py38,py39,pypy2 | |||
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.
Can we remove pypy2?
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.
I think so. Removed.
ebyhr left a comment
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.
Could you squash commits and update README?
#70 (review)
| @ebyhr Modified README.md. PTAL. |
hashhar left a comment
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.
Looks good overall % removal of pypy test covarage.
| @@ -1,5 +1,5 @@ | |||
| [tox] | |||
| envlist = py27,py35,py36,py37,py38,py39,pypy2 | |||
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.
Are we losing test coverage for pypy?
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.
Is it better to add pypy35 or something to test with pypy3X?
https://github.com/tox-dev/tox/blob/69af6cdf168df4e82d6ce0f3d05571bd100418f9/docs/example/basic.rst
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.
It would surely be good to do that in this PR itself if the tests are passing.
If CI fails on pypy3x let's create an issue for the follow-up.
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.
Looks like we aren't using tox in CI and instead directly run pytest https://github.com/trinodb/trino-python-client/blob/master/.github/workflows/ci.yml#L31.
Let's do this in a follow-up since this looks pre-existing anyway.
cc: @joshthoward
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.
Hmm... reverted.
da6cfa0 to b7ee8fa Compare | Hey all! Just wanted to comment that the current pypy release is 3.7 (also supported by tox) & 3.8 is around the corner; 3.5 is quite old (and doesn't seem to make much sense in the face of #77) |
| Merged, thanks for your work! @yuokada |
Resolve #4