From edaca6a3ebe5cde475730a5d24c5ab5d8d594e85 Mon Sep 17 00:00:00 2001 From: Eric Joanis Date: Thu, 21 Mar 2024 10:34:40 -0400 Subject: [PATCH] build(deps)!: drop support for EOL Python 3.7 Python 3.7 support ended in July 2023, and package updates will no longer be published for it, so we won't be able to apply all CVE patches if we want to keep supporting Python 3.7. While there are good reasons to keep supporting Python 3.7 for g2p, there aren't for ReadAlongs/Studio: our CLI users have enough technical background to bump Python if need be, while the Studio-Web meets the requirements of our less technical users. BREAKING CHANGE: Python 3.7 is no longer supported --- .github/workflows/matrix-tests.yml | 4 ++-- .github/workflows/tests.yml | 4 ++-- .readthedocs.yml | 2 +- README.md | 2 +- readalongs/__init__.py | 4 ++-- setup.py | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/matrix-tests.yml b/.github/workflows/matrix-tests.yml index b5cdec1f..6fc31546 100644 --- a/.github/workflows/matrix-tests.yml +++ b/.github/workflows/matrix-tests.yml @@ -1,5 +1,5 @@ # This matrix testing is for versions not already exercised by tests.yml -# For regular pushes, we just test the baseline Python version, but when pushing +# For regular pushes, we just test the minimum Python version, but when pushing # to main or release, we want to exercise the full matrix. name: Run Matrix Tests on: @@ -10,7 +10,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12"] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 13693ad3..1aefc9e4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.7" + python-version: "3.8" cache: "pip" - name: Install Python dependencies @@ -89,7 +89,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.7" + python-version: "3.8" cache: "pip" - name: Install Python dependencies diff --git a/.readthedocs.yml b/.readthedocs.yml index ecbaa4bf..4660f296 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -3,7 +3,7 @@ version: 2 build: os: ubuntu-20.04 tools: - python: "3.7" + python: "3.8" jobs: post_install: - echo "Installing Studio itself in its current state" diff --git a/README.md b/README.md index a6f35b53..8f1b6113 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Optionally a book can be generated as a standalone HTML page, XHTML, Praat TextG Before you can install the ReadAlong Studio, you will need to install these dependencies: - - Python, version 3.7 or higher, + - Python, version 3.8 or higher, - [FFmpeg](https://ffmpeg.org/), - a C compiler, - Git (optional, needed to get the current development version). diff --git a/readalongs/__init__.py b/readalongs/__init__.py index a0503a40..20e3bcb6 100644 --- a/readalongs/__init__.py +++ b/readalongs/__init__.py @@ -12,8 +12,8 @@ VERSION = "1.0" -if sys.version_info < (3, 7, 0): # pragma: no cover +if sys.version_info < (3, 8, 0): # pragma: no cover sys.exit( - f"Python 3.7 or more recent is required. You are using {sys.version}. " + f"Python 3.8 or more recent is required. You are using {sys.version}. " "Please use a newer version of Python." ) diff --git a/setup.py b/setup.py index 6bb3ff1c..84dd4c10 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ setup( name="readalongs", license="MIT", - python_requires=">=3.7", + python_requires=">=3.8", version=VERSION, description="ReadAlong Studio", url="https://github.com/ReadAlongs/Studio",