transcribe-cpp 0.5.0__tar.gz → 0.5.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/PKG-INFO +3 -3
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/_generate/check_version_sync.py +28 -7
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/pyproject.toml +3 -3
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/src/transcribe_cpp/__init__.py +1 -1
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/uv.lock +3 -3
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/.gitignore +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/LICENSE +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/README.md +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/_generate/README.md +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/_generate/generate.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/examples/stream_wav.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/examples/transcribe_wav.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/src/transcribe_cpp/_abi.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/src/transcribe_cpp/_generated.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/src/transcribe_cpp/_library.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/src/transcribe_cpp/errors.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/src/transcribe_cpp/py.typed +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/tests/conftest.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/tests/test_abi.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/tests/test_backends.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/tests/test_compute_lock.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/tests/test_device_select.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/tests/test_diarize.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/tests/test_errors.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/tests/test_example.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/tests/test_family_ext.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/tests/test_langid.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/tests/test_lifetime.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/tests/test_pcm.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/tests/test_prompting.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/tests/test_provider_discovery.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/tests/test_streaming.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/tests/test_text_controls.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/tests/test_transcribe.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/tests/test_turn.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/tests/test_utf8_paths.py +0 -0
- {transcribe_cpp-0.5.0 → transcribe_cpp-0.5.1}/tests/test_vad.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: transcribe-cpp
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: Python bindings for transcribe.cpp
|
|
5
5
|
Project-URL: Homepage, https://github.com/handy-computer/transcribe.cpp
|
|
6
6
|
Project-URL: Repository, https://github.com/handy-computer/transcribe.cpp
|
|
@@ -21,9 +21,9 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
21
21
|
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
|
|
22
22
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
23
23
|
Requires-Python: >=3.9
|
|
24
|
-
Requires-Dist: transcribe-cpp-native==0.5.
|
|
24
|
+
Requires-Dist: transcribe-cpp-native==0.5.1.*
|
|
25
25
|
Provides-Extra: cu12
|
|
26
|
-
Requires-Dist: transcribe-cpp-native-cu12==0.5.
|
|
26
|
+
Requires-Dist: transcribe-cpp-native-cu12==0.5.1.*; extra == 'cu12'
|
|
27
27
|
Provides-Extra: test
|
|
28
28
|
Requires-Dist: numpy; extra == 'test'
|
|
29
29
|
Requires-Dist: pytest>=7; extra == 'test'
|
|
@@ -10,9 +10,9 @@ against the *loaded* library at runtime; this script is the static, build-time
|
|
|
10
10
|
counterpart so a forgotten bump fails CI before anything is published.
|
|
11
11
|
|
|
12
12
|
This covers every §1b spot in ``notes/releasing.md`` — including the ones that
|
|
13
|
-
used to be §1c blind spots: the ``transcribe-cpp-sys``
|
|
14
|
-
``
|
|
15
|
-
``compiledVersion``. (Lockfile *internal* consistency — a stale lock silently
|
|
13
|
+
used to be §1c blind spots: the ``transcribe-cpp-sys`` and (exact)
|
|
14
|
+
``transcribe-cpp-types`` dependency *pins*, the three ``Cargo.lock`` entries,
|
|
15
|
+
both ``package-lock.json`` spots, and Swift ``compiledVersion``. (Lockfile *internal* consistency — a stale lock silently
|
|
16
16
|
rewritten by an unlocked command — is still the job of the locked-command
|
|
17
17
|
checks, ``cargo metadata --locked`` / ``npm ci``, run in release-preflight.)
|
|
18
18
|
|
|
@@ -39,6 +39,7 @@ PYPROJECT = REPO / "bindings" / "python" / "pyproject.toml"
|
|
|
39
39
|
INIT = REPO / "bindings" / "python" / "src" / "transcribe_cpp" / "__init__.py"
|
|
40
40
|
TS_PACKAGE_JSON = REPO / "bindings" / "typescript" / "package.json"
|
|
41
41
|
RUST_SAFE_CARGO = REPO / "bindings" / "rust" / "transcribe-cpp" / "Cargo.toml"
|
|
42
|
+
RUST_TYPES_CARGO = REPO / "bindings" / "rust" / "transcribe-cpp-types" / "Cargo.toml"
|
|
42
43
|
CARGO_LOCK = REPO / "Cargo.lock"
|
|
43
44
|
PACKAGE_LOCK = REPO / "bindings" / "typescript" / "package-lock.json"
|
|
44
45
|
SWIFT_SOURCE = REPO / "bindings" / "swift" / "Sources" / "TranscribeCpp" / "TranscribeCpp.swift"
|
|
@@ -55,9 +56,11 @@ BINDING_MANIFESTS = [
|
|
|
55
56
|
# The Rust crates are real (0.0.1), so they're version-locked. The sys
|
|
56
57
|
# crate's manifest is the repo-root Cargo.toml (it carries the whole C++
|
|
57
58
|
# tree); the safe wrapper is the sibling member at
|
|
58
|
-
# bindings/rust/transcribe-cpp
|
|
59
|
+
# bindings/rust/transcribe-cpp/, and its pure-Rust plain-data types crate
|
|
60
|
+
# at bindings/rust/transcribe-cpp-types/ (released in lockstep).
|
|
59
61
|
("Cargo.toml", "cargo", True),
|
|
60
62
|
("bindings/rust/transcribe-cpp/Cargo.toml", "cargo", True),
|
|
63
|
+
("bindings/rust/transcribe-cpp-types/Cargo.toml", "cargo", True),
|
|
61
64
|
("bindings/typescript/package.json", "npm", True),
|
|
62
65
|
]
|
|
63
66
|
|
|
@@ -143,13 +146,28 @@ def cargo_sys_pin(text: str) -> str | None:
|
|
|
143
146
|
return m.group(1) if m else None
|
|
144
147
|
|
|
145
148
|
|
|
149
|
+
def cargo_types_pin(text: str) -> str | None:
|
|
150
|
+
# The safe crate's dependency pin on the types crate. It must be EXACT
|
|
151
|
+
# (`=X.Y.Z`): transcribe-cpp's conversions of the types crate's
|
|
152
|
+
# #[non_exhaustive] enums are only complete for the lockstep version. A
|
|
153
|
+
# non-exact pin is reported as unlocatable (None), a hard error.
|
|
154
|
+
# transcribe-cpp-types = { version = "=X.Y.Z", path = "../transcribe-cpp-types" }
|
|
155
|
+
m = re.search(
|
|
156
|
+
r'transcribe-cpp-types\s*=\s*\{[^}]*?\bversion\s*=\s*"([^"]+)"', text
|
|
157
|
+
)
|
|
158
|
+
if not m:
|
|
159
|
+
return None
|
|
160
|
+
pin = m.group(1)
|
|
161
|
+
return pin[1:] if pin.startswith("=") and not pin.startswith("==") else None
|
|
162
|
+
|
|
163
|
+
|
|
146
164
|
def cargo_lock_versions(text: str) -> "dict[str, str | None]":
|
|
147
|
-
# The
|
|
165
|
+
# The three workspace crates pinned in Cargo.lock. cargo writes name then
|
|
148
166
|
# version on consecutive lines within each [[package]] block; the closing
|
|
149
167
|
# quote in the name match keeps "transcribe-cpp" from also matching
|
|
150
|
-
# "transcribe-cpp-sys".
|
|
168
|
+
# "transcribe-cpp-sys" / "transcribe-cpp-types".
|
|
151
169
|
out: dict[str, str | None] = {}
|
|
152
|
-
for name in ("transcribe-cpp", "transcribe-cpp-sys"):
|
|
170
|
+
for name in ("transcribe-cpp", "transcribe-cpp-sys", "transcribe-cpp-types"):
|
|
153
171
|
m = re.search(rf'name = "{re.escape(name)}"\nversion = "([^"]+)"', text)
|
|
154
172
|
out[f"Cargo.lock ({name})"] = m.group(1) if m else None
|
|
155
173
|
return out
|
|
@@ -193,6 +211,9 @@ def main() -> int:
|
|
|
193
211
|
sources["Cargo.toml (sys dep pin)"] = (
|
|
194
212
|
cargo_sys_pin(RUST_SAFE_CARGO.read_text()) if RUST_SAFE_CARGO.exists() else None
|
|
195
213
|
)
|
|
214
|
+
sources["Cargo.toml (types dep pin, exact)"] = (
|
|
215
|
+
cargo_types_pin(RUST_SAFE_CARGO.read_text()) if RUST_SAFE_CARGO.exists() else None
|
|
216
|
+
)
|
|
196
217
|
if CARGO_LOCK.exists():
|
|
197
218
|
sources.update(cargo_lock_versions(CARGO_LOCK.read_text()))
|
|
198
219
|
else:
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "transcribe-cpp"
|
|
7
|
-
version = "0.5.
|
|
7
|
+
version = "0.5.1"
|
|
8
8
|
description = "Python bindings for transcribe.cpp"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
# 3.8 is EOL (2024-10); 3.9 is the floor. The binding is ctypes-only, so there
|
|
@@ -34,13 +34,13 @@ classifiers = [
|
|
|
34
34
|
# packaging fix still resolves); the import-time version/header-hash check in
|
|
35
35
|
# _library.py is the runtime backstop. check_version_sync.py gates this pin
|
|
36
36
|
# against include/transcribe.h.
|
|
37
|
-
dependencies = ["transcribe-cpp-native==0.5.
|
|
37
|
+
dependencies = ["transcribe-cpp-native==0.5.1.*"]
|
|
38
38
|
|
|
39
39
|
[project.optional-dependencies]
|
|
40
40
|
# Opt-in accelerator providers — ADDITIVE: they install alongside the default
|
|
41
41
|
# provider and the best one wins at runtime. Same base-version pin contract
|
|
42
42
|
# as the hard dependency (gated by check_version_sync.py).
|
|
43
|
-
cu12 = ["transcribe-cpp-native-cu12==0.5.
|
|
43
|
+
cu12 = ["transcribe-cpp-native-cu12==0.5.1.*"]
|
|
44
44
|
# Test-only deps. Run with: uv run --extra test pytest (from bindings/python).
|
|
45
45
|
# numpy is here so the numpy PCM-input tests run in every lane instead of
|
|
46
46
|
# silently skipping wherever numpy happens to be absent.
|
|
@@ -55,7 +55,7 @@ from .errors import (
|
|
|
55
55
|
raise_for_status,
|
|
56
56
|
)
|
|
57
57
|
|
|
58
|
-
__version__ = "0.5.
|
|
58
|
+
__version__ = "0.5.1"
|
|
59
59
|
|
|
60
60
|
# String-enum types, exported so callers (and type checkers) can name them.
|
|
61
61
|
Backend = Literal["auto", "cpu", "metal", "vulkan", "cpu_accel", "cuda", "rocm"]
|
|
@@ -387,7 +387,7 @@ wheels = [
|
|
|
387
387
|
|
|
388
388
|
[[package]]
|
|
389
389
|
name = "transcribe-cpp"
|
|
390
|
-
version = "0.5.
|
|
390
|
+
version = "0.5.1"
|
|
391
391
|
source = { editable = "." }
|
|
392
392
|
|
|
393
393
|
[package.optional-dependencies]
|
|
@@ -403,8 +403,8 @@ test = [
|
|
|
403
403
|
requires-dist = [
|
|
404
404
|
{ name = "numpy", marker = "extra == 'test'" },
|
|
405
405
|
{ name = "pytest", marker = "extra == 'test'", specifier = ">=7" },
|
|
406
|
-
{ name = "transcribe-cpp-native", specifier = "==0.5.
|
|
407
|
-
{ name = "transcribe-cpp-native-cu12", marker = "extra == 'cu12'", specifier = "==0.5.
|
|
406
|
+
{ name = "transcribe-cpp-native", specifier = "==0.5.1.*" },
|
|
407
|
+
{ name = "transcribe-cpp-native-cu12", marker = "extra == 'cu12'", specifier = "==0.5.1.*" },
|
|
408
408
|
]
|
|
409
409
|
provides-extras = ["cu12", "test"]
|
|
410
410
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|