Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.8"
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/matrix-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,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@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.8"
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v6
with:
# Note: this is where we also test that the g2p library still works on 3.8
python-version: "3.8"
python-version: "3.9"
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true
Expand Down
4 changes: 2 additions & 2 deletions g2p/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
from g2p.exceptions import InvalidLanguageCode, NeuralDependencyError, NoPath
from g2p.shared_types import BaseTokenizer, BaseTransducer, Token

if sys.version_info < (3, 8): # pragma: no cover
if sys.version_info < (3, 9): # pragma: no cover
sys.exit(
"Python 3.8 or more recent is required by g2p.\n"
"Python 3.9 or more recent is required by g2p.\n"
f"You are using Python {sys.version}.\n"
"Please use a newer version of Python."
)
Expand Down
15 changes: 6 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dynamic = ["version"]
description = "Module for creating context-aware, rule-based G2P mappings that preserve indices"
readme = "README.md"
license = "MIT"
requires-python = ">= 3.8"
requires-python = ">= 3.9"
authors = [
{ name = "Aidan Pine", email = "hello@aidanpine.ca" },
{ name = "Eric Joanis", email = "eric.joanis@nrc-cnrc.gc.ca" },
Expand All @@ -23,7 +23,6 @@ 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",
Expand All @@ -49,15 +48,13 @@ api = [
"fastapi>=0.109.0",
"starlette>=0.40.0",
"python-socketio>=5.9.0",
"python-engineio<4.13; python_version < '3.9'",
"uvicorn",
"jinja2",
]
test = [
"g2p[api]",
"coverage[toml]>=6.5",
"playwright>=1.26.1,<1.46; python_version < '3.9'",
"playwright>=1.26.1; python_version >= '3.9'",
"playwright>=1.26.1",
"jsonschema>=4.17.3",
"pep440>=0.1.2",
"pytest",
Expand Down Expand Up @@ -91,9 +88,9 @@ neural = [
"g2p[deep-phonemizer]",
]
deep-phonemizer = [
"torch>=2.6.0,<2.10; python_version >= '3.9'",
"huggingface-hub>0.35.0; python_version >= '3.9'",
"ilt-deep-phonemizer>=0.0.23; python_version >= '3.9'",
"torch>=2.6.0,<2.10",
"huggingface-hub>0.35.0",
"ilt-deep-phonemizer>=0.0.23",
]

# cannot put g2p[prod] here because that would break windows compat
Expand Down Expand Up @@ -170,7 +167,7 @@ default-args = ["g2p/tests"]
features = ["test", "neural"]

[[tool.hatch.envs.test.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
python = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]

[tool.hatch.envs.test.scripts]
serve-cov = "coverage run run_studio.py"
Expand Down
Loading