From 490aa7f47c200f5a2cd062e7df3d92dc1d62387b Mon Sep 17 00:00:00 2001 From: Raivis Dejus Date: Tue, 16 Jul 2024 09:23:52 +0300 Subject: [PATCH] Fix for build failing to generate translation mo (#847) --- .github/workflows/ci.yml | 4 +--- Makefile | 3 ++- poetry.lock | 4 ++-- pyproject.toml | 4 ++-- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb62ad91..d0246c6f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,7 +98,6 @@ jobs: include: - os: macos-latest - os: windows-latest - - os: ubuntu-24.04 steps: - uses: actions/checkout@v4 with: @@ -255,10 +254,9 @@ jobs: virtualenvs-create: true virtualenvs-in-project: true - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: files: | - buzz-*.deb Buzz*-unix.tar.gz Buzz*-windows.exe Buzz*-mac.dmg diff --git a/Makefile b/Makefile index ca0709e8..6d2ce1eb 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,7 @@ endif clean: rm -f buzz/$(LIBWHISPER) rm -f buzz/whisper_cpp.py + rm -rf whisper.cpp/build || true rm -rf dist/* || true COVERAGE_THRESHOLD := 80 @@ -76,7 +77,7 @@ else cp whisper.cpp/build/$(LIBWHISPER) buzz || true endif -buzz/whisper_cpp.py: buzz/$(LIBWHISPER) +buzz/whisper_cpp.py: buzz/$(LIBWHISPER) translation_mo cd buzz && ctypesgen ../whisper.cpp/whisper.h -lwhisper -o whisper_cpp.py # Prints all the Mac developer identities used for code signing diff --git a/poetry.lock b/poetry.lock index 508f6418..81db88cd 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. [[package]] name = "altgraph" @@ -3400,4 +3400,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = ">=3.9.13,<3.13" -content-hash = "20c6a59e799f6f0cbafd3e9334694e90688088fd4d7755d35ef8f82fa158b704" +content-hash = "fcdb182782521a49b7eeeff8f6c92021c48709c8f0dcac14ad8879c62987bbbe" diff --git a/pyproject.toml b/pyproject.toml index 033d7dce..321d8b9a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,14 +45,14 @@ pylint = "^2.15.5" pre-commit = "^2.20.0" pytest-benchmark = "^4.0.0" ruff = "^0.1.3" -polib = "^1.2.0" [tool.poetry.group.build.dependencies] ctypesgen = "^1.1.1" cmake = "^3.26.4" +polib = "^1.2.0" [build-system] -requires = ["poetry-core", "ctypesgen", "setuptools", "cmake"] +requires = ["poetry-core", "ctypesgen", "setuptools", "cmake", "polib"] build-backend = "poetry.core.masonry.api" [tool.poetry.build]