Skip to content

Commit 0efb318

Browse files
authored
Merge pull request #787 from EveryVoiceTTS/dev.ej/relax-click
Make EveryVoice compatible with recent versions of click
2 parents 4c39155 + 4538096 commit 0efb318

6 files changed

Lines changed: 9 additions & 14 deletions

File tree

‎.github/workflows/matrix-tests.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626
cache: "pip"
27-
- uses: awalsh128/cache-apt-pkgs-action@2c09a5e66da6c8016428a2172bd76e5e4f14bb17 # v1.5.3
27+
- uses: awalsh128/cache-apt-pkgs-action@acb598e5ddbc6f68a970c5da0688d2f3a9f04d05 # v1.6.0
2828
with:
2929
packages: sox libsox-dev
3030
- uses: FedericoCarboni/setup-ffmpeg@583042d32dd1cabb8bd09df03bde06080da5c87c # v2
@@ -51,7 +51,7 @@ jobs:
5151
with:
5252
submodules: recursive
5353
- name: Set up conda
54-
uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
54+
uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
5555
with:
5656
python-version: ${{ matrix.python-version }}
5757
miniforge-version: latest

‎.github/workflows/test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@v6
2222
with:
2323
submodules: recursive
24-
- uses: awalsh128/cache-apt-pkgs-action@2c09a5e66da6c8016428a2172bd76e5e4f14bb17 # v1.5.3
24+
- uses: awalsh128/cache-apt-pkgs-action@acb598e5ddbc6f68a970c5da0688d2f3a9f04d05 # v1.6.0
2525
with:
2626
packages: sox libsox-dev
2727
- name: Verify SoX installation

‎everyvoice/tests/test_subsample.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ def test_error_validation(self):
8888
app, [str(self.metadata_path), str(self.wavs_path), "-d", "7", "-f", "txt"]
8989
)
9090
self.assertNotEqual(result.exit_code, 0)
91-
self.assertIn("Invalid value for", result.stdout)
91+
self.assertIn("Invalid value for", result.output)
9292
self.assertRegex(
93-
result.stdout,
93+
result.output,
9494
r"(?s)txt is not one of psv tsv csv festival".replace(" ", r".*"),
9595
)
9696

@@ -115,7 +115,7 @@ def test_error_validation(self):
115115

116116
self.assertNotEqual(result.exit_code, 0)
117117
self.assertRegex(
118-
result.stdout,
118+
result.output,
119119
r"Invalid value: Festival formatted files cannot have a speaker id.".replace(
120120
" ", r"[\s\S]*"
121121
),
@@ -137,7 +137,7 @@ def test_error_validation(self):
137137
)
138138
self.assertNotEqual(result.exit_code, 0)
139139
self.assertRegex(
140-
result.stdout,
140+
result.output,
141141
r"A \.wav file could not be found".replace(" ", r"[\s\S]*"),
142142
)
143143

‎pyproject.toml‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,7 @@ dependencies = [
4646
"clipdetect>=0.1.4",
4747
"deepdiff>=6.5.0",
4848
"anytree>=2.12.1",
49-
"click<8.2.0",
5049
"einops==0.5.0",
51-
# FastAPI 0.119.0 removes Pydantic v1 support but somehow breaks Pydantic 2.7 compatibility
52-
# We don't directly use fastapi but we indirectly depend on it through gradio and readalongs
53-
# and we need to pin it to avoid breaking loading EveryVoice models.
54-
"fastapi<0.119.0",
5550
"g2p>=2.3.1,<3",
5651
"gradio>=5.9.1",
5752
"grapheme>=0.6.0",

0 commit comments

Comments
 (0)