Fix for wheels build (#1042)

Co-authored-by: Li Chenghao (李成浩) <94270615+Chenghao999@users.noreply.github.com>
This commit is contained in:
Raivis Dejus 2025-01-10 09:01:59 +02:00 committed by GitHub
commit 70fa7aa7f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 23 additions and 17 deletions

View file

@ -226,7 +226,7 @@ jobs:
shell: bash
- name: Build wheels
uses: pypa/cibuildwheel@v2.19.2
uses: pypa/cibuildwheel@v2.22.0
env:
CIBW_ARCHS_WINDOWS: "auto"
CIBW_ARCHS_MACOS: "universal2"

2
poetry.lock generated
View file

@ -4187,4 +4187,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p
[metadata]
lock-version = "2.1"
python-versions = ">=3.9,<3.13"
content-hash = "2cfea0570f9ee0d63ed65a354b85cc59f4c1628c024832e6a5b4dbd08b4ec299"
content-hash = "09d83f1e4f6030e1ef5f4ba043e45baec4f749b578473f76135d392d52f3e091"

View file

@ -6,20 +6,31 @@ authors = [
{name = "Chidi Williams", email = "williamschidi1@gmail.com"}
]
readme = "README.md"
license = { text = "MIT" }
repository = "https://github.com/chidiwilliams/buzz"
documentation = "https://chidiwilliams.github.io/buzz/docs"
requires-python = ">=3.9,<3.13"
dynamic = [ "dependencies" ]
[project.scripts]
buzz = "buzz.buzz:main"
[tool.poetry]
license = "MIT"
include = [
"buzz/libwhisper.*", "buzz/libwhisper-coreml.*", "buzz/*.dll", "buzz/whisper_cpp.py", "buzz/locale/*/LC_MESSAGES/buzz.mo",
"buzz/dll_backup/*",
]
repository = "https://github.com/chidiwilliams/buzz"
packages = [
{ include = "buzz" },
]
include = [
{ path = "buzz/libwhisper.*", format = ["sdist", "wheel"] },
{ path = "buzz/libwhisper-coreml.*", format = ["sdist", "wheel"] },
{ path = "buzz/*.dll", format = ["sdist", "wheel"] },
{ path = "buzz/whisper_cpp.py", format = ["sdist", "wheel"] },
{ path = "buzz/locale/*/LC_MESSAGES/buzz.mo", format = ["sdist", "wheel"] },
{ path = "buzz/dll_backup/*", format = ["sdist", "wheel"] },
]
[[tool.poetry.source]]
name = "PyPI"
priority = "primary"
[[tool.poetry.source]]
name = "torch"
@ -48,11 +59,11 @@ accelerate = "^1.0.1"
polib = "^1.2.0"
srt-equalizer = "^0.1.10"
torch = [
{version = "2.2.1", source = "pypi", markers = "sys_platform != 'win32' and sys_platform != 'msys'"},
{version = "2.2.1", source = "PyPI", markers = "sys_platform != 'win32' and sys_platform != 'msys'"},
{version = "2.2.1+cu121", source = "torch", markers = "sys_platform == 'win32' or sys_platform == 'msys'"},
]
torchaudio = [
{version = "2.2.1", source = "pypi", markers = "sys_platform != 'win32' and sys_platform != 'msys'"},
{version = "2.2.1", source = "PyPI", markers = "sys_platform != 'win32' and sys_platform != 'msys'"},
{version = "2.2.1+cu121", source = "torch", markers = "sys_platform == 'win32' or sys_platform == 'msys'"},
]
darkdetect = "^0.8.0"
@ -61,8 +72,6 @@ demucs = {git = "https://github.com/raivisdejus/demucs", rev = "27c6425"}
[tool.poetry.group.dev.dependencies]
autopep8 = "^1.7.0"
pyinstaller = "^6.5.0"
# Lock to 2023.11 to fix error in 2023.12:
# AttributeError: module 'dataclasses' has no attribute '__version__'
pyinstaller-hooks-contrib = "^2024.3"
six = "^1.16.0"
pytest = "^7.1.3"
@ -81,15 +90,12 @@ cmake = "^3.26.4"
polib = "^1.2.0"
[build-system]
requires = ["poetry-core", "ctypesgen", "setuptools", "cmake", "polib"]
requires = ["poetry-core>=2.0.0", "ctypesgen", "setuptools", "cmake", "polib"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.build]
script = "build.py"
[tool.poetry.scripts]
buzz = "buzz.buzz:main"
[tool.ruff]
exclude = [
"**/whisper.cpp",