From bc81e1f3b895af7ac5dbd84bfc2dfdf72d9042a3 Mon Sep 17 00:00:00 2001 From: gongcastro Date: Wed, 20 May 2026 14:44:20 +0200 Subject: [PATCH 1/6] Test in macOS runner --- .github/workflows/testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 370df66..dfcdde9 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -9,7 +9,7 @@ jobs: build: strategy: matrix: - os: [ubuntu-latest] + os: [ubuntu-latest, macos-latest] python-version: - "3.10" - "3.11" From 783430da65538c05265b5a934d02fef83511b55c Mon Sep 17 00:00:00 2001 From: gongcastro Date: Wed, 20 May 2026 14:58:29 +0200 Subject: [PATCH 2/6] Comment line 71 of Misc/common.h if on macOS --- bin/install.sh | 2 ++ docs/index.rst | 15 +-------------- docs/{user_guide => }/installation.rst | 0 3 files changed, 3 insertions(+), 14 deletions(-) rename docs/{user_guide => }/installation.rst (100%) diff --git a/bin/install.sh b/bin/install.sh index 9ddcc0d..58eec47 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -163,6 +163,8 @@ tar -xzf "${TEMP_DIR}/${FNAME}" -C "${TEMP_DIR}" || { exit 1 } +[[ $OSTYPE == 'darwin'* ]] && sed -i '' '70s/^/#/' ./Misc/common.h; + # Compile and install MBROLA cd "${TEMP_DIR}/MBROLA-${RELEASE}" || exit 1 if ! make; then diff --git a/docs/index.rst b/docs/index.rst index 8897bb7..f3b9d82 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -38,7 +38,7 @@ Requirements ============= - Python 3.10+ -- `MBROLA binary `_ installed and available in your system path +- `MBROLA binary `_ installed and available in your system path. - MBROLA voices (e.g., ``it4``) installed at ``/usr/share/mbrola//`` Installation @@ -66,19 +66,6 @@ Quick Start # Synthesize and save audio caffe.make_sound("caffe.wav", voice="it4") -Table of Contents -================== - -.. toctree:: - :maxdepth: 2 - - user_guide/index - examples/index - contributing - license - api/index - - References =========== diff --git a/docs/user_guide/installation.rst b/docs/installation.rst similarity index 100% rename from docs/user_guide/installation.rst rename to docs/installation.rst From 5e21d7f1f993c0f4cef35856d6f42401ccf9dbd7 Mon Sep 17 00:00:00 2001 From: gongcastro Date: Wed, 20 May 2026 15:00:32 +0200 Subject: [PATCH 3/6] Fix MBROLA dir in actions --- bin/install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/install.sh b/bin/install.sh index 58eec47..10a0202 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -163,10 +163,12 @@ tar -xzf "${TEMP_DIR}/${FNAME}" -C "${TEMP_DIR}" || { exit 1 } -[[ $OSTYPE == 'darwin'* ]] && sed -i '' '70s/^/#/' ./Misc/common.h; +readonly REPO="numediart/MBROLA" + +[[ $OSTYPE == 'darwin'* ]] && sed -i '' '70s/^/#/' $MBDIR/Misc/common.h; # Compile and install MBROLA -cd "${TEMP_DIR}/MBROLA-${RELEASE}" || exit 1 +cd $MBDIR || exit 1 if ! make; then echo "Error: Failed to compile MBROLA." >&2 exit 1 From 4f5afa53482bbb0ee2fa9dfe645a9f8d415e27db Mon Sep 17 00:00:00 2001 From: gongcastro Date: Wed, 20 May 2026 15:01:34 +0200 Subject: [PATCH 4/6] Fix step name in testing workflow --- .github/workflows/testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index dfcdde9..7b5859e 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -35,7 +35,7 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Analysing the code with pylint + - name: Linting with Ruff run: uv run --group dev ruff check - name: Installing MBROLA From 7ea50d46b0cc47a5148dd3b68235371195df41cf Mon Sep 17 00:00:00 2001 From: gongcastro Date: Wed, 20 May 2026 15:04:25 +0200 Subject: [PATCH 5/6] Fix MBROLA path --- bin/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/install.sh b/bin/install.sh index 10a0202..2a483a7 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -163,7 +163,7 @@ tar -xzf "${TEMP_DIR}/${FNAME}" -C "${TEMP_DIR}" || { exit 1 } -readonly REPO="numediart/MBROLA" +MBDIR="${TEMP_DIR}/MBROLA-${RELEASE}" [[ $OSTYPE == 'darwin'* ]] && sed -i '' '70s/^/#/' $MBDIR/Misc/common.h; From e195e75c868d666f89d28e652209a92212457965 Mon Sep 17 00:00:00 2001 From: gongcastro Date: Wed, 20 May 2026 15:15:18 +0200 Subject: [PATCH 6/6] Wait random time for cURL --- .github/workflows/testing.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 7b5859e..3e0a2ea 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -38,6 +38,9 @@ jobs: - name: Linting with Ruff run: uv run --group dev ruff check + - name: Wait random time to prevent permission issues in cURL + run: sleep $((random % 5)) + - name: Installing MBROLA run: sudo /bin/bash bin/install.sh -v it4