Skip to content

Commit 70fa7aa

Browse files
Fix for wheels build (#1042)
Co-authored-by: Li Chenghao (李成浩) <94270615+Chenghao999@users.noreply.github.com>
1 parent 9921d61 commit 70fa7aa

File tree

3 files changed

+23
-17
lines changed

3 files changed

+23
-17
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ jobs:
226226
shell: bash
227227

228228
- name: Build wheels
229-
uses: pypa/cibuildwheel@v2.19.2
229+
uses: pypa/cibuildwheel@v2.22.0
230230
env:
231231
CIBW_ARCHS_WINDOWS: "auto"
232232
CIBW_ARCHS_MACOS: "universal2"

poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,31 @@ authors = [
66
{name = "Chidi Williams", email = "williamschidi1@gmail.com"}
77
]
88
readme = "README.md"
9+
license = { text = "MIT" }
10+
repository = "https://github.com/chidiwilliams/buzz"
11+
documentation = "https://chidiwilliams.github.io/buzz/docs"
912
requires-python = ">=3.9,<3.13"
13+
dynamic = [ "dependencies" ]
1014

11-
15+
[project.scripts]
16+
buzz = "buzz.buzz:main"
1217

1318
[tool.poetry]
14-
license = "MIT"
15-
include = [
16-
"buzz/libwhisper.*", "buzz/libwhisper-coreml.*", "buzz/*.dll", "buzz/whisper_cpp.py", "buzz/locale/*/LC_MESSAGES/buzz.mo",
17-
"buzz/dll_backup/*",
18-
]
19-
repository = "https://github.com/chidiwilliams/buzz"
2019
packages = [
2120
{ include = "buzz" },
2221
]
22+
include = [
23+
{ path = "buzz/libwhisper.*", format = ["sdist", "wheel"] },
24+
{ path = "buzz/libwhisper-coreml.*", format = ["sdist", "wheel"] },
25+
{ path = "buzz/*.dll", format = ["sdist", "wheel"] },
26+
{ path = "buzz/whisper_cpp.py", format = ["sdist", "wheel"] },
27+
{ path = "buzz/locale/*/LC_MESSAGES/buzz.mo", format = ["sdist", "wheel"] },
28+
{ path = "buzz/dll_backup/*", format = ["sdist", "wheel"] },
29+
]
30+
31+
[[tool.poetry.source]]
32+
name = "PyPI"
33+
priority = "primary"
2334

2435
[[tool.poetry.source]]
2536
name = "torch"
@@ -48,11 +59,11 @@ accelerate = "^1.0.1"
4859
polib = "^1.2.0"
4960
srt-equalizer = "^0.1.10"
5061
torch = [
51-
{version = "2.2.1", source = "pypi", markers = "sys_platform != 'win32' and sys_platform != 'msys'"},
62+
{version = "2.2.1", source = "PyPI", markers = "sys_platform != 'win32' and sys_platform != 'msys'"},
5263
{version = "2.2.1+cu121", source = "torch", markers = "sys_platform == 'win32' or sys_platform == 'msys'"},
5364
]
5465
torchaudio = [
55-
{version = "2.2.1", source = "pypi", markers = "sys_platform != 'win32' and sys_platform != 'msys'"},
66+
{version = "2.2.1", source = "PyPI", markers = "sys_platform != 'win32' and sys_platform != 'msys'"},
5667
{version = "2.2.1+cu121", source = "torch", markers = "sys_platform == 'win32' or sys_platform == 'msys'"},
5768
]
5869
darkdetect = "^0.8.0"
@@ -61,8 +72,6 @@ demucs = {git = "https://github.com/raivisdejus/demucs", rev = "27c6425"}
6172
[tool.poetry.group.dev.dependencies]
6273
autopep8 = "^1.7.0"
6374
pyinstaller = "^6.5.0"
64-
# Lock to 2023.11 to fix error in 2023.12:
65-
# AttributeError: module 'dataclasses' has no attribute '__version__'
6675
pyinstaller-hooks-contrib = "^2024.3"
6776
six = "^1.16.0"
6877
pytest = "^7.1.3"
@@ -81,15 +90,12 @@ cmake = "^3.26.4"
8190
polib = "^1.2.0"
8291

8392
[build-system]
84-
requires = ["poetry-core", "ctypesgen", "setuptools", "cmake", "polib"]
93+
requires = ["poetry-core>=2.0.0", "ctypesgen", "setuptools", "cmake", "polib"]
8594
build-backend = "poetry.core.masonry.api"
8695

8796
[tool.poetry.build]
8897
script = "build.py"
8998

90-
[tool.poetry.scripts]
91-
buzz = "buzz.buzz:main"
92-
9399
[tool.ruff]
94100
exclude = [
95101
"**/whisper.cpp",

0 commit comments

Comments
 (0)