18 Commits

Author SHA1 Message Date
Henry Schreiner
1aa1c6c7ce ci: try using uv with cibuildwheel (#14)
Seemed like a fitting repo to try `build[uv]` on. :)
2024-06-10 16:52:10 -04:00
Charlie Marsh
c99055cd84 Bump version to v0.0.3 0.0.3 2024-04-30 22:03:54 -07:00
Henry Schreiner
de815567ad feat: use scikit-build-core (#13)
This switches the build system to scikit-build-core and adds Windows
wheels (close #9 and close #12). It drops s390x because it's missing
from upstream and that causes it to be called x86:
8fac6455ff/CMakeLists.txt (L473-L474)
- the logic there should be changed to only add x86 specific flags if
x86 is detected, not to filter all known cases that are not x86. A very
recent version of CMake is required due to EXCLUDE_FROM_ALL, but
scikit-build-core handles requesting it if missing for you.

Tested locally with `pipx run build --installer=uv`. Checked contents
with `unzip -l dist/*.whl`. Validated pyproject.toml with `pipx run
validate-pyproject-schema-store[all] pyproject.toml -v`. Checked the
wheel with `pipx run --spec delocate delocate-listdeps
dist/whisper_cpp_cli-0.0.2-py3-none-macosx_14_0_x86_64.whl` (I had
`BUILD_SHARED_LIBS` set to `ON` for a bit, somehow thinking that would
build static libs when enabled...).

Since there's no pre-commit file, formatted CMakeLists.txt manually with
`pipx run cmake-format -I CMakeLists.txt`.

Adding the other features should just be setting cmake flags; core-ml
for example can be enabled by passing `-Ccmake.define.WHISPER_COREML=1`.
Similarly for WHISPER_CUDA, etc.

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
2024-04-30 21:53:25 -07:00
Charlie Marsh
35b8b6115e Use linux rather than manylinux or musllinux in tag (#11)
cibuildwheel will audit the wheel and add the appropriate Linux tags.
2024-04-28 20:20:24 -04:00
Charlie Marsh
c2ef7fd871 Move some cibuildwheel settings into pyproject.toml (#10) 2024-04-28 20:13:46 -04:00
Charlie Marsh
4ae8833c21 Bump version to 0.0.2 0.0.2 2024-04-27 19:09:58 -04:00
Charlie Marsh
b38360e46b Set MACOSX_DEPLOYMENT_TARGET in macOS builds (#8) 2024-04-27 19:09:41 -04:00
Charlie Marsh
20d17fe0ec Fix CLI reference in README 2024-04-27 18:58:38 -04:00
Charlie Marsh
fbf1336a19 Rename to whisper.cpp-cli for PyPI (#7)
Rename to whisper.cpp-cli for PyPI
0.0.1
2024-04-27 17:55:44 -04:00
Charlie Marsh
956cfe2f65 Use whisper-cpp rather than whisper as binary name (#6)
Use whisper-cpp rather than whisper as binary name
2024-04-27 17:18:08 -04:00
Charlie Marsh
9cfd00c383 Fix package sources for hatchling (#5) 2024-04-27 17:03:55 -04:00
Charlie Marsh
46f85b5fac Add version to README (#4) 2024-04-27 17:00:11 -04:00
Charlie Marsh
8a41cd497e Rename to whisper.cpp-py (#3) 2024-04-27 16:55:42 -04:00
Charlie Marsh
44a95eb638 Add a test command to cibuildwheel (#2) 2024-04-27 16:46:30 -04:00
Charlie Marsh
2b8ac1b01e Add wheel builds to CI (#1) 2024-04-27 16:40:45 -04:00
Charlie Marsh
8ef1d012ce Rename to whisper.cpp 2024-04-27 13:38:48 -04:00
Charlie Marsh
7d8100c631 Works with Hatch 2024-04-27 13:36:26 -04:00
Charlie Marsh
9d4a09dcd4 Try setuptools 2024-04-27 13:12:02 -04:00