Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for Python 3.12 #634

Merged
merged 2 commits into from
Feb 10, 2025
Merged
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
26 changes: 25 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install dependencies and package
run: |
CUDA_TAG=cpu pip install -r requirements.torch.txt --find-links https://download.pytorch.org/whl/torch_stable.html
pip install -e .[dev] coverage
pip install -e .[dev]
- run: pip freeze
- run: pip list
- uses: tj-actions/changed-files@v45
Expand Down Expand Up @@ -96,3 +96,27 @@ jobs:
echo ""
! licensecheck --format csv 2> /dev/null | grep -v -E 'nvidia-|aiohappyeyeballs' | grep PROPRIETARY \
|| echo "The package(s) listed just above this line is/are potentially a problem."

matrix:
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: sudo apt-get update
- run: sudo apt-get install --fix-missing sox libsox-dev ffmpeg
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install dependencies and package
run: |
CUDA_TAG=cpu pip install -r requirements.torch.txt --find-links https://download.pytorch.org/whl/torch_stable.html
pip install -e .[dev]
- run: pip freeze
- run: pip list
- run: cd everyvoice && coverage run run_tests.py dev
3 changes: 3 additions & 0 deletions everyvoice/wizard/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ def __setitem__(self, key, value):
def __delitem__(self, key):
super().__delitem__(self.convert_key(key))

def get(self, key, default=None):
return super().get(self.convert_key(key), default)


class NodeMixinWithNavigation(NodeMixin):
"""A NodeMixin subclass that allows for navigation between siblings
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ maintainers = [
{ name = "Samuel Larkin", email = "[email protected]" },
]
readme = "README.md"
requires-python = ">=3.10, <3.12"
requires-python = ">=3.10, <3.13"
keywords = ["TTS", "CLI"]
classifiers = [
"Intended Audience :: Developers",
Expand All @@ -35,6 +35,7 @@ classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation",
"Programming Language :: Python",
"Programming Language :: Unix Shell",
Expand Down