Skip to content

Conversation

@yuokada
Copy link
Contributor

@yuokada yuokada commented Jan 15, 2021

Resolve #4

@cla-bot cla-bot bot added the cla-signed label Jan 15, 2021
matrix:
python-version: [
2.7,
3.5,
Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Contributor Author

@yuokada yuokada Jan 15, 2021

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

@findepi
Copy link
Member

findepi commented Jan 15, 2021

On-hold until discussion #4 (comment) is resolved.

Copy link
Member

@findepi findepi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(hold)

keys = list(param.keys())
values = [param[key] for key in keys]
return "MAP(%s, %s)" % (
return "MAP({}, {})".format(
Copy link
Member

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.

@joshthoward
Copy link
Member

@findepi, @electrum Can either of you guys merge this? I've got SQLAlchemy support held up on 2.7 and 3.5 deprecation.

Copy link
Member

@ebyhr ebyhr left a 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove pypy2?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so. Removed.

Copy link
Member

@ebyhr ebyhr left a 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)

@yuokada
Copy link
Contributor Author

yuokada commented Mar 24, 2021

@ebyhr Modified README.md. PTAL.

Copy link
Member

@hashhar hashhar left a 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
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

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.

Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... reverted.

@yuokada yuokada force-pushed the pyupgrade3 branch 2 times, most recently from da6cfa0 to b7ee8fa Compare March 24, 2021 04:53
@h-vetinari
Copy link

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)

@joshthoward
Copy link
Member

@findepi, @hashhar, @ebyhr Someone please merge 🙏

This PR has been through enough haha

@findepi findepi requested a review from ebyhr April 1, 2021 18:36
@ebyhr ebyhr merged commit 4c50265 into trinodb:master Apr 3, 2021
@ebyhr
Copy link
Member

ebyhr commented Apr 3, 2021

Merged, thanks for your work! @yuokada

@yuokada yuokada deleted the pyupgrade3 branch September 27, 2024 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

7 participants