From dd5664f0f44877124d03c5b94dc34af612beefed Mon Sep 17 00:00:00 2001 From: Alexandre Detiste Date: Thu, 4 Apr 2024 21:03:50 +0200 Subject: [PATCH] drop Python 3.7 support --- .github/workflows/test-and-deploy.yml | 2 +- Makefile | 2 +- README.md | 1 - UPGRADE.md | 3 ++- setup.py | 3 +-- tox.ini | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 9fdcf4c752..1e1c04d500 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -17,7 +17,7 @@ jobs: timeout-minutes: 20 strategy: matrix: - python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ] + python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ] steps: - name: Checkout twilio-python uses: actions/checkout@v3 diff --git a/Makefile b/Makefile index 72cabbcfb1..6d92539295 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY: clean install analysis test test-install test-docker develop docs docs-install prettier prettier-check venv: - @python --version || (echo "Python is not installed, Python 3.7+"; exit 1); + @python --version || (echo "Python is not installed, Python 3.8+"; exit 1); virtualenv --python=python venv install: venv diff --git a/README.md b/README.md index 50cc5509e1..46748d47a8 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,6 @@ The Python library documentation can be found [here][libdocs]. This library supports the following Python implementations: -- Python 3.7 - Python 3.8 - Python 3.9 - Python 3.10 diff --git a/UPGRADE.md b/UPGRADE.md index 03c196bf5b..fc25079938 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -16,7 +16,8 @@ We're pleased to inform you that version 9.0.0 adds support for the application/ - **Supported Python versions updated** - Dropped support for Python 3.6 ([#632](https://github.com/twilio/twilio-python/pull/632)) - - Python 3.7 is the new required minimum version to use twilio-python helper library + - Dropped support for Python 3.7 ([#783](https://github.com/twilio/twilio-python/pull/783)) + - Python 3.8 is the new required minimum version to use twilio-python helper library - **Deletion of TwiML Voice Deprecated Methods ([#643](https://github.com/twilio/twilio-python/pull/643))** - [``](https://www.twilio.com/docs/voice/twiml/refer) diff --git a/setup.py b/setup.py index 91945bfd86..ef6170af65 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ help_center="https://www.twilio.com/help/contact", url="https://github.com/twilio/twilio-python/", keywords=["twilio", "twiml"], - python_requires=">=3.7.0", + python_requires=">=3.8.0", install_requires=[ "requests >= 2.0.0", "PyJWT >= 2.0.0, < 3.0.0", @@ -34,7 +34,6 @@ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", diff --git a/tox.ini b/tox.ini index 7db6cfc6fc..5609ced40f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -env_list = py3{7,8,9,10,11}, pypy +env_list = py3{8,9,10,11}, pypy skip_missing_interpreters = true [testenv]