Skip to content

feat!: bundle cryptography in release binaries and modernize deps - #263

Merged
mkb79 merged 2 commits into
masterfrom
modernize/deps-cryptography-binaries
Jul 20, 2026
Merged

feat!: bundle cryptography in release binaries and modernize deps#263
mkb79 merged 2 commits into
masterfrom
modernize/deps-cryptography-binaries

Conversation

@mkb79

@mkb79 mkb79 commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Aligns audible-cli with the freshly released audible 0.11.0 and gives the prebuilt binaries the Rust-accelerated cryptography backend.

Version stays at 0.3.3 here; the CHANGELOG entries live under Unreleased. The Release version 0.4.0. commit + tag is a separate follow-up (mirroring how 0.3.3 was cut).

Dependencies

  • Python: >=3.10,<3.14>=3.11,<3.15 (drop 3.10, add 3.14)
  • audible: >=0.8.2>=0.11.0
  • httpx: >=0.23.3,<0.28.0>=0.27.2,<0.29 (identical to audible; resolves to httpx 0.28.1)
  • Raised minimums: aiofiles, click, Pillow, tabulate, tqdm, questionary, packaging, colorama
  • New optional extra [cryptography]audible[cryptography]>=0.11.0 (enables audible's Rust-accelerated crypto provider)
  • ruff target py311, mypy python_version = "3.11", CI PYTHON_VERSION 3.14

Binaries bundle cryptography (statically linked)

All six build.yml targets now build with the extra + collect flags:

uv run --extra cryptography pyinstaller … --collect-all cryptography --collect-submodules audible.crypto_provider …

Verified locally (Linux/3.14): the real audible onefile binary builds, runs in a clean environment (env -i, no Python/venv), reports CryptographyProvider, and performs AES/SHA256 via the bundled backend. PyInstaller's hook confirms cryptography 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

  • README: [cryptography] extra install instructions + note that prebuilt binaries already bundle it statically
  • CHANGELOG: Unreleased entries (deps + extra + binaries); fixed the broken # Added / ##} Changed headers

Notes

  • JSON providers intentionally left untouched.
  • ruff reports pre-existing lint debt (no ruff CI); out of scope, not touched.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ax6YU6ei3uniE6sQ5GPeVR

mkb79 and others added 2 commits July 20, 2026 16:47
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
@mkb79 mkb79 changed the title Modernize dependencies and bundle cryptography in release binaries feat!: bundle cryptography in release binaries and modernize deps Jul 20, 2026
@mkb79
mkb79 merged commit 1954799 into master Jul 20, 2026
1 check passed
@mkb79
mkb79 deleted the modernize/deps-cryptography-binaries branch July 20, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant