twilio / twilio-python

A Python module for communicating with the Twilio API and generating TwiML.
MIT License
1.83k stars 699 forks source link

chore: drop python<=3.7 support #783

Closed kloczek closed 3 months ago

kloczek commented 4 months ago

Checklist

tiwarishubham635 commented 4 months ago

Is this Python 3.7 has reached its EOL?

tiwarishubham635 commented 4 months ago

I think you should also remove testing against python 3.7 here

a-detiste commented 4 months ago

Do you still want to support 3.7 ?

https://bugs.python.org/issue45028

tiwarishubham635 commented 4 months ago

Do you still want to support 3.7 ?

https://bugs.python.org/issue45028

I mean we can remove it since its EOL, would need to remove it from test file as well

tiwarishubham635 commented 4 months ago

As this is an extension of #781, it states:

According to https://endoflife.date/python python 3.7 is EOSed since 27 Jun 2023. Filter all code over pyupgrade --py38.

However, since we want to maintain support for python>=3.8, shouldn't we use the flag --py38-plus?

kloczek commented 4 months ago

As this is an extension of #781, it states:

According to https://endoflife.date/python python 3.7 is EOSed since 27 Jun 2023. Filter all code over pyupgrade --py38.

However, since we want to maintain support for python>=3.8, shouldn't we use the flag --py38-plus?

It is an mistake in commit comment.

$ pyupgrade --help
usage: pyupgrade [-h] [--exit-zero-even-if-changed] [--keep-percent-format] [--keep-mock] [--keep-runtime-typing] [--py3-plus] [--py36-plus] [--py37-plus] [--py38-plus] [--py39-plus]
                 [--py310-plus] [--py311-plus] [--py312-plus]
                 [filenames ...]

positional arguments:
  filenames

options:
  -h, --help            show this help message and exit
  --exit-zero-even-if-changed
  --keep-percent-format
  --keep-mock
  --keep-runtime-typing
  --py3-plus, --py3-only
  --py36-plus
  --py37-plus
  --py38-plus
  --py39-plus
  --py310-plus
  --py311-plus
  --py312-plus
kloczek commented 4 months ago

However, since we want to maintain support for python>=3.8, shouldn't we use the flag --py38-plus?

That is exact option which I've used 😋

tiwarishubham635 commented 4 months ago

Cool. Please remove the python 3.7 from test file and then I can review.

kloczek commented 4 months ago

done

tiwarishubham635 commented 4 months ago

Hey @kloczek! There are some files in rest folder that are auto generated. For those files to reflect this change, we need to make changes in our generator repo. I'll do the same and update it here. Thanks!

kloczek commented 4 months ago

OK. No problem. I understand 😄 Just cancel this PR and do how it should be done 😋

tiwarishubham635 commented 3 months ago

I have created an internal ticket for this issue to be fixed. Thanks!

tiwarishubham635 commented 3 months ago

Closing this as not planned