diff --git a/.github/workflows/matrix-tests.yml b/.github/workflows/matrix-tests.yml index c29ad6e8..d9a316d8 100644 --- a/.github/workflows/matrix-tests.yml +++ b/.github/workflows/matrix-tests.yml @@ -21,7 +21,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v6 diff --git a/README.md b/README.md index 54be845d..69966c0b 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ Optionally a book can be generated as a standalone HTML page, XHTML, Praat TextG ### The short version -Install [FFmpeg](https://ffmpeg.org/) and Python 3.8 or higher. +Install [FFmpeg](https://ffmpeg.org/) and Python 3.9 or higher. Run: @@ -72,7 +72,7 @@ Run: Before you can install the ReadAlong Studio, you will need to install these dependencies: - - Python, version 3.8 or higher, + - Python, version 3.9 or higher, - [FFmpeg](https://ffmpeg.org/), - a C compiler (sometimes required for some dependant libraries), - Git (optional, needed to get the current development version). diff --git a/pyproject.toml b/pyproject.toml index 53d7a437..8028d502 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "hatchling.build" [project] name = "readalongs" dynamic = ["version"] -requires-python = ">= 3.8" +requires-python = ">= 3.9" description = "ReadAlong Studio: Audiobook alignment for Indigenous languages" readme = "README.md" authors = [ @@ -26,12 +26,12 @@ classifiers = [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Topic :: Multimedia :: Sound/Audio :: Speech", "Typing :: Typed", ] diff --git a/readalongs/__init__.py b/readalongs/__init__.py index 08a96229..8ae054c2 100644 --- a/readalongs/__init__.py +++ b/readalongs/__init__.py @@ -10,8 +10,8 @@ import sys -if sys.version_info < (3, 8, 0): # pragma: no cover +if sys.version_info < (3, 9, 0): # pragma: no cover sys.exit( - f"Python 3.8 or more recent is required. You are using {sys.version}. " + f"Python 3.9 or more recent is required. You are using {sys.version}. " "Please use a newer version of Python." ) diff --git a/tests/test_g2p_cli.py b/tests/test_g2p_cli.py index a79e7a15..77f984f8 100755 --- a/tests/test_g2p_cli.py +++ b/tests/test_g2p_cli.py @@ -76,9 +76,10 @@ def test_mixed_langs(self): self.assertTrue(os.path.exists(g2p_file)) ref_file = os.path.join(self.data_dir, "mixed-langs.g2p.readalong") - with open(g2p_file, encoding="utf8") as output_f, open( - ref_file, encoding="utf8" - ) as ref_f: + with ( + open(g2p_file, encoding="utf8") as output_f, + open(ref_file, encoding="utf8") as ref_f, + ): self.maxDiff = None # update version info ref_list = list(ref_f) diff --git a/tests/test_make_xml_cli.py b/tests/test_make_xml_cli.py index aa18aafe..dbdc2996 100755 --- a/tests/test_make_xml_cli.py +++ b/tests/test_make_xml_cli.py @@ -95,9 +95,10 @@ def test_output_correct(self): self.assertEqual(results.exit_code, 0) ref_file = os.path.join(self.data_dir, "fra-prepared.readalong") - with open(xml_file, encoding="utf8") as output_f, open( - ref_file, encoding="utf8" - ) as ref_f: + with ( + open(xml_file, encoding="utf8") as output_f, + open(ref_file, encoding="utf8") as ref_f, + ): self.maxDiff = None # update version info ref_list = list(ref_f)