- 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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| | @@ -9,7 +9,6 @@ jobs: | |
| fail-fast: false | ||
| matrix: | ||
| python-version: [ | ||
| 2.7, | ||
| 3.5, | ||
| 3.6, | ||
| 3.7, | ||
| | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| [tox] | ||
| envlist = py27,py35,py36,py37,py38,py39,pypy2 | ||
| Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we losing test coverage for pypy? Contributor Author There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it better to add Member There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. Member There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 Let's do this in a follow-up since this looks pre-existing anyway. cc: @joshthoward Contributor Author There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm... reverted. | ||
| envlist = py35,py36,py37,py38,py39 | ||
| | ||
| [testenv] | ||
| extras = tests | ||
| | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| | @@ -17,9 +17,6 @@ | |
| Fetch methods returns rows as a list of lists on purpose to let the caller | ||
| decide to convert then to a list of tuples. | ||
| """ | ||
| from __future__ import absolute_import | ||
| from __future__ import division | ||
| from __future__ import print_function | ||
| | ||
| from typing import Any, List, Optional # NOQA for mypy types | ||
| | ||
| | @@ -329,7 +326,7 @@ def _format_prepared_param(self, param): | |
| if isinstance(param, dict): | ||
| keys = list(param.keys()) | ||
| values = [param[key] for key in keys] | ||
| return "MAP(%s, %s)" % ( | ||
| return "MAP({}, {})".format( | ||
| Member There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. | ||
| self._format_prepared_param(keys), | ||
| self._format_prepared_param(values) | ||
| ) | ||
| | ||
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.
Uh oh!
There was an error while loading. Please reload this page.
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