pdf2mp3 2.0.0__tar.gz → 2.0.2__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.
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/CHANGELOG.md +33 -0
- pdf2mp3-2.0.2/CODE_OF_CONDUCT.md +14 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/CONTRIBUTING.md +40 -2
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/MANIFEST.in +0 -1
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/PKG-INFO +31 -30
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/README.md +21 -21
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/SECURITY.md +2 -1
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/docs/README.md +1 -1
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/docs/api.md +1 -1
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/docs/cli.md +4 -4
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/docs/local-demo.md +3 -1
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/docs/openai.md +2 -2
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/docs/quality-gates.md +14 -4
- pdf2mp3-2.0.2/docs/releasing.md +81 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/docs/support.md +8 -5
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/pdf2mp3/pdf2mp3.py +37 -28
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/pdf2mp3.egg-info/PKG-INFO +31 -30
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/pdf2mp3.egg-info/SOURCES.txt +1 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/pdf2mp3.egg-info/requires.txt +9 -8
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/pyproject.toml +6 -6
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/scripts/documentation_check.py +29 -5
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/scripts/package_check.py +17 -4
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/scripts/quality.py +5 -3
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/scripts/release_check.py +40 -1
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/tests/test_cli_v2.py +1 -1
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/tests/test_documentation.py +47 -6
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/tests/test_providers.py +58 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/tests/test_quality_checks.py +49 -0
- pdf2mp3-2.0.2/tests/test_release_source.py +69 -0
- pdf2mp3-2.0.0/CODE_OF_CONDUCT.md +0 -11
- pdf2mp3-2.0.0/docs/releasing.md +0 -35
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/LICENSE +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/docs/contracts.md +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/pdf2mp3/__init__.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/pdf2mp3/__main__.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/pdf2mp3/cli.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/pdf2mp3/openai_tts.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/pdf2mp3/text.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/pdf2mp3.egg-info/dependency_links.txt +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/pdf2mp3.egg-info/entry_points.txt +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/pdf2mp3.egg-info/top_level.txt +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/pytest.ini +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/requirements-dev.txt +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/requirements.txt +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/scripts/approved-licenses.json +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/scripts/create_demo_pdf.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/scripts/mutation-triage.json +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/scripts/network_guard.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/scripts/openai_check.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/scripts/performance_check.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/scripts/quality_checks.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/scripts/scan_secrets.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/setup.cfg +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/tests/conftest.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/tests/test_cli.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/tests/test_cli_contract.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/tests/test_demo.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/tests/test_integration.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/tests/test_lang.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/tests/test_network_guard.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/tests/test_openai_realtime.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/tests/test_text.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/tests/test_text_contract.py +0 -0
- {pdf2mp3-2.0.0 → pdf2mp3-2.0.2}/tests/test_tts.py +0 -0
|
@@ -4,6 +4,39 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [2.0.2] - 2026-11-16
|
|
10
|
+
### Fixed
|
|
11
|
+
- Fix pyttsx3 conversion on macOS by decoding AIFF audio and processing all
|
|
12
|
+
chunks in one speech loop.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- Allow PyObjC 13 for the optional pyttsx3 engine on macOS. Python 3.10
|
|
16
|
+
continues to resolve a compatible earlier version of PyObjC.
|
|
17
|
+
- Update the development-only tools to pip 26.3, pytest 9.2.0, pytest-asyncio
|
|
18
|
+
1.4.1.post1, ReportLab 5.1.0, Ruff 0.17.3, mypy 2.4.1, and mutmut 3.8.1.
|
|
19
|
+
- Update the Python setup action to 7.1.0 and refresh the pinned PyPI publishing
|
|
20
|
+
action.
|
|
21
|
+
|
|
22
|
+
## [2.0.1] - 2026-10-10
|
|
23
|
+
### Fixed
|
|
24
|
+
- Update the optional developer environment to pytest 9.1.1 and pytest-asyncio
|
|
25
|
+
1.4.0 together, resolving CVE-2025-71176 without a dependency conflict.
|
|
26
|
+
- Pin the developer installer to pip 26.2.1 and include development and installer
|
|
27
|
+
dependencies in the security gate. No vulnerability exemptions are added.
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
- Permit pdfminer.six 20260107 with its parser fixes; retain the secure minimum
|
|
31
|
+
version, Python 3.10+ support, CLI, exported API and narration defaults.
|
|
32
|
+
- Update checkout and artifact actions while preserving full commit SHA pins;
|
|
33
|
+
group related dependency proposals for compatible maintenance updates.
|
|
34
|
+
- Add contribution templates, ownership and maintainer-controlled integration
|
|
35
|
+
guidance while retaining the project's voluntary collaboration principles.
|
|
36
|
+
- Pin workflow actions to commit SHAs, prepare PyPI Trusted Publishing and require
|
|
37
|
+
release tags to identify the checked-out source already integrated into main.
|
|
38
|
+
- Add a stable aggregate CI result and weekly dependency update proposals.
|
|
39
|
+
|
|
7
40
|
## [2.0.0] - 2026-10-08
|
|
8
41
|
### Changed
|
|
9
42
|
- Store manual demo inputs/results under ignored `local/inputs/` and
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Code of Conduct
|
|
2
|
+
|
|
3
|
+
This project does **not** adopt a formal Code of Conduct.
|
|
4
|
+
|
|
5
|
+
We believe in personal responsibility, freedom of expression, and voluntary collaboration.
|
|
6
|
+
Contributors are expected to interact respectfully and handle disagreements as independent adults.
|
|
7
|
+
Discuss ideas and technical decisions on their merits, and allow room for different opinions.
|
|
8
|
+
|
|
9
|
+
There are no enforced community rules beyond the applicable law.
|
|
10
|
+
Participation is voluntary: everyone is free to disagree, fork the project under
|
|
11
|
+
its license, or step away. Contributions are welcome; accepting a contribution
|
|
12
|
+
remains a technical and maintenance decision for the maintainer.
|
|
13
|
+
|
|
14
|
+
For questions or direct, private contact: pdf2mp3@byraphaelmedeiros.com.
|
|
@@ -13,6 +13,7 @@ Install Python 3.12, FFmpeg and ffprobe, then from the repository root:
|
|
|
13
13
|
```bash
|
|
14
14
|
python3.12 -m venv .venv-dev
|
|
15
15
|
source .venv-dev/bin/activate
|
|
16
|
+
python -m pip install --upgrade 'pip>=26.2'
|
|
16
17
|
python -m pip install -r requirements-dev.txt
|
|
17
18
|
python -m pytest -q
|
|
18
19
|
python scripts/quality.py fast --base v1.0.0
|
|
@@ -52,11 +53,48 @@ review. Use Conventional Commits for authorized commits.
|
|
|
52
53
|
|
|
53
54
|
Open a pull request from your branch with the problem, resulting behavior,
|
|
54
55
|
commands actually run, outcomes and remaining limits. Report local checks, CI
|
|
55
|
-
and publication separately.
|
|
56
|
-
|
|
56
|
+
and publication separately. The maintainer controls integration into `main`,
|
|
57
|
+
release tags and package publication.
|
|
57
58
|
|
|
58
59
|
## Issues and security
|
|
59
60
|
|
|
60
61
|
For bugs, include the installed version, OS/Python/FFmpeg versions and minimal
|
|
61
62
|
synthetic reproduction. Do not attach confidential PDFs or document content.
|
|
62
63
|
Report vulnerabilities privately using [SECURITY.md](SECURITY.md).
|
|
64
|
+
|
|
65
|
+
## Collaboration and integration
|
|
66
|
+
|
|
67
|
+
Raphael Medeiros ([@byraphaelmedeiros](https://github.com/byraphaelmedeiros)) is
|
|
68
|
+
the sole maintainer with write access. Anyone can open an issue, fork the project,
|
|
69
|
+
propose a pull request or review a change. These activities do not grant merge
|
|
70
|
+
or release permissions. Discuss substantial API, dependency or design changes
|
|
71
|
+
in an issue before implementing them.
|
|
72
|
+
|
|
73
|
+
Create a focused branch in your fork and open a PR against `main`. Use a
|
|
74
|
+
Conventional Commit style PR title, such as `fix: handle empty documents`.
|
|
75
|
+
Keep the PR current with `main`, respond to review and resolve conversations.
|
|
76
|
+
The maintainer manually squash-merges after all required checks succeed;
|
|
77
|
+
automatic merging is disabled. Branches in this repository are deleted after
|
|
78
|
+
merge, while contributors manage their own fork branches. `main` is the only
|
|
79
|
+
permanent development branch.
|
|
80
|
+
|
|
81
|
+
Required approval count is zero while there is only one maintainer, because a
|
|
82
|
+
PR author cannot approve their own PR. Write permissions still limit merging to
|
|
83
|
+
the maintainer. `CODEOWNERS` requests their review and does not grant anyone
|
|
84
|
+
access. Revisit required approvals if another maintainer receives write access.
|
|
85
|
+
|
|
86
|
+
Release tags and PyPI publication are separate maintainer actions. The `pypi`
|
|
87
|
+
environment requires the maintainer's manual approval; see [releasing](docs/releasing.md).
|
|
88
|
+
Dependency bots propose changes through PRs and never merge or release them.
|
|
89
|
+
Related development dependencies and workflow actions are grouped so compatibility
|
|
90
|
+
changes can be reviewed together. Review major runtime dependency updates separately.
|
|
91
|
+
When combining or replacing proposals, link the tested replacement before closing
|
|
92
|
+
superseded PRs; an open proposal with a clear next step is normal maintenance.
|
|
93
|
+
External fork workflows require maintainer approval before running. The
|
|
94
|
+
maintainer should inspect workflow and executable changes before approving a run.
|
|
95
|
+
|
|
96
|
+
For triage, use the existing bug, enhancement, documentation and question labels;
|
|
97
|
+
mark well-scoped newcomer tasks with `good first issue` only when guidance is
|
|
98
|
+
available. Link fixes to issues and credit contributions through Git history and
|
|
99
|
+
PR discussion. If a fix already shipped through another change, explain that
|
|
100
|
+
with links before closing the superseded PR.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pdf2mp3
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: Convert PDFs to MP3 audiobooks using Microsoft Edge neural voices.
|
|
5
5
|
Author-email: Raphael Medeiros <pdf2mp3@byraphaelmedeiros.com>
|
|
6
6
|
Maintainer-email: Raphael Medeiros <pdf2mp3@byraphaelmedeiros.com>
|
|
@@ -10,7 +10,7 @@ Project-URL: Bug Tracker, https://github.com/byraphaelmedeiros/pdf2mp3/issues
|
|
|
10
10
|
Requires-Python: >=3.10
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
License-File: LICENSE
|
|
13
|
-
Requires-Dist: pdfminer.six<
|
|
13
|
+
Requires-Dist: pdfminer.six<20260108,>=20251230
|
|
14
14
|
Requires-Dist: edge-tts<8.0.0,>=7.2.3
|
|
15
15
|
Requires-Dist: pydub<0.26.0,>=0.25.1
|
|
16
16
|
Requires-Dist: tqdm<5.0.0,>=4.67.1
|
|
@@ -21,22 +21,23 @@ Provides-Extra: openai
|
|
|
21
21
|
Requires-Dist: openai[realtime]<4,>=3.26.1; extra == "openai"
|
|
22
22
|
Provides-Extra: pyttsx3
|
|
23
23
|
Requires-Dist: pyttsx3<3,>=2.90; extra == "pyttsx3"
|
|
24
|
-
Requires-Dist: pyobjc<
|
|
24
|
+
Requires-Dist: pyobjc<14,>=10.3.1; sys_platform == "darwin" and extra == "pyttsx3"
|
|
25
25
|
Provides-Extra: dev
|
|
26
|
-
Requires-Dist:
|
|
27
|
-
Requires-Dist: pytest
|
|
28
|
-
Requires-Dist:
|
|
26
|
+
Requires-Dist: pip==26.3; extra == "dev"
|
|
27
|
+
Requires-Dist: pytest==9.2.0; extra == "dev"
|
|
28
|
+
Requires-Dist: pytest-asyncio==1.4.1.post1; extra == "dev"
|
|
29
|
+
Requires-Dist: reportlab==5.1.0; extra == "dev"
|
|
29
30
|
Requires-Dist: pytest-socket==0.8.1; extra == "dev"
|
|
30
31
|
Requires-Dist: pytest-timeout==2.4.0; extra == "dev"
|
|
31
32
|
Requires-Dist: hypothesis==6.168.5; extra == "dev"
|
|
32
33
|
Requires-Dist: coverage==7.16.2; extra == "dev"
|
|
33
|
-
Requires-Dist: ruff==0.
|
|
34
|
-
Requires-Dist: mypy==2.4.
|
|
34
|
+
Requires-Dist: ruff==0.17.3; extra == "dev"
|
|
35
|
+
Requires-Dist: mypy==2.4.1; extra == "dev"
|
|
35
36
|
Requires-Dist: bandit==1.9.4; extra == "dev"
|
|
36
37
|
Requires-Dist: detect-secrets==1.5.0; extra == "dev"
|
|
37
38
|
Requires-Dist: pip-audit==2.10.1; extra == "dev"
|
|
38
39
|
Requires-Dist: pip-licenses==5.5.5; extra == "dev"
|
|
39
|
-
Requires-Dist: mutmut==3.8.
|
|
40
|
+
Requires-Dist: mutmut==3.8.1; sys_platform != "win32" and extra == "dev"
|
|
40
41
|
Requires-Dist: build==1.6.1; extra == "dev"
|
|
41
42
|
Requires-Dist: twine==7.0.0; extra == "dev"
|
|
42
43
|
Dynamic: license-file
|
|
@@ -44,7 +45,7 @@ Dynamic: license-file
|
|
|
44
45
|
# PDF2MP3 — Listen to text-based PDFs
|
|
45
46
|
|
|
46
47
|
[](https://pypi.org/project/pdf2mp3/)
|
|
47
|
-
[](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
48
|
+
[](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/LICENSE)
|
|
48
49
|
[](https://github.com/byraphaelmedeiros/pdf2mp3/actions)
|
|
49
50
|
|
|
50
51
|
PDF2MP3 is a Python command-line tool that turns the readable text in a PDF into
|
|
@@ -62,16 +63,16 @@ service; complex layouts may need preparation before conversion.
|
|
|
62
63
|
> not include document snippets. Only use documents whose contents you are
|
|
63
64
|
> permitted and comfortable to send to the selected provider.
|
|
64
65
|
|
|
65
|
-
Version **2
|
|
66
|
+
Version **2** introduces a redesigned CLI. The conversion and check examples
|
|
66
67
|
below require version 2. Version 1.0.0 uses `pdf2mp3 sample.pdf`, without
|
|
67
68
|
subcommands or JSON. See the
|
|
68
|
-
[CLI contract](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
69
|
+
[CLI contract](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/cli.md) and [quality gates](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/quality-gates.md).
|
|
69
70
|
|
|
70
71
|
## Requirements
|
|
71
72
|
|
|
72
73
|
- **Python 3.10+.** The configured test matrix covers 3.10–3.14. Version 2
|
|
73
74
|
includes a conditional audioop compatibility dependency for Python 3.13+.
|
|
74
|
-
See [support details](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
75
|
+
See [support details](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/support.md), including version 1.0.0's limits.
|
|
75
76
|
- **FFmpeg**, including `ffprobe`, must be available on your `PATH` for audio
|
|
76
77
|
decoding and MP3 export. Installing the Python package does not install FFmpeg.
|
|
77
78
|
- **An internet connection** is required for the default Edge voice service.
|
|
@@ -130,7 +131,7 @@ With the environment activated:
|
|
|
130
131
|
|
|
131
132
|
```bash
|
|
132
133
|
python -m pip install --upgrade pip
|
|
133
|
-
python -m pip install pdf2mp3==2.0.
|
|
134
|
+
python -m pip install pdf2mp3==2.0.2
|
|
134
135
|
pdf2mp3 --version
|
|
135
136
|
pdf2mp3 --help
|
|
136
137
|
python -m pdf2mp3 --help
|
|
@@ -138,9 +139,9 @@ python -m pdf2mp3 --help
|
|
|
138
139
|
|
|
139
140
|
Both commands invoke the same CLI. The console command is installed through
|
|
140
141
|
`pyproject.toml`; module execution is provided by `pdf2mp3/__main__.py`.
|
|
141
|
-
Confirm that `--version` reports `2.0.
|
|
142
|
+
Confirm that `--version` reports `2.0.2` before using these examples. Upgrading
|
|
142
143
|
from version 1 requires the new `convert`/`check` syntax. Follow the
|
|
143
|
-
[CLI migration contract](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
144
|
+
[CLI migration contract](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/cli.md) when updating existing scripts.
|
|
144
145
|
|
|
145
146
|
If `pdf2mp3` is not found, activate the environment where you installed it or use
|
|
146
147
|
`python -m pdf2mp3` with that environment's Python interpreter.
|
|
@@ -196,21 +197,21 @@ output names when trying several examples on the same sample.
|
|
|
196
197
|
| `-h`, `--help` | Display help (`convert --help` for provider options) | — |
|
|
197
198
|
|
|
198
199
|
Version 2 also provides optional gTTS, OpenAI, pyttsx3 and macOS `say` adapters. See
|
|
199
|
-
[provider installation and requirements](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
200
|
+
[provider installation and requirements](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/support.md) before using them.
|
|
200
201
|
Remote adapters send text to their respective services; OpenAI requires an API
|
|
201
202
|
key and may incur charges. Local adapters depend on installed system voices.
|
|
202
203
|
Automated adapter tests use synthetic responses and do not certify live voice availability.
|
|
203
204
|
The OpenAI adapter now uses Realtime with `gpt-realtime-2.1-mini`, receives PCM
|
|
204
205
|
and encodes MP3 locally. It rejects incomplete responses or changed narration
|
|
205
|
-
transcripts. See [OpenAI setup, limitations and migration](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
206
|
+
transcripts. See [OpenAI setup, limitations and migration](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/openai.md);
|
|
206
207
|
this integration has offline evidence, not live API validation.
|
|
207
208
|
The gTTS extra retains a Click version constraint and a
|
|
208
|
-
[historical, now withdrawn security advisory](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
209
|
+
[historical, now withdrawn security advisory](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/SECURITY.md#known-development-dependency-finding).
|
|
209
210
|
Current audits no longer report it; no dependency override or security exemption is used.
|
|
210
211
|
Use `convert --help` to inspect provider options. `--voice` selects Edge,
|
|
211
212
|
OpenAI or local voices; `--model` applies only to OpenAI. gTTS uses `--lang`.
|
|
212
213
|
Irrelevant provider options are rejected before processing. See
|
|
213
|
-
[the CLI contract](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
214
|
+
[the CLI contract](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/cli.md) for stable exit codes and migration details.
|
|
214
215
|
|
|
215
216
|
## Check before converting
|
|
216
217
|
|
|
@@ -224,7 +225,7 @@ does not synthesize speech, contact voice services or write files. It reports
|
|
|
224
225
|
configuration, text/chunk counts and whether conversion would send text
|
|
225
226
|
externally. Passing this check does not establish remote voice availability or
|
|
226
227
|
valid credentials. `--json` works before or after either subcommand; progress
|
|
227
|
-
and diagnostics go to stderr. See [
|
|
228
|
+
and diagnostics go to stderr. See the [CLI guide](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/cli.md).
|
|
228
229
|
|
|
229
230
|
## Limits and troubleshooting
|
|
230
231
|
|
|
@@ -250,7 +251,7 @@ To install the release source, create and activate a separate Python 3.12
|
|
|
250
251
|
environment as above, then:
|
|
251
252
|
|
|
252
253
|
```bash
|
|
253
|
-
git clone --branch v2.0.
|
|
254
|
+
git clone --branch v2.0.2 https://github.com/byraphaelmedeiros/pdf2mp3.git
|
|
254
255
|
cd pdf2mp3
|
|
255
256
|
python -m pip install .
|
|
256
257
|
pdf2mp3 --help
|
|
@@ -260,7 +261,7 @@ python -m pdf2mp3 --help
|
|
|
260
261
|
`python -m pip install .` installs the package and its declared base dependencies.
|
|
261
262
|
The repository's requirement files now delegate to that same package metadata;
|
|
262
263
|
`requirements-dev.txt` also installs the pinned QA tools.
|
|
263
|
-
For contributor setup, see [CONTRIBUTING.md](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
264
|
+
For contributor setup, see [CONTRIBUTING.md](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/CONTRIBUTING.md).
|
|
264
265
|
|
|
265
266
|
### Try the synthetic demo
|
|
266
267
|
|
|
@@ -276,17 +277,17 @@ pdf2mp3 convert local/inputs/demo.pdf --output local/outputs/demo-edge.mp3
|
|
|
276
277
|
The first command creates `local/inputs/demo.pdf` with synthetic Brazilian Portuguese text;
|
|
277
278
|
it refuses to replace an existing file. The conversion sends only this sample
|
|
278
279
|
text to the external Edge service. For an English sample, macOS offline speech
|
|
279
|
-
and Windows validation steps, see [the local demo guide](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
280
|
+
and Windows validation steps, see [the local demo guide](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/local-demo.md).
|
|
280
281
|
Generated demo PDFs and MP3s stay local and are ignored by Git.
|
|
281
282
|
|
|
282
283
|
## Project information
|
|
283
284
|
|
|
284
|
-
- [Documentation](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
285
|
-
- [Python API reference](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
286
|
-
- [Changelog](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
287
|
-
- [Contributing](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
288
|
-
- [Security policy](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
285
|
+
- [Documentation](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/README.md)
|
|
286
|
+
- [Python API reference](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/api.md)
|
|
287
|
+
- [Changelog](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/CHANGELOG.md)
|
|
288
|
+
- [Contributing](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/CONTRIBUTING.md) and [Code of Conduct](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/CODE_OF_CONDUCT.md)
|
|
289
|
+
- [Security policy](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/SECURITY.md): report vulnerabilities privately to
|
|
289
290
|
**pdf2mp3@byraphaelmedeiros.com**.
|
|
290
|
-
- [MIT license](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
291
|
+
- [MIT license](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/LICENSE)
|
|
291
292
|
|
|
292
293
|
Maintained by [Raphael Medeiros](https://github.com/byraphaelmedeiros).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# PDF2MP3 — Listen to text-based PDFs
|
|
2
2
|
|
|
3
3
|
[](https://pypi.org/project/pdf2mp3/)
|
|
4
|
-
[](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
4
|
+
[](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/LICENSE)
|
|
5
5
|
[](https://github.com/byraphaelmedeiros/pdf2mp3/actions)
|
|
6
6
|
|
|
7
7
|
PDF2MP3 is a Python command-line tool that turns the readable text in a PDF into
|
|
@@ -19,16 +19,16 @@ service; complex layouts may need preparation before conversion.
|
|
|
19
19
|
> not include document snippets. Only use documents whose contents you are
|
|
20
20
|
> permitted and comfortable to send to the selected provider.
|
|
21
21
|
|
|
22
|
-
Version **2
|
|
22
|
+
Version **2** introduces a redesigned CLI. The conversion and check examples
|
|
23
23
|
below require version 2. Version 1.0.0 uses `pdf2mp3 sample.pdf`, without
|
|
24
24
|
subcommands or JSON. See the
|
|
25
|
-
[CLI contract](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
25
|
+
[CLI contract](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/cli.md) and [quality gates](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/quality-gates.md).
|
|
26
26
|
|
|
27
27
|
## Requirements
|
|
28
28
|
|
|
29
29
|
- **Python 3.10+.** The configured test matrix covers 3.10–3.14. Version 2
|
|
30
30
|
includes a conditional audioop compatibility dependency for Python 3.13+.
|
|
31
|
-
See [support details](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
31
|
+
See [support details](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/support.md), including version 1.0.0's limits.
|
|
32
32
|
- **FFmpeg**, including `ffprobe`, must be available on your `PATH` for audio
|
|
33
33
|
decoding and MP3 export. Installing the Python package does not install FFmpeg.
|
|
34
34
|
- **An internet connection** is required for the default Edge voice service.
|
|
@@ -87,7 +87,7 @@ With the environment activated:
|
|
|
87
87
|
|
|
88
88
|
```bash
|
|
89
89
|
python -m pip install --upgrade pip
|
|
90
|
-
python -m pip install pdf2mp3==2.0.
|
|
90
|
+
python -m pip install pdf2mp3==2.0.2
|
|
91
91
|
pdf2mp3 --version
|
|
92
92
|
pdf2mp3 --help
|
|
93
93
|
python -m pdf2mp3 --help
|
|
@@ -95,9 +95,9 @@ python -m pdf2mp3 --help
|
|
|
95
95
|
|
|
96
96
|
Both commands invoke the same CLI. The console command is installed through
|
|
97
97
|
`pyproject.toml`; module execution is provided by `pdf2mp3/__main__.py`.
|
|
98
|
-
Confirm that `--version` reports `2.0.
|
|
98
|
+
Confirm that `--version` reports `2.0.2` before using these examples. Upgrading
|
|
99
99
|
from version 1 requires the new `convert`/`check` syntax. Follow the
|
|
100
|
-
[CLI migration contract](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
100
|
+
[CLI migration contract](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/cli.md) when updating existing scripts.
|
|
101
101
|
|
|
102
102
|
If `pdf2mp3` is not found, activate the environment where you installed it or use
|
|
103
103
|
`python -m pdf2mp3` with that environment's Python interpreter.
|
|
@@ -153,21 +153,21 @@ output names when trying several examples on the same sample.
|
|
|
153
153
|
| `-h`, `--help` | Display help (`convert --help` for provider options) | — |
|
|
154
154
|
|
|
155
155
|
Version 2 also provides optional gTTS, OpenAI, pyttsx3 and macOS `say` adapters. See
|
|
156
|
-
[provider installation and requirements](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
156
|
+
[provider installation and requirements](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/support.md) before using them.
|
|
157
157
|
Remote adapters send text to their respective services; OpenAI requires an API
|
|
158
158
|
key and may incur charges. Local adapters depend on installed system voices.
|
|
159
159
|
Automated adapter tests use synthetic responses and do not certify live voice availability.
|
|
160
160
|
The OpenAI adapter now uses Realtime with `gpt-realtime-2.1-mini`, receives PCM
|
|
161
161
|
and encodes MP3 locally. It rejects incomplete responses or changed narration
|
|
162
|
-
transcripts. See [OpenAI setup, limitations and migration](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
162
|
+
transcripts. See [OpenAI setup, limitations and migration](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/openai.md);
|
|
163
163
|
this integration has offline evidence, not live API validation.
|
|
164
164
|
The gTTS extra retains a Click version constraint and a
|
|
165
|
-
[historical, now withdrawn security advisory](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
165
|
+
[historical, now withdrawn security advisory](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/SECURITY.md#known-development-dependency-finding).
|
|
166
166
|
Current audits no longer report it; no dependency override or security exemption is used.
|
|
167
167
|
Use `convert --help` to inspect provider options. `--voice` selects Edge,
|
|
168
168
|
OpenAI or local voices; `--model` applies only to OpenAI. gTTS uses `--lang`.
|
|
169
169
|
Irrelevant provider options are rejected before processing. See
|
|
170
|
-
[the CLI contract](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
170
|
+
[the CLI contract](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/cli.md) for stable exit codes and migration details.
|
|
171
171
|
|
|
172
172
|
## Check before converting
|
|
173
173
|
|
|
@@ -181,7 +181,7 @@ does not synthesize speech, contact voice services or write files. It reports
|
|
|
181
181
|
configuration, text/chunk counts and whether conversion would send text
|
|
182
182
|
externally. Passing this check does not establish remote voice availability or
|
|
183
183
|
valid credentials. `--json` works before or after either subcommand; progress
|
|
184
|
-
and diagnostics go to stderr. See [
|
|
184
|
+
and diagnostics go to stderr. See the [CLI guide](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/cli.md).
|
|
185
185
|
|
|
186
186
|
## Limits and troubleshooting
|
|
187
187
|
|
|
@@ -207,7 +207,7 @@ To install the release source, create and activate a separate Python 3.12
|
|
|
207
207
|
environment as above, then:
|
|
208
208
|
|
|
209
209
|
```bash
|
|
210
|
-
git clone --branch v2.0.
|
|
210
|
+
git clone --branch v2.0.2 https://github.com/byraphaelmedeiros/pdf2mp3.git
|
|
211
211
|
cd pdf2mp3
|
|
212
212
|
python -m pip install .
|
|
213
213
|
pdf2mp3 --help
|
|
@@ -217,7 +217,7 @@ python -m pdf2mp3 --help
|
|
|
217
217
|
`python -m pip install .` installs the package and its declared base dependencies.
|
|
218
218
|
The repository's requirement files now delegate to that same package metadata;
|
|
219
219
|
`requirements-dev.txt` also installs the pinned QA tools.
|
|
220
|
-
For contributor setup, see [CONTRIBUTING.md](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
220
|
+
For contributor setup, see [CONTRIBUTING.md](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/CONTRIBUTING.md).
|
|
221
221
|
|
|
222
222
|
### Try the synthetic demo
|
|
223
223
|
|
|
@@ -233,17 +233,17 @@ pdf2mp3 convert local/inputs/demo.pdf --output local/outputs/demo-edge.mp3
|
|
|
233
233
|
The first command creates `local/inputs/demo.pdf` with synthetic Brazilian Portuguese text;
|
|
234
234
|
it refuses to replace an existing file. The conversion sends only this sample
|
|
235
235
|
text to the external Edge service. For an English sample, macOS offline speech
|
|
236
|
-
and Windows validation steps, see [the local demo guide](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
236
|
+
and Windows validation steps, see [the local demo guide](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/local-demo.md).
|
|
237
237
|
Generated demo PDFs and MP3s stay local and are ignored by Git.
|
|
238
238
|
|
|
239
239
|
## Project information
|
|
240
240
|
|
|
241
|
-
- [Documentation](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
242
|
-
- [Python API reference](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
243
|
-
- [Changelog](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
244
|
-
- [Contributing](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
245
|
-
- [Security policy](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
241
|
+
- [Documentation](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/README.md)
|
|
242
|
+
- [Python API reference](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/docs/api.md)
|
|
243
|
+
- [Changelog](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/CHANGELOG.md)
|
|
244
|
+
- [Contributing](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/CONTRIBUTING.md) and [Code of Conduct](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/CODE_OF_CONDUCT.md)
|
|
245
|
+
- [Security policy](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/SECURITY.md): report vulnerabilities privately to
|
|
246
246
|
**pdf2mp3@byraphaelmedeiros.com**.
|
|
247
|
-
- [MIT license](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.
|
|
247
|
+
- [MIT license](https://github.com/byraphaelmedeiros/pdf2mp3/blob/v2.0.2/LICENSE)
|
|
248
248
|
|
|
249
249
|
Maintained by [Raphael Medeiros](https://github.com/byraphaelmedeiros).
|
|
@@ -6,7 +6,8 @@ Only the latest released version of **pdf2mp3** is supported with security updat
|
|
|
6
6
|
## Reporting a Vulnerability
|
|
7
7
|
If you discover a security vulnerability:
|
|
8
8
|
- Do **not** open a public issue.
|
|
9
|
-
-
|
|
9
|
+
- Use [GitHub private vulnerability reporting](https://github.com/byraphaelmedeiros/pdf2mp3/security/advisories/new).
|
|
10
|
+
- Alternatively, email the maintainer directly: pdf2mp3@byraphaelmedeiros.com.
|
|
10
11
|
- Expect a response within 72 hours.
|
|
11
12
|
|
|
12
13
|
## Known development dependency finding
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
- [Contribution guidelines](../CONTRIBUTING.md)
|
|
13
13
|
- [Changelog](../CHANGELOG.md) and [security policy](../SECURITY.md)
|
|
14
14
|
|
|
15
|
-
Documentation describes version 2.0.
|
|
15
|
+
Documentation describes version 2.0.2. Check GitHub Actions and the package
|
|
16
16
|
index for CI and publication evidence. The synthetic demo guide separates local
|
|
17
17
|
speech validation from CI and platform claims.
|
|
18
18
|
The [gTTS/Click security note](../SECURITY.md#known-development-dependency-finding)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Python API reference
|
|
2
2
|
|
|
3
3
|
This reference covers the seven callables exported by `pdf2mp3.__all__` in the
|
|
4
|
-
`2.0.
|
|
4
|
+
`2.0.2` package. Import them directly from `pdf2mp3`. Provider adapters
|
|
5
5
|
and `pdf2mp3.cli` are implementation modules, outside that exported contract.
|
|
6
6
|
The CLI intentionally changed in v2; these Python callable contracts remain.
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# CLI v2 contract
|
|
2
2
|
|
|
3
|
-
This interface belongs to version `2.0.
|
|
4
|
-
`python -m pip install pdf2mp3==2.0.
|
|
3
|
+
This interface belongs to version `2.0.2`. Install it with
|
|
4
|
+
`python -m pip install pdf2mp3==2.0.2`, or install a source checkout with
|
|
5
5
|
`python -m pip install .`. Version 1.0.0 uses the previous flat CLI.
|
|
6
6
|
Both `pdf2mp3` and `python -m pdf2mp3` identify themselves as `pdf2mp3` and expose
|
|
7
7
|
identical help. No arguments prints help and exits 0. `--version` prints the
|
|
@@ -13,7 +13,7 @@ python -m pdf2mp3 convert local/inputs/demo.pdf --rate -5% --volume=-10% --outpu
|
|
|
13
13
|
pdf2mp3 convert local/inputs/demo.pdf --output local/outputs/demo-edge.mp3 --overwrite --quiet
|
|
14
14
|
pdf2mp3 check
|
|
15
15
|
pdf2mp3 check local/inputs/demo.pdf --engine edge --json
|
|
16
|
-
pdf2mp3 --json convert local/inputs/demo.pdf --output local/outputs/demo-
|
|
16
|
+
pdf2mp3 --json convert local/inputs/demo.pdf --output local/outputs/demo-json.mp3
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## Preparation and provider options
|
|
@@ -124,7 +124,7 @@ tolerate additional data fields in future schema-compatible changes.
|
|
|
124
124
|
| 7 | `output_failed` | Export/filesystem failure |
|
|
125
125
|
| 130 | `interrupted` | Cancellation before completion |
|
|
126
126
|
|
|
127
|
-
##
|
|
127
|
+
## Automation example
|
|
128
128
|
|
|
129
129
|
Use subprocess argument arrays, inspect both JSON and exit status, and select an
|
|
130
130
|
explicit destination. Run `check` before authorizing external text processing.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Synthetic local demo
|
|
2
2
|
|
|
3
|
-
This guide applies to a `2.0.
|
|
3
|
+
This guide applies to a `2.0.2` source checkout with development dependencies.
|
|
4
4
|
Use only the generated synthetic samples. Existing personal PDFs in a checkout
|
|
5
5
|
are not test fixtures. The commands below create local samples and run checks.
|
|
6
6
|
|
|
@@ -12,6 +12,7 @@ Install Python 3.12, FFmpeg and ffprobe. On macOS with Homebrew:
|
|
|
12
12
|
brew install python@3.12 ffmpeg
|
|
13
13
|
python3.12 -m venv .venv-dev
|
|
14
14
|
source .venv-dev/bin/activate
|
|
15
|
+
python -m pip install --upgrade 'pip>=26.2'
|
|
15
16
|
python -m pip install -r requirements-dev.txt
|
|
16
17
|
python -m pip check
|
|
17
18
|
pdf2mp3 --help
|
|
@@ -131,6 +132,7 @@ In PowerShell:
|
|
|
131
132
|
```powershell
|
|
132
133
|
py -3.12 -m venv .venv-dev
|
|
133
134
|
.venv-dev\Scripts\Activate.ps1
|
|
135
|
+
python -m pip install --upgrade 'pip>=26.2'
|
|
134
136
|
python -m pip install -r requirements-dev.txt
|
|
135
137
|
python -m pip check
|
|
136
138
|
ffmpeg -version
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
The optional OpenAI adapter uses the **Realtime API over WebSocket** with
|
|
4
4
|
`gpt-realtime-2.1-mini` by default. It preserves the `alloy` voice default and
|
|
5
5
|
produces a single MP3 through local FFmpeg processing. Edge remains the default
|
|
6
|
-
engine. This adapter is part of the optional `2.0.
|
|
6
|
+
engine. This adapter is part of the optional `2.0.2` package integration,
|
|
7
7
|
not the published 1.0.0 workflow.
|
|
8
8
|
|
|
9
9
|
## Installation and use
|
|
@@ -11,7 +11,7 @@ not the published 1.0.0 workflow.
|
|
|
11
11
|
Install the provider extra:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
python -m pip install 'pdf2mp3[openai]==2.0.
|
|
14
|
+
python -m pip install 'pdf2mp3[openai]==2.0.2'
|
|
15
15
|
pdf2mp3 convert --help
|
|
16
16
|
pdf2mp3 check --engine openai --json
|
|
17
17
|
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Quality gates
|
|
2
2
|
|
|
3
3
|
Use Python 3.12 and FFmpeg/ffprobe for the canonical QA environment. Install the
|
|
4
|
-
pinned developer tools
|
|
4
|
+
pinned developer tools using the bootstrap steps in [CONTRIBUTING](../CONTRIBUTING.md).
|
|
5
5
|
Runtime dependencies have compatible ranges in `pyproject.toml`; each gate
|
|
6
6
|
records the exact resolution. There is no committed transitive lockfile.
|
|
7
7
|
|
|
@@ -20,12 +20,16 @@ as null (not applicable), not invented execution coverage.
|
|
|
20
20
|
| Profile | Checks |
|
|
21
21
|
| --- | --- |
|
|
22
22
|
| fast | Git/base/FFmpeg and private-file preflight, whitespace, Ruff lint/format, strict production mypy, documentation, full deterministic pytest suite |
|
|
23
|
-
| standard | Fast checks, subprocess-aware line and branch coverage, changed-code floors, wheel/sdist build and non-editable installs, real synthetic PDF/FFmpeg conversions, static security, secrets, resolved runtime
|
|
23
|
+
| standard | Fast checks, subprocess-aware line and branch coverage, changed-code floors, wheel/sdist build and non-editable installs, real synthetic PDF/FFmpeg conversions, static security, secrets, resolved development/runtime/provider dependency audits and runtime licenses |
|
|
24
24
|
| release | Standard plus scoped mutation, synthetic performance budgets, version/changelog consistency |
|
|
25
25
|
|
|
26
26
|
CI also runs the [support matrix](support.md). A local release profile does not
|
|
27
27
|
prove that remote matrix or live voice services passed. Stable publication has a
|
|
28
28
|
separate final-tag check and consumes the gate's exact checksummed artifacts.
|
|
29
|
+
The required `ci-required` job aggregates the full reusable quality workflow,
|
|
30
|
+
including its OS/Python matrix. It succeeds only when that workflow succeeds.
|
|
31
|
+
The gate also downloads its uploaded artifact and verifies the source commit
|
|
32
|
+
and both distribution hashes before a PR can be integrated.
|
|
29
33
|
|
|
30
34
|
## Tests and thresholds
|
|
31
35
|
|
|
@@ -80,8 +84,14 @@ random jitter, fixed executable argument arrays without a shell, and existing
|
|
|
80
84
|
optional-bridge/cleanup handling; each has a local reason. Secret scanning covers
|
|
81
85
|
tracked and new nonignored files. A reviewed checksum is not a credential.
|
|
82
86
|
|
|
83
|
-
`pip-audit` checks the actual installed base and
|
|
84
|
-
for the current platform.
|
|
87
|
+
`pip-audit` checks the actual installed development environment, base package and
|
|
88
|
+
gTTS/OpenAI/pyttsx3 dependencies for the current platform. Each audit includes
|
|
89
|
+
installer/build tools reported by `pip list --format=freeze`, including pip itself.
|
|
90
|
+
Editable dependencies are audited by their installed name and version, without
|
|
91
|
+
following local paths or VCS URLs.
|
|
92
|
+
The development audit runs independently of packaging; a failed build cannot
|
|
93
|
+
hide its results. Fresh package-test environments bootstrap pip 26.2 or newer.
|
|
94
|
+
The project distribution itself is excluded from
|
|
85
95
|
the public advisory lookup, not its dependencies. **Any** advisory or unavailable
|
|
86
96
|
required report fails; there are no vulnerability exemptions. Advisory services
|
|
87
97
|
and package indexes require network. Other platforms need their own audit if
|