feat!: bundle cryptography in release binaries and modernize deps - #263
Merged
Conversation
Align audible-cli with the audible 0.11.0 release and give the prebuilt binaries the Rust-accelerated crypto backend. - Raise Python range to >=3.11,<3.15 (drop 3.10, add 3.14) - Require audible>=0.11.0 and httpx>=0.27.2,<0.29 - Raise minimum versions for aiofiles, click, Pillow, tabulate, tqdm, questionary, packaging and colorama - Add optional [cryptography] extra (audible[cryptography]) that enables audible's Rust-accelerated crypto provider - Build release binaries with cryptography statically bundled (uv run --extra cryptography + pyinstaller --collect-all cryptography --collect-submodules audible.crypto_provider) across all build targets - ruff target py311, mypy python_version 3.11, CI Python 3.14 - Document the cryptography extra and binary bundling in README/CHANGELOG Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ax6YU6ei3uniE6sQ5GPeVR
…tography-binaries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Aligns audible-cli with the freshly released audible 0.11.0 and gives the prebuilt binaries the Rust-accelerated
cryptographybackend.Dependencies
>=3.10,<3.14→>=3.11,<3.15(drop 3.10, add 3.14)>=0.8.2→>=0.11.0>=0.23.3,<0.28.0→>=0.27.2,<0.29(identical to audible; resolves to httpx 0.28.1)aiofiles,click,Pillow,tabulate,tqdm,questionary,packaging,colorama[cryptography]→audible[cryptography]>=0.11.0(enables audible's Rust-accelerated crypto provider)rufftargetpy311,mypypython_version = "3.11", CIPYTHON_VERSION3.14Binaries bundle cryptography (statically linked)
All six
build.ymltargets now build with the extra + collect flags:Verified locally (Linux/3.14): the real
audibleonefile binary builds, runs in a clean environment (env -i, no Python/venv), reportsCryptographyProvider, and performs AES/SHA256 via the bundled backend. PyInstaller's hook confirmscryptography does not seem to be using dynamically linked OpenSSL— OpenSSL is statically embedded, so the binary stays portable. macOS/Windows validate on the tag build (their cryptography wheels bundle OpenSSL the same way).Docs
[cryptography]extra install instructions + note that prebuilt binaries already bundle it statically# Added/##} ChangedheadersNotes
ruffreports pre-existing lint debt (no ruff CI); out of scope, not touched.🤖 Generated with Claude Code
https://claude.ai/code/session_01Ax6YU6ei3uniE6sQ5GPeVR